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
| Status | Message | When | Retry? |
|---|---|---|---|
| 400 | Invalid JSON body | The request body is not valid JSON. | Fix the request. |
| 400 | Validation failed | A field breaks a rule. The body has a details object that names the fields. | Fix the request. |
| 401 | Missing API key, Invalid API key, API key expired | The key is absent, does not match an active key, or has expired. | Send a valid key. |
| 403 | API 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. |
| 404 | Workflow not found or not published | Creating a session for a workflow that does not exist or is not published. | Publish the workflow or check its ID. |
| 404 | Session not found | Reading a session that is not in your project. | Check the session ID. |
| 409 | reason: hosted link refused | Reading the decision of a session that has no verification link. | No. Create a new session. |
| 422 | The verification service rejected this request | The verification service refused the request for this workflow or these fields. | Check the workflow setup and the fields. |
| 429 | Too many requests. Please try again later. | The rate limit for this API was reached (see the API overview). | Yes, after the Retry-After time. |
| 429 | Too many requests to the verification service | The verification service is limiting requests. | Yes, after a short wait. |
| 500 | Unexpected error | Something failed on Verify's side. | Yes, with backoff. Contact support if it continues. |
| 502 | Verification service error | On session creation, a 502 body carries a requestId. | Yes, with backoff. |
| 503 | Verification not configured for this project | Verification 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,500and502with a growing wait, and respectRetry-After. - Do not retry
400,401,403,404or422without 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.