Keys
Sign out of every other device
Ends every session of the account but the one making the request.
POST
/user/sessions/end-othersTL;DR
| Question | Answer |
|---|---|
| What does it do? | Sign out of every other device. |
| What does it take? | Nothing. |
| What does it return? | Status 200 with a body of type EndedSessions. |
| What can go wrong? | 401 not signed in; 403 the request came from an origin that may not make changes; 429 too many requests. Every failure uses the one error envelope. |
What it does
Ends every session of the account but the one making the request. API keys and agent connections are not touched.
Responses
| Status | Meaning | Body |
|---|---|---|
| 200 | How many sessions ended. | EndedSessions |
| 401 | Not signed in. | ErrorResponse |
| 403 | The request came from an origin that may not make changes. | ErrorResponse |
| 429 | Too many requests. | ErrorResponse |
Response body
A 200 answer has the type EndedSessions.
| Field | Type | Required | Description |
|---|---|---|---|
ended | integer | yes |
See also
| Doc | Why |
|---|---|
| API reference | Every endpoint, and the error envelope |
| Schemas | Every request and response type |
| Tool reference | The operations as callable tools |