API reference
Errors
The error envelope, and the codes worth branching on.
Every error has the same shape, including unexpected ones:
{ "error": { "code": "invalid_request", "message": "Country must be a two-letter ISO code." } }
Branch on code. message is written for a person to read and may be
reworded; code is part of the contract.
Codes
| Status | Code | Means |
|---|---|---|
| 400 | invalid_request | The request was malformed or a value was rejected. |
| 401 | unauthorized | No credential, or one that does not verify. |
| 403 | forbidden | Authenticated, but not allowed to do this. |
| 403 | mau_limit_reached | A new user tried to sign in to a production app whose free monthly allowance is used up. See below. |
| 404 | not_found | No such thing, or nothing you may see. |
| 409 | conflict | Something already exists: a taken username, a duplicate. |
| 429 | rate_limited | Too many requests. Back off and retry. |
| 500 | internal_error | Ours. Quote the reference if you contact support. |
Organizations
What /v1/me/organizations
and the routes under /v1/me/organization answer with when they refuse.
Most of these come from settings you control under Organizations →
Settings → Policy in the console.
| Status | Code | Means |
|---|---|---|
| 403 | organizations_disabled | Organizations are turned off for this environment. |
| 403 | organization_creation_disabled | Only your backend can create organizations. |
| 403 | organization_slugs_disabled | A slug was sent while slugs are off. Leave it out. |
| 400 | organization_name_required | The name was missing or blank. |
| 403 | organization_limit_reached | The person has reached your “Organizations per user” limit. |
| 409 | organization_slug_taken | Another organization already uses that slug. |
| 403 | organization_last_owner | The last owner can’t leave or be removed. Make someone else an owner first. |
| 403 | organization_delete_disabled | Deleting from your app is turned off. Only your backend can delete. |
| 403 | organization_creator_only | Only the person who created the organization can delete it. Set by “Who can delete”. |
| 403 | organization_permission_required | The caller’s role doesn’t hold the permission this needs. |
| 403 | organization_mfa_setting_locked | An admin tried to change “require two-step” from your app, and your console keeps that for your backend. |
Native apps and ZevID sessions
What /v1/auth/zevid/start, the handoff exchange and refresh answer with
when a native sign-in or a ZevID session is refused. See
Native apps.
| Status | Code | Means |
|---|---|---|
| 400 | pkce_method_unsupported | code_challenge_method must be S256. |
| 400 | invalid_code_challenge | The challenge must be the base64url SHA-256 of the verifier. |
| 400 | pkce_required | A custom URL scheme callback needs PKCE. |
| 400 | invalid_state | state must be 1 to 512 characters. |
| 403 | native_redirect_not_verified | In production, the link’s domain doesn’t list any registered app yet. |
| 403 | custom_scheme_not_allowed | Custom URL schemes are for development unless ZevAuth support has enabled them. |
| 400 | pkce_verification_failed | The verifier doesn’t match the sign-in’s challenge. |
| 400 | redirect_uri_required | A PKCE sign-in must send the same redirectUri to the exchange. |
| 400 | redirect_uri_mismatch | The code was issued for a different redirectUri. |
| 401 | reauthentication_required | A ZevID session needs a fresh ZevID sign-in. |
| 400 | native_app_domain_unverified | Verify your project domain before adding a native app. |
| 400 | native_app_domain_mismatch | The link domain must be your verified domain or a subdomain. |
| 400 | native_app_invalid | The bundle ID, team ID, package name or fingerprint isn’t valid. |
| 400 | native_app_limit | The environment already has 10 apps for that platform, or the app has more than 5 certificates. |
| 400 | native_app_team_mismatch | All iOS apps in one environment must belong to the same Apple team. |
When the monthly allowance is used up
On the free plan, once your production apps reach their monthly active user
allowance, people not yet active this month get 403 with code
mau_limit_reached when they sign in. People already active keep working.
Show a friendly message rather than the raw error, for example that sign-ups are paused and to try again later. It clears at the start of next month, or as soon as the workspace moves to a paid plan. See Billing and usage.
What errors deliberately do not tell you
Sign-in and passwordless endpoints answer identically whether or not an address belongs to anybody. A wrong password and an unknown account produce the same error, and requesting a magic link for an unknown address succeeds.
That is not vagueness for its own sake: a distinguishable response turns any of those endpoints into a way to test whether a given person has an account with you.
Internal errors say nothing about the cause
A 500 carries a generic message and a reference:
{
"error": {
"code": "internal_error",
"message": "Something went wrong on our side. Quote reference 4f2a9c11 if you get in touch."
}
}
Updated at, Tuesday, November 24, 2026