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:

HeaderValue
Content-Typeapplication/x-www-form-urlencoded
Acceptapplication/json

Request Body: (urlencoded)

ParameterValue
grant_typeclient_credentials
client_idusername of the Apinizer User used for management application login
client_secretpassword of the Apinizer User used for management application login

Response:

StatusStatus CodeDescriptionBodyHeader
Success200

successful operation

{
    "access_token""....",
    "expires_in"1656505346947
}

Content-Type: application/json;charset=UTF-8
Error400bad request{
    "error""...",
    "error_description""..."
}
Content-Type: application/json;charset=UTF-8
Error401not authorized for this operation

{
    "error""unauthorized_client",
    "error_description""Bad credentials"
}

Content-Type: application/json;charset=UTF-8
Error500internal error{
    "error""...",
    "error_description""..."
}
Content-Type: application/json;charset=UTF-8