Sessions
- Written for
- + Written for
- Deprecated
- + Deprecated
- Applies to
- + Applies to
AdminUpdated Sep 11, 2026
Sessions
Backend API — secret key (Authorization: Bearer sk_…).
4 routes. Each row is one endpoint with its explanation, required scope, and whether it honours the Idempotency-Key header.
Method & path | Scope | Idem | Explanation |
|---|---|---|---|
|
| Mint a session for a user in one call — returns jwt + refresh_token. For agents/testing; bypasses the sign-in gate. Optional actor.sub for an impersonation session. | |
|
| List a user's active sessions. Requires a user_id query parameter. | |
|
| Fetch a single session. Another instance session id is 404, never 403. | |
|
| Revoke one session, signing that device out. |
Was this page helpful?