Logging out of the API session | Acquia CDP | Acquia Product Documentation
Acquia CDP
Logging out of the API session
Logging out of the API session
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 to application/json.
Set the authorizationheader value to Bearer<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
}
Set the content-type header value to application/json.
Set the authorizationheader value to Bearer<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
}