List your sessions
GET
Returns the caller's live sign-in sessions, most recently used first: Dashboard sign-ins (client: "dashboard") and CLI logins (client: "cli"). Revoked and expired sessions are left out, and tokens are never returned. current marks the session that made this request.
A session ends at expiresAt, 30 days after sign-in. End one early with Revoke a session.
It needs a sign-in session; API keys are refused.
sessionheader
AuthorizationBearer <token>A sign-in session token (jvs_…) from the Dashboard, cubicle login or the device authorization flow.
The caller's live sessions.
application/json- response
[index: integer]?One of the caller's live API sessions, without its token.
curl -X GET 'https://api.cubicle.sh/v1/sessions'Example Response
[ { "id": "7f9b1d3f-5a7c-4e9b-b1d3-3f5a7c9e1b4d", "client": "cli", "createdAt": "2026-11-03T16:40:12.000Z", "lastUsedAt": "2026-11-05T10:14:21.000Z", "expiresAt": "2026-12-03T16:40:12.000Z", "current": true }, { "id": "6e8a0c2e-4b6d-4f8a-a0c2-2e4b6d8f0a3c", "client": "dashboard", "createdAt": "2026-11-01T08:55:40.000Z", "lastUsedAt": "2026-11-04T17:02:09.000Z", "expiresAt": "2026-12-01T08:55:40.000Z", "current": false }]
