Revoke session and logout user
POST /auth/logout
POST
/auth/logout
Revokes the current session, invalidating both access and refresh tokens. This is a command that returns 202 Accepted.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Logout command accepted
Headers
Section titled “Headers ” Location
string
URL to the session resource
Unauthorized (authentication required or invalid token)
object
error
required
Error code
string
Example
unauthorized message
required
Human-readable error message
string
Example
Invalid username or password details
Additional error details (field-level validation errors, etc.)
object
key
additional properties
any
Examples
{ "error": "unauthorized", "message": "Authentication required"}{ "error": "unauthorized", "message": "Invalid or expired token"}Internal server error
object
error
required
Error code
string
Example
unauthorized message
required
Human-readable error message
string
Example
Invalid username or password details
Additional error details (field-level validation errors, etc.)
object
key
additional properties
any
Examples
{ "error": "internal_error", "message": "An internal error occurred"}