POST/sessions/revoke-all

Revoke all other sessions

Revokes every session belonging to the authenticated user except the session used for the request. Use this operation to sign out other active sessions while retaining the current one.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

3 status codes
200Returns a response confirming that the authenticated user's other sessions were revoked.
dataunknownoptional
Response payload
statusintegeroptional
successbooleanoptional
400Returned when the current session cannot be found.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional
401Returned when the request is unauthorized.
errorstringoptional
Reason phrase, for example `Bad Request`.
messagestringoptional
statusCodeintegeroptional

Error handling

A 400 is returned when the authenticated user's current session cannot be found. A 401 is returned when the request is unauthorized.