Use the following APIs to generate access and refresh tokens.

Create a Token for the User

API
/api/tokens
Method
GET
Required Parameters

None

Response
{
    "accessToken": "string",
    "expiresInSecs": "1543317540",
    "accessTokenExpiresAt": "1543317540",
    "refreshToken": "string",
    "refreshTokenExpiresAt": "1544519940"
}

Generate Access Token Using Refresh Token

API
/api/tokens/refresh
Method
GET
Required Parameters

None

Response
{
  "accessToken": "string",
  "accessTokenExpiresAt": "1543317540"
  "expiresInSecs": 0,
  "refreshToken": null
}