Skip to main content

Auth API

Auth routes support dashboard account lifecycle and session management.

Endpoint matrix

AreaMethodPathPurpose
SessionGET/auth/meReturn current user + workspace summary
SessionGET/auth/sessionReturn raw session/user object
SessionPOST/auth/logoutEnd current session
SessionPOST/auth/sign-outAlias logout path
CredentialsPOST/auth/sign-up/emailRegister email/password account
CredentialsPOST/auth/sign-in/emailSign in email/password account
CredentialsPOST/auth/forget-passwordStart password reset
CredentialsPOST/auth/set-passwordSet password for social-only account
VerificationGET/auth/verify-emailVerify account and finalize post-verification setup
VerificationPOST/auth/resend-verificationRe-issue verification email
SocialGET/auth/callback/:providerOAuth callback handling
Connected authGET/auth/linked-accountsList linked providers
Connected authPOST/auth/unlink-providerUnlink provider
SecurityGET/auth/two-factor/statusRead 2FA status

Security controls

  • Turnstile verification on selected sensitive flows when configured.
  • Password complexity enforced for credential setup/reset.
  • Account lockout after repeated failed login attempts.
  • CORS allowlist enforcement on auth responses.

Registration and verification behavior

  • Email signup creates user in unverified state.
  • Existing unverified email signup attempts can trigger verification resend.
  • Existing verified email signup is rejected as duplicate.
  • Verification endpoint finalizes account state.

Social auth behavior

  • OAuth callback supports provider-linked login/account linking.
  • Social and credential methods can coexist on one account.
  • Provider unlink is restricted to prevent account lockout scenarios.

Authentication mode

These endpoints are session-oriented account APIs. Use API keys for workspace automation APIs, not account-auth lifecycle routes.

Typical failures

  • 400/422 validation errors
  • 401 UNAUTHORIZED invalid credentials/session
  • 403 FORBIDDEN bot check failure or policy violation
  • 409 USER_EXISTS duplicate verified account
  • lockout-related auth denial after repeated failed attempts
Related docs:
  • /user-guides/manual/workspace/security-and-compliance
  • /user-guides/manual/workspace/settings-and-preferences
  • /user-guides/manual/workspace/settings-and-preferences