Skip to main content
Session management gives you full visibility and control over every active login on your account. You can list all sessions ordered newest first, revoke a specific session by its public ID, or sign out from every device except the one you are currently using. All three operations require an active session cookie, and state-changing requests additionally require an x-csrf-token header.

List Active Sessions

Retrieve all active sessions for your account, ordered newest first. Each session entry includes its public ID and timestamps you can display in a “Devices” or “Active Sessions” UI.

Endpoint

Example Request

Success Response — 200 OK

array

Revoke a Specific Session

Revoke any single session by its public ID. If the revoked session happens to be the one making the request, the server also clears the session cookie in the response.

Endpoint

Path Parameter

string
required
The public_id of the session to revoke, e.g. ses_01H. Obtain this from the GET /auth/sessions response.

Example Request

Success Response — 204 No Content

The session is revoked. No response body is returned.

Error Responses


Revoke All Other Sessions

Sign out from every active session except the current one. This is the “sign out from all other devices” action.

Endpoint

Example Request

Success Response — 200 OK

Your current session remains active. All other sessions for your account are revoked and those devices will be required to log in again.

Error Responses

Use Revoke All Other Sessions after a password change or any time you suspect your account may have been accessed from an unknown device. Your current session stays active, so you remain logged in while every other browser and app is signed out immediately.

Logout

Revoke only the current session and clear your cookie.

Password Reset

Reset your password — this also revokes all sessions automatically.