Acquia CDP

Logging out of the API session

To log out of the API session:

  1. Set the endpoint for API. For example,

    /authentication?action=logout

  2. Use a POST method.

  3. Set the content-type header value to application/json.

  4. Set the authorization header 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
    }
    
  • 401: Unauthorized if the session is invalid.

    {
     "errorCode":"INVALID_TOKEN",
     "userMessage":"Invalid token",
     "developerMessage":"a60ed949-7599-4753-8bed-25825a0f96b7",
     "linkToErrorDoc":"",
     "linkToResourceDoc":null,
     "additionalInfo":null
    }