GET /v1/auth/me/sessions

GET /v1/auth/sessions — list this user's active sessions.

Auth required. Token hashes are NEVER returned. Each row carries is_current=true iff it backs the request being made now, so the dashboard can mark "this device" with a badge and disable the per-row revoke button for it (use revoke-all-others instead).

Tags: auth

Responses

200

JSON
{
  "$ref": "#/components/schemas/ListSessionsResponse"
}

401 — UNAUTHENTICATED

Code samples

TypeScript

TypeScript
import { firecase } from "@firecase/sdk";

const result = await firecase.get("/auth/me/sessions");
console.log(result);

Python

Python
import firecase

result = firecase.get("/auth/me/sessions")
print(result)

curl

Bash
curl -X GET https://api.firecase.ai/v1/auth/me/sessions \
  -H "Authorization: Bearer $FIRECASE_API_KEY" \
  -H "Content-Type: application/json"