Use the following APIs to create and issue an authentication token for a user.

Create a Token for the User

Header

If the user name is available across multiple organizations, enter the following header:

x-org-domain-name:<domain>
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
}