Cubicle

Revoke a session

DELETE
/v1/sessions/{session}

Ends one of the caller's own sessions at once, such as a CLI login on a lost laptop. Requests with its token then fail with 401 unauthenticated.

Revoking the session that makes this request (current: true) signs the caller out, like Sign out. Other sessions are not affected.

It needs a sign-in session; API keys are refused. A caller can revoke only their own sessions.

Authorization

session
headerAuthorizationBearer <token>

A sign-in session token (jvs_…) from the Dashboard, cubicle login or the device authorization flow.

Path Parameters

session*string

The session's ID, a UUID, from List your sessions.

Formatuuid

Response Body

The session is revoked.

Example Request
curl -X DELETE 'https://api.cubicle.sh/v1/sessions/7f9b1d3f-5a7c-4e9b-b1d3-3f5a7c9e1b4d'
Example Response
Empty