This endpoint revokes an existing access or refresh token, rendering it unusable for future API requests.
It is important to revoke tokens when they are no longer needed or if a security breach is suspected.
Ensure that the correct refresh_token is provided in the request body.
Responses
400
Invalid request, typically due to a malformed token or a failed attempt to revoke.
Possible reasons include:
The refresh_token is missing or invalid.
A session renewal error occurred.
Example response:
JSON
{
"error": "ERROR_REFRESH_TOKEN_INVALID",
"message": "Refresh token is invalid. Use a valid refresh token.",
"statusCode": 400
}
401
Authentication failed. This may happen due to the following reasons:
Authentication is required, but not provided.
The provided token has been revoked or is invalid.