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

Revoke Session

Sign one of your browser or stx CLI sessions out.

DELETE/v1/auth/sessions/{sessionId}Try it
Session token

Signs one session out. The next request made with that session's token — browser or stx CLI — gets 401 session_revoked, and a browser session can no longer be refreshed.

Note

Requires a session JWT — a dashboard session or an stx login token. API keys are rejected with 401. You can only revoke your own sessions. Any plan.

Path Parameters

NameDescription
sessionId:stringpathRequired
The session id from List Sessions.

You can revoke the session you are calling from. The request succeeds, and your next request gets 401 session_revoked.

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 been signed out.

404 Not Found

Returned when the id is unknown, already revoked, or belongs to another user — the API does not say which:

json
{
"error": {
"code": "not_found",
"message": "Session not found",
"details": { "traceId": "6f1c2a9e-3b7d-4c11-9a0e-2d5f8b4c7e10" }
}
}
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl -X DELETE https://api.syntext.dev/v1/auth/sessions/c47e0b19-7a2d-4f61-8e35-6b90d2a1f7c8 \
-H "Authorization: Bearer $SYNTEXT_JWT"
Responseapplication/json
200OK
{
"data": {
"id": "c47e0b19-7a2d-4f61-8e35-6b90d2a1f7c8",
"revoked": true
}
}
Product
Resources
Company
© 2026 SyntextBuilt with Syntext