session cookie — any further requests using that cookie will receive a 401 response.
Inspect the Current Session
Before logging out you can callGET /auth/session to confirm the session is active and retrieve basic profile information.
Endpoint
Example Request
Success Response — 200 OK
object
Log Out — Revoke Current Session
Endpoint
DELETE request, you must first obtain a CSRF token via GET /auth/csrf-token and pass it in the x-csrf-token header.
The server returns
204 No Content even if the session was already revoked or expired. This idempotent behaviour means it is safe to call the endpoint more than once without worrying about error handling for already-logged-out sessions.Example Request
Success Response — 204 No Content
The session is revoked and the session cookie is cleared. The response body is empty.
Error Responses
Example 401 Response
Related Endpoints
List All Sessions
View every active session across your devices and revoke any of them.
Log In
Start a new session after logging out.