A Token is required for accessing the Management APIs and this API creates a Access Token for specified user.
You can also create a token manually from My Profile page.
1.Token API
Endpoint: https://<management_app_url>/apiops/auth/token
HTTP Method: POST
Request Headers:
Header | Value |
---|
Content-Type | application/x-www-form-urlencoded |
Accept | application/json |
Request Body: (urlencoded)
Parameter | Value |
---|
grant_type | client_credentials |
client_id | username of the Apinizer User used for management application login |
client_secret | password of the Apinizer User used for management application login |
Response:
Status | Status Code | Description | Body | Header |
---|
Success | 200 | successful operation | { "access_token": "....", "expires_in": 1656505346947 } | Content-Type: application/json;charset=UTF-8 |
Error | 400 | bad request | { "error": "...", "error_description": "..." } | Content-Type: application/json;charset=UTF-8 |
Error | 401 | not authorized for this operation | { "error": "unauthorized_client", "error_description": "Bad credentials" } | Content-Type: application/json;charset=UTF-8 |
Error | 500 | internal error | { "error": "...", "error_description": "..." } | Content-Type: application/json;charset=UTF-8 |