API referenceSections

GET /api/v1/session

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/session

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Responses

200 Current session

Content type: application/json

  • session_id string required
  • user_id string required
  • csrf_token string required
  • expires_at string (date-time) required
  • mfa string required
  • totp_enabled boolean required

    The authenticator app is on for this user

  • passkeys integer required

    Number of passkeys the user has

  • password_reset_required boolean optional

    The session must set a new password first: it came from a recovery link (ADR 0057) or the password fails the password policy (ADR 0112)

  • password_change_reason string optional

    Why a new password is required; policy needs the current password

    Allowed values: "" "recovery" "policy"
  • email string optional
  • name string optional

    Display name; may be empty

  • impersonation object optional
Example
{
  "session_id": "string",
  "user_id": "string",
  "csrf_token": "string",
  "expires_at": "2026-01-01T00:00:00Z",
  "mfa": "string",
  "totp_enabled": true,
  "passkeys": 0,
  "password_reset_required": true,
  "password_change_reason": "",
  "email": "string",
  "name": "string",
  "impersonation": {}
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required