Skip to main content
POST
/
auth
/
logout
cURL
curl --request POST \
  --url http://sandbox.mintlify.com/auth/logout \
  --header 'authorization: <authorization>'
Revokes the current user’s access token and ends the session.

Authentication

This endpoint requires authentication via Bearer token in the Authorization header.

Example Request

curl -X POST http://localhost:3001/api/auth/logout \
  -H "Authorization: Bearer <token>"

Response

Returns 204 No Content on success.

What Happens

  • Current access token is revoked
  • User session is ended
  • Future requests with this token will fail with 401
  • User must login again to get a new token

Common Errors

401 Unauthorized

Authentication required. Provide a valid bearer token.

Headers

authorization
string
required

Response

204 - undefined