Logout

Ends the authenticated user's session. Use this endpoint to invalidate the current session or to terminate all active sessions associated with the user.

HTTP request
PUT /auth/logout
Authentication
Authentication Type Supported
Organization User (CustomerEmployee) Yes
Delegated User (EndUser) No
Service Account Yes
Personal Access Token No
Required permissions
No specific permissions are required for this operation.
Authorization requirements
Header Type Required Description
Authorization string Yes Bearer token used to authenticate the request. See Authentication flows for instructions on generating this token.
Request body
Field Type Required Description
allSessions boolean No If true, logs the user out of all active sessions. If false or omitted, only the current session is ended.
Response
200: Success