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 name | Required | Description |
|---|---|---|
| x-access-token | true | Pass the <user_token> as obtained from the /auth/login endpoint. |
Sample Request
POST: https://<api_url>/auth/logout