- 
Call the loginendpoint with the username and password parameters.This command returns an HTTP status code 200 if the request is successful, along with a token in the response body.
- 
Call any other endpoint providing the token.
For example, query an agent under the authenticated session: