Use the following APIs to create and issue an authentication token for a user.
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"
}
Issue Access Token Using Refresh Token
-
API
-
/api/tokens/refresh
-
Method
-
GET
-
Required Parameters
-
None
-
Response
-
{
"accessToken": "string",
"accessTokenExpiresAt": "1543317540"
"expiresInSecs": 0,
"refreshToken": null
}