Skip to content

Terminate All Other Sessions

POST/web/v1/users/self/sessions/terminate-all JWT

Terminates all sessions except the current one for the authenticated user. Returns the count of terminated sessions. An audit log entry is created.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token

Request Parameters

No request parameters required.

Success Response

Success 200
{
  "version": "1.3.0",
  "timestamp": 1709337600000,
  "success": true,
  "code": "2000",
  "message": "SUCCESS",
  "data": 3
}

Error Responses

Unauthorized 401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}

Notes

  • An audit log entry is created with the count of terminated sessions.
  • The current session is preserved; only other sessions are terminated.
  • Returns the number of sessions that were terminated.

SlaunchX Internal Documentation