/Docs
Search docs or ask a question⌘K
DocsAgent
Changelog
API Reference Revoke Other Sessions

Revoke Other Sessions

Sign out every session except the one making the request.

POST/v1/auth/sessions/revoke-othersTry it
Session token

Signs out every browser and stx CLI session on your account except the one making this request. Use it when you've lost a device or don't recognise a session.

This also signs out stx CLI tokens issued before sessions existed, which don't appear in List Sessions and can't be revoked one by one.

Note

Requires a session JWT — a dashboard session or an stx login token. API keys are rejected with 401. Any plan.

To sign out everywhere, including the current session, call POST /v1/auth/logout instead.

Response — 200 OK

NameDescription
revoked:integerbody
How many other sessions were signed out. 0 when there were none. Older CLI tokens that aren't listed as sessions are not counted, but they are signed out too.

Error Responses

401 Unauthorized

unauthorized for a missing, invalid or expired token (or an API key); session_revoked when the session you are calling from has already been signed out.

Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl -X POST https://api.syntext.dev/v1/auth/sessions/revoke-others \
-H "Authorization: Bearer $SYNTEXT_JWT"
Responseapplication/json
200OK
{
"data": {
"revoked": 3
}
}
Product
Resources
Company
© 2026 SyntextBuilt with Syntext