Errors

Every error is a JSON object with an error message. Match on the status code, and read the message for the detail.

Error responses

StatusMessageWhenRetry?
400Invalid JSON bodyThe request body is not valid JSON.Fix the request.
400Validation failedA field breaks a rule. The body has a details object that names the fields.Fix the request.
401Missing API key, Invalid API key, API key expiredThe key is absent, does not match an active key, or has expired.Send a valid key.
403API key lacks <access> access to <resource>, for example API key lacks 'write' access to 'sessions'.The key exists but its scopes do not allow the request.Use a key with the scope, or change the key's scopes.
404Workflow not found or not publishedCreating a session for a workflow that does not exist or is not published.Publish the workflow or check its ID.
404Session not foundReading a session that is not in your project.Check the session ID.
409reason: hosted link refusedReading the decision of a session that has no verification link.No. Create a new session.
422The verification service rejected this requestThe verification service refused the request for this workflow or these fields.Check the workflow setup and the fields.
429Too many requests. Please try again later.The rate limit for this API was reached (see the API overview).Yes, after the Retry-After time.
429Too many requests to the verification serviceThe verification service is limiting requests.Yes, after a short wait.
500Unexpected errorSomething failed on Verify's side.Yes, with backoff. Contact support if it continues.
502Verification service errorOn session creation, a 502 body carries a requestId.Yes, with backoff.
503Verification not configured for this projectVerification is not set up for the project yet.Contact support.

Request IDs

On session creation, a 502 response has a requestId in the body and the same value in the X-Request-Id header. The decision endpoint's 502 has no requestId. Give it to support with the time of the call. The provider's own error text is never returned. On the session endpoints the message is one of the fixed messages above. The decision endpoint has its own messages, listed on the Decisions page.

Retry guidance

  • Retry 429, 500 and 502 with a growing wait, and respect Retry-After.
  • Do not retry 400, 401, 403, 404 or 422 without changing the request.
  • Creating a session can be retried after a 502. A failed attempt does not leave a session you can use, so check the response before you send a user anywhere.