Get an authentication token
post
/AgentWeb/api/analyticsmanager/serviceUsageMetrics/authentication/authToken
This method returns an authentication token.
Request
Header Parameters
-
Authorization(required): string
The JWT token for authentication. The token should be passed in the format: Bearer [jwtToken]
-
interfaceUrl(required): string
The interface URL
Response
Supported Media Types
- application/json
200 Response
Authentication token
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" }