Verify an identity document
/v1/documents/verifyThe hosted document pipeline on photos you send: document type and country, MRZ and visual-zone fields, MRZ check digits, consistency and authenticity checks. No chip read, morph or face checks. Send each side flat and cropped to the document. Asynchronous: answers 202, then documents.verify.completed. CHF 1.20 when it reached a document outcome; refunded on a processing error or timeout. Needs the documents:verify scope. Photos are erased when the check ends.
Send your API key in the x-api-key header.
Headers
- Idempotency-Keystring8–200 chars
Reuse on retries (printable non-space ASCII). For 24 hours the same key and the same request return the saved answer and check id without a second charge; a different request under the key returns 409.
Request bodyapplication/jsonrequired
- countrystringrequired
ISO 3166-1 alpha-2 or alpha-3.
- document_typestringrequired
One of
PASSPORTNATIONAL_IDDRIVER_LICENSERESIDENCE_PERMIT - reference_idstring≤ 128 chars
Your own id, echoed in the answer.
- sandbox_outcomestring
Sandbox keys only: which test answer to return. No model runs and nothing is charged.
One of
passfailreview - frontstringrequired
JPEG, PNG or WebP, at most 12 MB.
- backstring
Optional.
Responses
202Accepted. Poll the check or wait for its webhook.
- check_idstringuuidrequired
- productstring
- environmentstring | null
- statusstringrequired
One of
PROCESSINGCOMPLETEDFAILED - sandboxboolean
- created_atstringdate-time
- completed_atstring | nulldate-time
- reference_idstring
- poll_urlstring
- resultobject
Show 16 child propertiesHide child properties
- check_idstringuuid
- productstring
- environmentstring | null
- sandboxboolean
- checked_atstringdate-time
- reference_idstring
- signed_resultstring
The same answer as an ES256 JWS, verifiable with /.well-known/jwks.json.
- decisionstring
One of
PASSFAILREVIEW - outcomestring | null
- reasonstring | null
- documentobject
- fieldsobject
given_names, surname, document_number, date_of_birth, expiration_date, nationality, sex, issuing_country.
- mrzobject | null
The MRZ fields and their check-digit results.
- fraudobject
- authenticityobject | null
- checks_not_runarray of string
- errorobject
Show 2 child propertiesHide child properties
- codestring
- messagestring
- 400Invalid input.
- 401Missing, unknown or expired API key.
- 402The balance does not cover the check.
- 403The key lacks the product's scope, its IP allowlist refuses the caller, or (code production_not_allowed) the organization may not use production yet.
- 409The Idempotency-Key is in progress (Retry-After: 1) or was used with a different request.
- 413A file or the body is too large.
- 415A file is not of an accepted type (checked by its bytes, not its name), or the body is neither multipart nor JSON.
- 429More than 60 calls in a minute for this product.
- 503The check could not run on our side. Nothing was charged; retry later with the same Idempotency-Key.
curl -X POST https://api-verify.secuveri.com/v1/documents/verify \
-H "x-api-key: $SECUVERI_API_KEY" \
-H "content-type: application/json" \
-H "Idempotency-Key: signup-1042-retry-safe" \
-d '{
"country": "CHE",
"document_type": "PASSPORT",
"front": "<front>"
}'{
"check_id": "6f1c2e0a-8f43-4f7e-9a51-2b7c1d9e4a10",
"environment": "<environment>",
"status": "PROCESSING",
"completed_at": "2026-10-23T09:12:44.120Z"
}