To log out of the API session:
Set the endpoint for API. For example,
/authentication?action=logout
- Use a POST method.
- Set the
content-type
header value toapplication/json
. - Set the
authorization header
value toBearer <access_token>
.
Response codes
200
: Successful response code.500
: Bad request.{ "errorCode":"E500_INTERNAL_SERVER_ERROR", "userMessage":"There was an exception processing the given request", "developerMessage":"6bad791c-2477-4f88-a595- 725515fc057a", "linkToErrorDoc":null, "linkToResourceDoc":null, "additionalInfo":null }
401
: Unauthorized if the session is invalid.{ "errorCode":"INVALID_TOKEN", "userMessage":"Invalid token", "developerMessage":"a60ed949-7599-4753-8bed-25825a0f96b7", "linkToErrorDoc":"", "linkToResourceDoc":null, "additionalInfo":null }