ZevAuth
Sign up

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

StatusCodeMeans
400invalid_requestThe request was malformed or a value was rejected.
401unauthorizedNo credential, or one that does not verify.
403forbiddenAuthenticated, but not allowed to do this.
403mau_limit_reachedA new user tried to sign in to a production app whose free monthly allowance is used up. See below.
404not_foundNo such thing, or nothing you may see.
409conflictSomething already exists: a taken username, a duplicate.
429rate_limitedToo many requests. Back off and retry.
500internal_errorOurs. 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.

StatusCodeMeans
403organizations_disabledOrganizations are turned off for this environment.
403organization_creation_disabledOnly your backend can create organizations.
403organization_slugs_disabledA slug was sent while slugs are off. Leave it out.
400organization_name_requiredThe name was missing or blank.
403organization_limit_reachedThe person has reached your “Organizations per user” limit.
409organization_slug_takenAnother organization already uses that slug.
403organization_last_ownerThe last owner can’t leave or be removed. Make someone else an owner first.
403organization_delete_disabledDeleting from your app is turned off. Only your backend can delete.
403organization_creator_onlyOnly the person who created the organization can delete it. Set by “Who can delete”.
403organization_permission_requiredThe caller’s role doesn’t hold the permission this needs.
403organization_mfa_setting_lockedAn 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.

StatusCodeMeans
400pkce_method_unsupportedcode_challenge_method must be S256.
400invalid_code_challengeThe challenge must be the base64url SHA-256 of the verifier.
400pkce_requiredA custom URL scheme callback needs PKCE.
400invalid_statestate must be 1 to 512 characters.
403native_redirect_not_verifiedIn production, the link’s domain doesn’t list any registered app yet.
403custom_scheme_not_allowedCustom URL schemes are for development unless ZevAuth support has enabled them.
400pkce_verification_failedThe verifier doesn’t match the sign-in’s challenge.
400redirect_uri_requiredA PKCE sign-in must send the same redirectUri to the exchange.
400redirect_uri_mismatchThe code was issued for a different redirectUri.
401reauthentication_requiredA ZevID session needs a fresh ZevID sign-in.
400native_app_domain_unverifiedVerify your project domain before adding a native app.
400native_app_domain_mismatchThe link domain must be your verified domain or a subdomain.
400native_app_invalidThe bundle ID, team ID, package name or fingerprint isn’t valid.
400native_app_limitThe environment already has 10 apps for that platform, or the app has more than 5 certificates.
400native_app_team_mismatchAll 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