OUTCOME · Create or advance
What changes
Creates or advances only the session resource described by this contract after authorization, validation, policy, and idempotency gates pass.
v2Authentication
/api/v2/auth/sessions/{session_id}/revocationsPURPOSE + BUSINESS CONTEXT
WHEN THIS CALL IS USEFUL
Call this to end the current session or, with the required fresh step-up authorization, revoke another identified client session during device removal or incident response.
OUTCOME · Create or advance
Creates or advances only the session resource described by this contract after authorization, validation, policy, and idempotency gates pass.
WHY IT MATTERS
ISOLATION + AUTHORITY
Tenant identity, profile, password, authenticator enrollment, recovery code, device, session, access token, refresh credential, step-up grant, and account-closure state remain distinct. Authentication proves only the admitted session and scopes; it grants no workspace role, wallet, payment, settlement, publisher, matching, or trading authority.
BEFORE YOU CALL
WHAT TO DO NEXT
AGENT GUIDANCE
The exact deployed parameters, schemas, responses, security requirements, and Hybrid-Chain agent metadata are authoritative at this operation's production OpenAPI JSON Pointer. The readable tables below add integration guidance; the deployed OpenAPI controls if guidance and the machine contract ever differ.
Open the authoritative production contract ↗EXTENDED INTEGRATION GUIDANCE
Examples illustrate integration intent; the referenced OpenAPI operation and component schemas define the executable shape.
PARAMETERS
AuthorizationheaderRequiredBearer tokenCredential containing the sessions:write scope.EXAMPLEBearer hc_live_…
session_idpathRequired32-character session UUIDSession to revoke.
session_idbodyRequired32-character session UUIDMust exactly match the path value.
step_up_tokenbodyOptionalhcsu_ purpose-bound tokenRequired when revoking any session other than the current one.
REQUEST
{
"session_id": "9b51ed4c9c8f4aec85d1bd5520e40557",
"step_up_token": "hcsu_…"
}STABLE ERROR CODES
These codes are published by the authoritative gateway contract for this endpoint. Treat message as safe diagnostic text; integrations should branch on code and HTTP status.
invalid_jsonThe JSON body is malformed or fails the published identity-security schema.invalid_security_requestThe session, scope, public key, proof, or purpose-bound security request is invalid.invalid_credentialsThe bearer, client assertion, or proof-of-possession credential is invalid.step_up_requiredFresh purpose-bound authenticator verification or stronger authority is required.signing_key_not_foundThe requested signing-key or workload-client resource was not found.security_conflictThe requested identity-security transition conflicts with current state.identity_security_unavailableThe authoritative Identity security service is temporarily unavailable.RESPONSES
{
"data": {
"revoked": true,
"session_id": "9b51ed4c9c8f4aec85d1bd5520e40557"
}
}{
"code": "session_id_mismatch",
"message": "The path and body session identifiers differ."
}session_id_mismatch{
"code": "invalid_session_credential",
"message": "The access token is invalid."
}invalid_session_credential{
"code": "session_action_forbidden",
"message": "Fresh SESSION_REVOCATION step-up is required."
}session_action_forbidden{
"code": "session_not_found",
"message": "The session does not exist for this identity."
}session_not_foundOPERATIONAL NOTES
UPGRADING FROM V1
If you maintain an older integration, use this map to find the V2 replacement. Do not translate the old request field-for-field: rebuild it from the V2 parameters and schemas above because identity, authorization, replay protection, and response semantics may have changed.
/api/v1/auth/logoutAUTH: Log a User out/api/v1/sessions/destroySESSION: Destroy SessionThis route is implemented in canonical gateway source and appears in the production OpenAPI snapshot observed 2026-09-11T06:35:11.572Z. Authentication, tenant, feature, venue, and market policy still apply.
Verify the exact production OpenAPI operation ↗Return to the V2 directory ↗