Skip to main content

Close Session (Logout)

This will logout the authenticated user and close the session.

note

This endpoint will only work with authenticated admin tokens, i.e., <user_token> obtained from the /auth/login endpoint with valid admin credentials.

  • Endpoint: /auth/logout
  • Method: POST

Request Headers

Header nameRequiredDescription
x-access-tokentruePass the <user_token> as obtained from the /auth/login endpoint.

Sample Request

POST: https://<api_url>/auth/logout