Get Token

post /identity/token

This endpoint for generate access token. Which is used to access any resources on AXA Connect platform.

Request Header
Name Type Required Description
content-type string Required application/x-www-form-urlencoded
Request Body
Name Type Required Description
grant_type string Required

Grant types specify how a client can interact with the token service.
Ex: client_credentials

client_id string Required client identifier
client_secret string Required The secret key
scope string Required Resource name to access
Example request
client_id:yourid
client_secret:1f2Me1MZqNv82nLdxDP4MjmaptTCnntRJ7NK418c
scope:motor.uat
grant_type:client_credentials
Response
Name Type Required Description
access_token string Required An access token allows access to an API resource.
expires_in number Required Lifetime of access token in seconds
token_type string Required Type of token
Example response
{
    "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "expires_in": 60,
    "token_type": "Bearer"
}