Skip to content
Logo

Auth

All endpoints live under /auth. Request + response bodies are JSON.

Endpoints

API keys

Types

TokenPair

Returned by login (when MFA is off), mfa/verify, and refresh.

FieldTypeNotes
access_tokenstringJWT.
refresh_tokenstring
access_expires_atstringISO-8601 UTC.
refresh_expires_atstringISO-8601 UTC.

LoginResponse

Discriminated union on status returned by login.

statusBody
mfa_required{ status: "mfa_required", challenge_id: string }. challenge_id is mfa_<opaque>, single-use, ~5 min TTL. Default: accounts have MFA on by default.
tokensAll TokenPair fields above, alongside status: "tokens". Returned only when the account has MFA disabled.