POST
/
api
/
v1
/
auth
/
token
{
  "refresh_token": "<string>",
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_in": 123
}

Body

grant_type
string
required
Method used for obtaining a token. For obtaining new access tokens use “refresh_token”.
refresh_token
string
required
The Token that can be used to obtain a new access token.

Response

refresh_token
string
required
Token that can be used to obtain a new access token when the current one expires.
access_token
string
required
Token returned after successful authentication. Use this token for “Authorization” in subsequent requests.
token_type
string
Type of token. Commonly “Bearer”.
expires_in
number
Duration (in seconds) before the token expires.

Examples

cURL:

Request:
curl -X POST 'https://{BASE_URL}/api/v1/auth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
  "grant_type": "refresh_token",
  "refresh_token": "dGhpc2lzYXNhbXBsZXJlZnJlc2h0b2tlbg.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQss233x"
}'

Response:
{
  "refresh_token": "dGhpc2lzYXNhbXBsZXJlZnJlc2h0b2tlbg.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQss233x",
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  "token_type": "Bearer",
  "expires_in": 3600,
}