Revoke every active CLI session belonging to the caller

Revoke every active CLI session belonging to the caller. Server primitive backing appstrate logout --all. Cookie auth required. Idempotent — calling on an account with no active sessions returns { revokedCount: 0 }.

POST/api/auth/cli/sessions/revoke-all

Authorization

cookieAuth
better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

curl -X POST "https://your-instance/api/auth/cli/sessions/revoke-all"
{
  "revokedCount": 0
}
{
  "error": "string",
  "error_description": "string"
}