Get an authentication token

post

/AgentWeb/api/analyticsmanager/serviceUsageMetrics/authentication/authToken

This method returns an authentication token.

Request

Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Authentication token
Body ()
Root Schema : AuthToken
Type: object
Show Source
Back to Top

Examples

The following example shows how to get an authentication token.

cURL Command Example

curl -X POST "https://mysite.example.com/AgentWeb/api/analyticsmanager/serviceUsageMetrics/authentication/authToken" -H "accept: application/json" -H "Authorization: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhZG1pbi" -H "interfaceUrl: https://mysite.example.com/cgi-bin/mysite.cfg"

Response Body Example

The following shows an example of the response body in JSON format. The token in this example has been abbreviated for readability.

{
    "description": "Authorization token",
    "token": "feihg98GnT7i"
}
Back to Top