/Docs
Search docs or ask a question⌘K
DocsAgent
Changelog
API Reference Log Out Everywhere

Log Out Everywhere

Sign out every session of the current user.

POST/v1/auth/logoutTry it
Session token

Signs out every session of the signed-in user — every browser and every stx CLI login, including the one making the request. To sign out a single session, use Revoke Session; to keep only the current one, Revoke Other Sessions.

Note

Requires a session JWT. API keys are rejected with 401. Any plan.

Response — 200 OK

After this, every access token of the user gets 401 session_revoked and every refresh token is refused.

Errors

StatusCodeWhen
401unauthorizedNo session token, an invalid or expired one, or an API key
401session_revokedThe session was already signed out
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl -X POST https://api.syntext.dev/v1/auth/logout \
-H "Authorization: Bearer $SYNTEXT_JWT"
Responseapplication/json
200OK
{
"data": { "loggedOut": true }
}
Product
Resources
Company
© 2026 SyntextBuilt with Syntext