Deskhero Developer Hub
Back to deskhero.com
Account

Revoke user sessions

Revokes every active session the current User has of the given type (COOKIE for browser sessions, JWT_TOKEN for personal API tokens, ALL for both), the calling session included, so the caller is signed out too. A type is required, and the acknowledgement reports how many sessions were revoked.

PUT /api/sys/v{version:apiVersion}/account/revoke_user_sessions
Authorisation
Minimum role: USER

Request arguments

Name Type Source
inputDTO_revoke_user_sessionsBody
Request body example

Response

Status
200 (OK)
Type
DTO_acknowledgement
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_revoke_user_sessions
NameTypeReadOnlyDescription
typeENUM user_session_typeType
DTO_acknowledgement
NameTypeReadOnlyDescription
messageStringMessage
ENUM user_session_type
ValueNameDescription
0UNKNOWNUNKNOWN
1COOKIECOOKIE
2JWT_TOKENJWT_TOKEN
-1ALLALL

Generated Aug 4, 2026 18:37