HomeGuidesAPI Reference
API Reference

Logout and terminate the current HTTP session

Terminates the authenticated HTTP session for the current user. Invalidates the session, removes the login token, and logs the logout action in the audit log. If the 'comments' parameter is set to 'session-timeout', the audit log will indicate an automatic logout due to session expiration. Returns success even if called without authentication, but will return 401 if no session token exists.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum

Optional comment to log with the logout action. Use 'session-timeout' for auto-logout due to session expiration.

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/html