Token Exchange Response
Success Response
All successful responses (HTTP Status Code 200 Success
) will include access
and refresh
tokens.
{
"success": true,
"data": {
"access_token": "<string>",
"token_type": "bearer",
"refresh_token": "<string>",
"ttl": "<string>",
"issued_at": "<string>",
"expires_at": "<string>"
}
}
Parameter | Description |
---|---|
success <bool> | Boolean value representing the success/failure state of the request |
data <object> | The data object containing the Access & Refresh tokens, along with their properties |
data.access_token <string> | Access Token |
data.token_type <string> | Access Token Type (Default: bearer ) |
data.refresh_token <string> | Refresh Token |
data.ttl <string> | Access Token TTL |
data.issued_at <string> | Access Token issue date in format: Y-m-d\TH:i:s\Z |
data.expires_at <string> | Access Token expiry date in format: Y-m-d\TH:i:s\Z |
Error Response
All error responses will contain the following standardized error payload:
{
"success": false,
"errorMessage": "<string>",
"errorDetails": "<array[string]>",
"errorCode": "<string>"
}
Parameter | Description |
---|---|
success <bool> | Boolean value representing the success/failure state of the request. This will equal false for all error responses |
errorMessage <string> | A generalized human-readable message describing the error (i.e., Redirect URI is invalid , Missing required params , Invalid grant type ). |
errorDetails <array[string]> | OPTIONAL. This field contains additional human-readable messages providing further context. For example, when parameters are missing, this property will contain the list of missing parameters. |
errorCode <string> | The errorCode property will contain a machine-readable string describing the error. Refer to the Error Codes page for a comprehensive list of all possible error code values. |
Updated 9 months ago