MngRevokeSession¶
Description: Revokes one session. Revocation takes effect for subsequent platform authorization checks. Calling the method again for an existing already-revoked record succeeds; a missing session returns SESSION_NOT_FOUND.
Access Control¶
🛡️ Access Level Required: An ordinary staff session or a manager API token over TCP may revoke sessions belonging to the same manager identity. A super admin may revoke any session. An explicit API command scope must include
MngRevokeSession.
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
sid |
string | Yes | Canonical lowercase UUIDv4 of the session to revoke. |
reason |
string | No | Revocation reason, up to 255 bytes. Default: administrator_revoked. |
Request Example¶
{
"command": "MngRevokeSession",
"extID": "request-1",
"__token": "<compact Ed25519 session JWT>",
"data": {
"sid": "5f1d8a84-21f5-4e63-9be1-84a0f319b902",
"reason": "credential_rotation"
}
}
Response Example¶
{ "revoked": true }
A successful response means revocation was applied to the active cache and accepted into the ordered persistence queue. For manager or affiliate API credentials, the response waits for the revocation commit; for ordinary interactive sessions, it acknowledges queue admission. Revocation takes effect immediately for subsequent platform authorization checks.
Errors¶
| Status | Error | Description |
|---|---|---|
| 400 | INVALID_DATA |
sid is not a canonical UUIDv4 or reason is not a string of at most 255 bytes. |
| 403 | PERMISSION_DENIED |
Caller cannot manage the session owner, or the explicit API command scope does not include MngRevokeSession. |
| 404 | SESSION_NOT_FOUND |
No session record exists for the supplied sid. |
| 503 | SESSION_GUARD_UNAVAILABLE |
SessionGuard is unavailable, could not accept the revocation, or could not commit an API credential revocation. |
For ending the caller's own session, use SessionLogout.