Documentation Index
Fetch the complete documentation index at: https://documentation.idenfy.com/llms.txt
Use this file to discover all available pages before exploring further.
Requirements:
- API key pair
- Direct Processing feature enabled on your contract (contact iDenfy to activate)
How It Works
Direct processing lets you submit document images in a single POST request. The API responds immediately — the actual OCR, face matching, fraud checks, and AML screening all run asynchronously after the response. Results are delivered via webhook.Endpoint
Request Parameters
Required
token — string
token — string
The verification session token generated beforehand via session creation.
- Must be valid, unused, and belong to the authorized partner.
- Deactivated immediately after the request — cannot be reused.
- Must not have questionnaire answers (
kyc_answers) attached. - NFC must not be required for the session.
country — string
country — string
ISO 3166-1 alpha-2 country code (e.g.
LT, US, DE). Converted to uppercase automatically. Must be a valid recognized country code.images — object
images — object
A dictionary of Base64-encoded images, keyed by side:
Supported formats: PNG, JPG, JPEG, PDF. Encrypted or password-protected PDFs are rejected.
| Key | Description | Required |
|---|---|---|
FRONT | Document front | Always |
BACK | Document back | When the document type has a back side |
FACE | Selfie | Required for identification sessions; optional for document-only |
UTILITY_BILL | Utility bill image or PDF | When configured as a required step on the token |
SECOND_UTILITY_BILL | Second utility bill | When configured |
Optional
documentType — string
documentType — string
Specifies the document being submitted. Valid values:
ID_CARD, PASSPORT, DRIVER_LICENSE, RESIDENCE_PERMIT.If omitted, the system automatically detects the document type from the FRONT image. If auto-detection fails, the request is rejected with an error.When
documentType is provided, BACK becomes required if that document type has a back side.skipAnalysis — boolean (default: false)
skipAnalysis — boolean (default: false)
Set to
true to skip photo quality checks (blur, glare, document detection). Useful when a valid photo fails standard detection.Does not skip data extraction or fraud checks — only the photo validation step.Verification Types
The sessiontokenType set during session creation determines what images are expected:
- IDENTIFICATION (default): Requires a
FACEimage. Face matching runs against the document photo. - DOCUMENT: Document-only. Face step is removed automatically — no
FACEimage or liveness check required. Result is markedFACE_NOT_CHECKED.
Additional Steps
Some verification flows require extra document checks beyond the main identity document — for example, a utility bill for address verification. These are configured as additional steps on the token at session creation, not in the/v2/process call itself.
How it works:
-
Token creation — the partner sets up the token with
UTILITY_BILLas a required additional step, and optionally passes a reference address to compare against viaadditionalData: -
Direct processing call — the partner includes the utility bill image inside the
imagesobject alongside the main document images. No extra fields are needed in the/v2/processrequest body. -
Processing — depending on the step configuration, the system will:
Mode Behaviour UPLOADStores the image; no analysis EXTRACTExtracts the address from the bill; no comparison COMPAREExtracts the address and checks it against the reference address from additionalData
Conditions & Rules
| Condition | Rule |
|---|---|
| Partner access | Partner must have direct processing enabled in their contract — if not, the request is rejected |
| Token with questionnaire | Not allowed. Token must have no kyc_answers attached |
| NFC required token | Not allowed with direct processing |
documentType omitted | Only FRONT is mandatory; document type is auto-detected from the image |
documentType provided | BACK becomes required if that document type has a back side |
FACE image | Required when the session type includes face matching |
| PDF submitted | Must not be password-protected |
| Token reuse | Token is deactivated after one direct processing call |
Request Examples
With explicit document type:Response
A successful request returns HTTP 200 with no response body. Processing continues asynchronously.Error Response
Failed requests return a JSON body identifying the problem:A
200 OK with an error message body may indicate the document was not detected in the photo. If this happens:- Add
"skipAnalysis": trueto the request, or - Use a clearer photo with a fully visible document.
What Happens After
Once the request is accepted, processing runs asynchronously:- OCR extracts document fields — name, date of birth, expiry, document number, nationality, and more.
- Face matching runs if a
FACEimage was provided. - Fraud checks and AML/sanctions screening run automatically.
- Results are delivered via webhook to your configured endpoint.