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/sessionAuthentication: session cookie __Host-panel_session (contract default; see Authentication).
Responses
200 Current session
Content type: application/json
session_idstring requireduser_idstring requiredcsrf_tokenstring requiredexpires_atstring (date-time) requiredmfastring requiredtotp_enabledboolean requiredThe authenticator app is on for this user
passkeysinteger requiredNumber of passkeys the user has
password_reset_requiredboolean optionalThe 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_reasonstring optionalWhy a new password is required; policy needs the current password
Allowed values:"""recovery""policy"emailstring optionalnamestring optionalDisplay name; may be empty
impersonationobject 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required