Self-serve signup and email verification, session login (with optional TOTP MFA), and session management. Sessions are short-lived JWTs (see the Getting Started page) carried as a Bearer token.
POST/api/v1/auth/signupPublic
Create a new workspace and admin account
Gated by SIGNUP_ENABLED (off by default). Always returns the same response shape regardless of whether the email is new, already registered but unverified (sends a fresh verification link, and updates the password to the one just submitted), or already registered and verified (sends a “you already have an account” notice instead) — this is deliberate: the HTTP response never discloses which emails have accounts.
Request body
| Name | Type | Description |
|---|
emailrequired | string | Validated, normalized (lowercased) email address. |
passwordrequired | string | 12–200 characters. Length is enforced, not composition. |
organization_namerequired | string | Name for the new workspace. |
website | string | Honeypot field. Leave empty — any non-empty value is silently treated as a bot submission. |
Response{ message: string, email: string }
POST/api/v1/auth/verify-emailPublic
Confirm an email verification token
Request body
| Name | Type | Description |
|---|
tokenrequired | string | The token from the verification link (24h expiry). |
Response{ verified: true }
POST/api/v1/auth/loginPublic
Exchange credentials for a session
Rejects with 403 if the account's email isn't verified yet. If MFA is enabled, returns a short-lived (5 min) mfa_token instead of an access_token — complete the flow via /auth/mfa/verify.
Request body
| Name | Type | Description |
|---|
emailrequired | string | |
passwordrequired | string | |
Response{ access_token, token_type } or { mfa_required: true, mfa_token }
POST/api/v1/auth/mfa/verifyPublic
Complete login with a TOTP or recovery code
Request body
| Name | Type | Description |
|---|
mfa_tokenrequired | string | The challenge token from /auth/login. |
code | string | 6-digit TOTP code. Provide this or recovery_code, not both. |
recovery_code | string | One of the single-use codes issued at MFA enrollment (see /auth/mfa/confirm). |
Response{ access_token, token_type }
POST/api/v1/auth/mfa/enrollSession
Begin MFA enrollment
Generates a TOTP secret and stores it, but does not enable MFA until /auth/mfa/confirm succeeds — an unfinished enrollment can never lock an account out.
Response{ secret, provisioning_uri, qr_data_uri }
POST/api/v1/auth/mfa/confirmSession
Enable MFA with a confirmation code
Also generates 10 single-use recovery codes, returned exactly once in this response — there is no way to retrieve them again afterward, only to regenerate a fresh set (see /auth/mfa/recovery-codes/regenerate).
Request body
| Name | Type | Description |
|---|
coderequired | string | 6-digit TOTP code from the enrolled authenticator. |
Response{ mfa_enabled: true, recovery_codes: string[] }
POST/api/v1/auth/mfa/disableSession
Disable MFA
Requires a currently-valid TOTP code or an unused recovery code, not just a session token — a stolen bearer token alone can't turn MFA off. Deletes all remaining recovery codes.
Request body
| Name | Type | Description |
|---|
code | string | Provide this or recovery_code, not both. |
recovery_code | string | |
Response{ mfa_enabled: false }
POST/api/v1/auth/mfa/recovery-codes/regenerateSession
Invalidate all recovery codes and issue a fresh set
Requires a live TOTP code specifically — not a recovery code, so a single stolen recovery code can't be used to mint a whole new batch.
Request body
| Name | Type | Description |
|---|
coderequired | string | 6-digit TOTP code. |
Response{ recovery_codes: string[] }
POST/api/v1/auth/revoke-sessionsSession
Invalidate every session for this account
Bumps a per-user token version, invalidating every previously issued token at once — including the one used to call this endpoint. An all-or-nothing kill switch, not a per-device sign-out list.
Response{ revoked: true, message }
POST/api/v1/auth/change-passwordSession
Change your own password
Verifies the current password, then bumps the same per-user token version /auth/revoke-sessions uses — every other session is invalidated, and a fresh token is returned so the caller's own session survives the change.
Request body
| Name | Type | Description |
|---|
current_passwordrequired | string | |
new_passwordrequired | string | 12–200 characters. |
Response{ access_token, token_type }
GET/api/v1/meSession
The authenticated user's identity
Email, role, workspace id/name, and MFA status for whoever the current session token belongs to.
Response{ email, role, workspace_id, workspace_name, mfa_enabled, mfa_recovery_codes_remaining }