API reference

Auth API

Accounts and sessions: registration and email verification, password and one-time-code sign-in, Google sign-in, multi-factor authentication, linked identities and accepting an invitation.

Endpoints

27 operations, each with its parameters, schemas and an example request on its own page.

Authentication

Objects returned

The models these endpoints send back, with every field. Open one to read it.

TokenResponse6 fields
  • access_tokenstringrequired
  • expires_inintegerrequired
  • organizationOrgReadrequired
    7 fields · OrgRead
    • idstringrequired
    • namestringrequired
    • plan_tierstringrequired
    • roleOrgRole | stringrequired
    • slugstringrequired
    • is_defaultboolean

      Default: false

    • parent_org_idstring | null
  • userUserReadrequired
    7 fields · UserRead
    • created_atstring (date-time)required
    • emailstringrequired
    • full_namestringrequired
    • idstringrequired
    • is_activebooleanrequired
    • is_verifiedbooleanrequired
    • avatar_urlstring | null
  • refresh_tokenstring | null
  • token_typestring

    Default: bearer

Message2 fields
  • messagestringrequired
  • okboolean

    Default: true

GoogleStartResponse5 fields
  • authorization_urlstringrequired
  • code_verifierstringrequired
  • noncestringrequired
  • redirect_uristringrequired
  • statestringrequired
IdentityRead4 fields
  • created_atstring (date-time)required
  • providerstringrequired
  • emailstring | null
  • last_login_atstring (date-time) | null
InvitationPreview7 fields
  • emailstringrequired
  • expires_atstring (date-time)required
  • organization_namestringrequired
  • organization_slugstringrequired
  • roleOrgRole | stringrequired
  • has_accountboolean

    Default: false

  • invited_bystring | null
UserRead7 fields
  • created_atstring (date-time)required
  • emailstringrequired
  • full_namestringrequired
  • idstringrequired
  • is_activebooleanrequired
  • is_verifiedbooleanrequired
  • avatar_urlstring | null
MfaStatus5 fields
  • enabledbooleanrequired
  • activated_atstring (date-time) | null
  • pendingboolean

    Default: false

  • recovery_codes_remaininginteger

    Default: 0

  • recovery_generated_atstring (date-time) | null
MfaCodesResponse2 fields
  • generated_atstring (date-time)required
  • recovery_codesarray of stringrequired
MfaSetupResponse5 fields
  • digitsintegerrequired
  • manual_keystringrequired
  • period_secondsintegerrequired
  • secretstringrequired
  • uristringrequired
OrgRead7 fields
  • idstringrequired
  • namestringrequired
  • plan_tierstringrequired
  • roleOrgRole | stringrequired
  • slugstringrequired
  • is_defaultboolean

    Default: false

  • parent_org_idstring | null

Something here wrong or missing? Tell us — the documentation and the API are maintained by the same person, so a correction is a fix rather than a ticket.

Building on it? Start on the free plan — no card — and call the same API the dashboard uses.

Start free