Session Logout¶
Revokes the authenticated platform session associated with the supplied Ed25519 session JWT. The same JWT stops authorizing platform requests after successful logout. Data Lake authorization remains based on its independent signed claims until the JWT expires; logout does not call Data Lake or revoke its cached/signed authorization.
POST
https://{some_domain}/session/logout
Authorization¶
Send the session JWT in the Authorization request header, using the same format accepted by the server's other authenticated REST routes.
Request¶
Content-Type: application/json
No action parameters are required. HTTP requests use the gateway envelope:
{ "data": {} }
Success (200)¶
{ "revoked": true }
A successful response means the session was revoked in the cache and its persistence operation was accepted. Platform authorization stops immediately; the response is not a SQLite commit acknowledgement.
Errors¶
| HTTP | error |
Description |
|---|---|---|
| 401 | INCORRECT_TOKEN |
Token is missing, invalid, expired, revoked, has no required sid, or its owner is no longer enabled. A JWT issued before session IDs were introduced must be replaced by signing in again. |
| 403 | PERMISSION_DENIED |
The token is a manager API token, which cannot use this endpoint. |
| 503 | SESSION_GUARD_UNAVAILABLE |
SessionGuard is unavailable or could not accept the logout into its persistence queue. A 503 does not report a synchronous SQLite commit failure. |
Use MngRevokeSession to revoke a manager API token from a normal manager session.