--- title: "Unstructured Docs | Veriff.com" slug: "unstructured-docs" description: "Verify end-user via a non-standardized document such bank statements, utility bills, birth certificates, insurance policies, etc." status: "update" updated: 2026-10-21T04:48:04Z published: 2026-10-21T04:48:04Z canonical: "devdocs.veriff.com/unstructured-docs" --- > ## Documentation Index > Fetch the complete documentation index at: https://devdocs.veriff.com/llms.txt > Use this file to discover all available pages before exploring further. # Unstructured Docs | Available via API | Available via SDK | Needs configuration on Veriff’s side | Needs a separate integration | Needs a separate webhook | | --- | --- | --- | --- | --- | | ✅ | ✅ | ✅ | ✅ | ❌ | Unstructured Docs (also known as “uDocs”) is an intelligent document processing solution that allows the **classification, data extraction, and validation of non-standardized documents** such as bank statements, utility bills, birth certificates and insurance policies. The system extracts structured data and performs advanced tampering checks to verify the end-user and detect fraud. Unstructured Docs is **available via native** **SDK****, webflow and API**. You **need a separate integration for this solution**, meaning existing IDV or PoA or other integrations cannot be used. Unstructured Docs can be: - used **separately as a standalone check**; - **combined** with [Address Matching](/v1/docs/proof-of-address-verification#address-matching), [Address Validation](/v1/docs/proof-of-address-verification#address-validation) and document [Tampering Check](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) solutions. All **session-related** **info is returned via decision webhook** and can be **polled from different API endpoints**. The results of the verification can also be viewed in the Veriff Customer Portal, in the All verifications > *session* > Webhooks tab. If any **data** was **extracted from the document**, this data is provided in the decision **webhook payload** and **GET /decision endpoint’s response payload**. > [!NOTE] > Contact your **solutions engineer** for info and configuration. --- ## Prerequisites - **You have an** [**integration** set up](https://devdocs.veriff.com/docs/how-to-create-an-integration) with Veriff - The **feature is configured** for that integration **by your Solutions Engineer** - **You have configured the** [**decision webhook**](https://devdocs.veriff.com/docs/decision-webhook) to get responses from Veriff - **You are ready to collect** and **send** Veriff your **end-user’s data** - If you are using the solution via API: - Veriff **strongly recommends** you collect and send **additional device/session data** for improved fraud mitigation - Veriff **strongly recommends** that you **create and send** us the endUserId or vendorData ### Key terminology | Term | Description | | --- | --- | | Add-on | A solution/feature that can be enabled for the Unstructured Docs’ integration for additional data verification. | | Address Matching | A feature that compares addresses from two different sources (end-user’s documents and customer-provided initial data) to verify they belong to the same location. Outputs data in `additionalVerifiedData.addressMatching` object. See the [Address Matching](/v1/docs/proof-of-address-verification#address-matching) documentation for more info. | | Address Validation | A feature that validates the address extracted from the end-user’s document. Outputs data in `additionalVerifiedData.proofOfaddress.addressValidationResult` object. See the [Address Validation](/v1/docs/proof-of-address-verification#address-validation) documentation for more info. | | Classification | Process to identify document type (e.g., `bank_statement`, `car_insurance_policy`, `tax_statement`). Outputs data in `udocs.classification` object in decision webhook payload and GET /decision API response. | | Core feature | A feature that is part of the Unstructured Document's solution, required to ensure the solutions’ functionality. | | Document Expiration | Data validation process that checks the validity of the document based on its expiration date or its issue date. Outputs data in `udocs.validations.documentExpiration` object in decision webhook payload and GET /decision API response. | | Extraction | Process to extract specific data fields from the document (e.g., full name, address). Outputs data in `udocs.extraction` object in decision webhook payload and GET /decision API response. | | Feature | In uDocs context, an umbrella term for “add-on”, “classification”, “extraction”, “core feature”, “validations” | | InitData Matching | Data validation process, where the extracted data fields will be matched against the data sent through as initial data on session creation. For name, bank account number and occupation title matching. Outputs data in `udocs.validations.matchingResults` object in the decision webhook payload and GET /decision API response. | | Data fields to be extracted | Data field that can be extracted from end-user’s document. If set to be “mandatory”, the success or failure of this field’s extraction will impact your session result. You can chose which data fields are considered mandatory. | | Supported document type | Document type that can be used to perform a use case-specific verification. | | Tampering Check | Fraud detection feature that analyzes documents for signs of tampering. Outputs data in `udocs.fraud` object in the decision webhook payload and GET /decision API response. See [below](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) for more info. | | uDocs | Abbreviation of Unstructured Docs | | Use case | A specific real-life scenario where a unstructured document is used for end-user verification. | | Validations | Process where the input data (either extracted from end-user’s document or gathered from initData) is compared against some data point, e.g., against same data from another source, against a specific threshold or rule. | --- ## End-user data sources The “end-user data sources” refer to different origins from which the end-user’s information can be collected for database verification. There are two data sources: **document data** and **initData**. #### InitData This is **data that you provide** when creating a verification session, i.e. the parameters you specify in the [POST /sessions](https://devdocs.veriff.com/apidocs/v1sessions) request. Parameters that can be sent via initData, all are optional: - Full name via `verification.person.fullName` (e.g., for InitData Matching validation) - Bank account number via `verification.document.number` (e.g., for InitData Matching validation) - Full address via `verification.address.fullAddress` (for Address Matching and Address Validation add-ons) - Occupation via `verification.person.occupation` (e.g., for InitData Matching validation) #### Document data This is **data** that is **extracted** from the **end-user’s document**. Includes information like names, addresses, or account numbers extracted from bank statements, utility bills, vehicle registration forms etc. --- ## uDocs use cases and flow setup rules > [!NOTE] > Veriff strongly suggest to have **only one use case per integration**. > > Contact your **solutions engineer** for info and configuration. Unstructured Docs can be used to flexibly solve document verification for different use cases. However, there are some rules when setting up the use case: - each **use case supports** only **certain document types**, - and **allows the extraction** of **specific document data fields**. Supported document types and extractable data fields mapping is shown in the table below. Also, each **use case supports validation checks** that can be **configured to work with certain add-ons**. Working combinations are shown in the table below. **Note about the data fields to be extracted** - The table below shows the maximum list of data fields. You can enable only the ones needed. - None, some or all of them can be set to be mandatory, in which case the success or failure to extract that data will impact your session result. Note that you **need your Solution Engineer’s help** to set up the document types, extractable data fields and validation check/add-on combinations. You **cannot do this in Customer Portal or via initData**. | **Use case** | Supported document types | Data fields to be extracted | Supported validations and optional supported add-ons | | --- | --- | --- | --- | | **Bank account ownership verification** | - `bank_statement` - `proof_of_bank_account` | - `bank_account_number` - `issue_date` - `full_address` - `full_name` | - Document Expiration check: enables only “issue date in range” match check - InitData Matching: enables full name match check and bank account number match check - [Tampering Check](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) add-on - [Address Matching](/v1/docs/proof-of-address-verification#address-matching) + [Address Validation](/v1/docs/proof-of-address-verification#address-validation) add-ons | | **Birth certificate verification** | - `birth_certificate` | - `full_name` - `document_number` - `gender` - `date_of_birth` - `country_of_birth` - `nationality` - `mother_full_name` - `father_full_name` - `place_of_birth_address` - `birth_facility` | - [Tampering Check](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) add-on | | **Proof of Address verification** | - `bank_statement` - `certificate_of_non_taxation` - `certificate_of_residence` - `combined_utility_bill` - `council_or_housing_association_documentatio` - `credit_card_bill` - `electoral_register_entry` - `electricity_bill` - `gas_bill` - `government_issued_letter` - `home_insurance_policy` - `i9_form` - `insurance_bill` - `insurance_letter` - `internet_bill` - `ksa_national_address_certificate` - `land_line_phone_bill` - `landlord_letter` - `lease_agreement` - `lease_bill` - `loan_statement` - `mobile_phone_bill` - `mortgage_statement` - `notary_letter` - `p60_tax_certificate` - `pension_statement` - `proof_of_bank_account` - `proof_of_housing_tax` - `rent_bill` - `rent_receipt` - `rental_agreement` - `rental_contract` - `residence_permit` - `residence_registration` - `solicitors_letter` - `tax_assessment` - `tax_bill` - `tax_return` - `tax_statement` - `water_bill` - `contract_holder_certificate` | - `issue_date` - `full_address` - `full_name` | - Document Expiration check: enables only “issue date in range” match check - InitData Matching: enables full name match check - [Tampering Check](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) add-on - [Address Matching](/v1/docs/proof-of-address-verification#address-matching) + [Address Validation](/v1/docs/proof-of-address-verification#address-validation) add-ons | | **Source of income verification** | - `bank_statement` - `certificate_of_non_taxation` - `employer_payslip` - `p60_tax_certificate` - `tax_assessment` - `tax_bill` - `tax_return` - `tax_statement` | - `income` - `issue_date` - `issuer` - `full_address` - `full_name` - `occupation` (mandatory if “employer_payslip” document type is enabled) | - Document Expiration check: enables only “issue date in range” match check - InitData Matching: enables full name match check - [Tampering Check](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) add-on - [Address Matching](/v1/docs/proof-of-address-verification#address-matching) + [Address Validation](/v1/docs/proof-of-address-verification#address-validation) add-ons | | **Vehicle ownership verification** | - `car_ownership_certificate` - `vehicle_registration` | - `full_address` - `full_name` - `vehicle_identification_number` - `vehicle_registration_number` | - InitData Matching: enables full name match check - [Tampering Check](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) add-on - [Address Matching](/v1/docs/proof-of-address-verification#address-matching) + [Address Validation](/v1/docs/proof-of-address-verification#address-validation) add-ons | | **Vehicle insurance policy verification** | - `vehicle_insurance_policy` | - `document_number` - `expiry_date` - `full_address` - `full_name` - `vehicle_identification_number` - `vehicle_registration_number` | - Document Expiration check: enables only “document not expired” check - InitData Matching: enables full name match check - [Tampering Check](/v1/docs/unstructured-docs#tampering-check-aka-fraud-validation) add-on | --- ## Tampering Check aka fraud validation If the fraud validation add-on has been enabled for your solution, then you will see the `udocs.fraud` object in the payload. The `fraud` object shows the **document's risk level** and **gives additional details about the factors** that **influenced this risk assessment**. Veriff passes the data unaltered in webhooks and API payloads. ```json {  "verification": {    "udocs": {        "fraud": {            "riskLevel": "HIGH_RISK",            "reason": "PDF_PROCESSED_BY_EDITOR",            "reasonDescription": "Document was processed using editing software",            "indicators": []        }    }  } } ``` Note that: - The session will be `declined` if the `riskLevel`: `HIGH_RISK`. - The decision webhook and API examples further below in this document contain limited info about the possible values of the keys in the `fraud` object. > [!WARNING] > Veriff recommends you **do not build any logic on top of** the `fraud.indicators` array, as possible values may be altered without prior notice to provide better insights. However, structure of entries will stay backwards compatible. --- ## Birth certificate verification use case This use-case enables data extraction from birth certificates. If it has been enabled for your integration, then the data is extracted from the document and returned in decision webhook `verification.udocs.extraction` object. All of them return an empty string if data not present on the document. - `udocs`: `object` Container for the features’ and add-ons’ results - `extraction`: `object` Returning info about all the data that was extracted - `fullName`: `string` The full name of the person as recorded on the birth certificate - `documentNumber`: `string` The unique identifier of the birth certificate - `countryOfBirth`: `string` The country where the person was born, as recorded on the birth certificate - `dateOfBirth`: `string` The person's date of birth in ISO 8601 format (`YYYY-MM-DD`), as recorded on the birth certificate - `fatherFullName`: `string` The full name of the person's father, as recorded on the birth certificate - `motherFullName`: `string` The full name of the person's mother, as recorded on the birth certificate - `nationality`: `string` The nationality of the person as recorded on the birth certificate - `birthFacility`: `string` The name of the hospital or facility where the person was born, as recorded on the birth certificate - `placeOfBirthAddress`: `string` The city or address of the place of birth, as recorded on the birth certificate. - If `gender` data extraction was enabled for the integration and data was found on the document, the data is shown in `verification.person.gender` field. Otherwise, it is `null`. > [!NOTE] > By **default all the above are set as mandatory fields** to be extracted. If any of the **mandatory fields could not be extracted, the session fails**. However, **you can decide which fields are mandatory** (at least one must remain mandatory). > > Contact your **solutions engineer** for info and configuration. #### Sample payload with Birth certificate verification data The following are **sample** **responses** of `approved` and `declined` sessions showing objects that are sent when the **Birth certificate verification** feature has been enabled for the use case. The payload examples below show the full decision webhook payload, including decision webhook’s mandatory parameters. All strings and IDs (e.g., `fullName`, `dateOfBirth`) are **placeholder values used for illustrative purposes only**. Your production payload will contain real-time data extracted from the end-user's document. *****Click to open a sample payload of an*** `approved` ***session***** ```json {  "status": "success",  "verification": {    "acceptanceTime": "2026-03-15T14:22:18.347291Z",    "submissionTime": "2026-03-15T14:22:41.983650Z",    "decisionTime": "2026-03-15T14:23:05.612804Z",    "code": 9001,    "id": "7f2e9b4d-3c1a-4f87-b6e2-d91048c53a7f",    "vendorData": "12345678",    "endUserId": null,    "status": "approved",    "reason": null,    "reasonCode": null,    "person": {      "firstName": "Marek Tamm",      "lastName": null,      "fullName": "Marek Tamm",      "citizenship": null,      "idNumber": null,      "gender": null,      "dateOfBirth": "1985-03-14",      "yearOfBirth": null,      "placeOfBirth": null,      "nationality": "",      "pepSanctionMatch": null,      "placeOfBirthAddress": "Tallinn",      "countryOfBirth": "Estonia"    },    "document": {      "number": "BK0274531",      "type": "BIRTH_CERTIFICATE",      "country": "EE",      "validFrom": null,      "validUntil": null,      "state": null    },    "comments": [],    "additionalVerifiedData": {},    "udocs": {      "metadata": {        "pageCount": 1      },      "extraction": {        "fullName": "Marek Tamm",        "documentNumber": "BK0274531",        "countryOfBirth": "Estonia",        "dateOfBirth": "1985-03-14",        "fatherFullName": "",        "motherFullName": "",        "nationality": "",        "birthFacility": "",        "placeOfBirthAddress": "Tallinn"      },      "classification": {        "documentType": "government",        "documentSubType": "birth_certificate",        "countryCode": "ee",        "language": "et",        "issuer": "tallinna_perekonnaseisuamet"      }    },    "attemptId": "a4d71e8c-2f56-4b03-9d15-e63c1a8b0492"  },  "technicalData": {    "ip": null  } } ``` *****Click to open a sample payload of an*** `declined` ***session (failed to extract mandatory*** `fullName` ***data)***** ```json {  "status": "success",  "verification": {    "acceptanceTime": "2026-02-20T11:15:33.224190Z",    "submissionTime": "2026-02-20T11:15:49.774512Z",    "decisionTime": "2026-02-20T11:16:44.391028Z",    "code": 9102,    "id": "e8c31a57-9b24-4d6f-a013-52f7d8e9b4c1",    "vendorData": null,    "endUserId": null,    "status": "declined",    "reason": "Mandatory data fields extraction failed",    "reasonCode": 568,    "person": {      "firstName": null,      "lastName": null,      "fullName": "",      "citizenship": null,      "idNumber": null,      "gender": null,      "dateOfBirth": "1985-03-14",      "yearOfBirth": null,      "placeOfBirth": null,      "nationality": "Estonian",      "pepSanctionMatch": null,      "placeOfBirthAddress": "Tallinn",      "countryOfBirth": "Estonia",      "fatherFullName": "Jüri Tamm",      "motherFullName": "Eha Nõmm"    },    "document": {      "number": "BK0274531",      "type": "BIRTH_CERTIFICATE",      "country": "EE",      "validFrom": null,      "validUntil": null,      "state": null    },    "comments": [],    "additionalVerifiedData": {},    "udocs": {      "metadata": {        "pageCount": 1      },      "extraction": {        "fullName": "",        "documentNumber": "BK0274531",        "countryOfBirth": "Estonia",        "dateOfBirth": "1985-03-14",        "fatherFullName": "Jüri Tamm",        "motherFullName": "Eha Nõmm",        "nationality": "Estonian",        "birthFacility": "",        "placeOfBirthAddress": "Tallinn"      },      "classification": {        "documentType": "government",        "documentSubType": "birth_certificate",        "countryCode": "ee",        "language": "et",        "issuer": "tallinna perekonnaseisuamet"      },      "fraud": {        "riskLevel": "LOW_RISK",        "reason": "LOW_QUALITY",        "reasonDescription": "Document quality is low",        "indicators": []      }    },    "attemptId": "b5f92d0e-7a13-4c81-8e47-3d60c1f5a892"  },  "technicalData": {    "ip": null  } } ``` --- ## Flow overview ### Unstructured Docs via SDK/webflow 1. Generate a verification session using the API keys and the `baseURL` of the integration (see the [API Documentation and API Reference](/v1-api/apidocs/veriff-public-api-guides#api-keys)[↗] how to find these) **Session creation bash example** ```bash curl -X POST \  --url '/v1/sessions/' \  -H 'X-AUTH-CLIENT: your-api-key' \  -H 'Content-Type: application/json' \  -d '{    "verification": {        "callback": "https://exampleURL.com"    } }' ``` 1. Capture end-user’s document images with Veriff’s SDKs - Send the end-user through the verification flow to capture the images (using the preferred Veriff SDK) - You need the session URL generated in step 1 to use the SDKs (found in response payload as `verification.url`) - If a condition triggers document [recapture](/v1/docs/unstructured-docs#resubmission-flow-via-sdkwebflow-only), the end-user is asked to capture or upload the document again. 2. Session will be submitted automatically once the end-user takes and submits necessary images 3. Receive the results from Veriff via decision webhook or poll them via [GET /sessions/{sessionId}/decision](/v1-api/apidocs/v1sessionsiddecision-1) endpoint #### Recapture flow When a condition (e.g., wrong document type, bad image quality, an expired document) triggers a recapture, the end-user is taken back to the Document List screen, where they can capture or upload a new document image. It is possible to configure it so that the end-user has the option to wait on the session decision and to see the recapture error feedback. **Checklist screen**: for some use-cases, it is possible to enable a document checklist screen, informing the end-user about about document requirements. **Recapture** is available **only via the native** **SDK** **and web flow** and its behavior is configured by your Solutions Engineer for the integration. > Contact your Solutions Engineer for information and configuration. **Rate limits**: resubmission limit is 10 (the initial attempt + 9 resubmissions = 10 total attempts). #### Webhook example of recapture flow A webhook with `verification.status`: `resubmission_requested` is visible in Customer Portal > *session* > Webhooks tab. ***Click to open a sample payload with* `status`*:* `resubmission_requested`** ```json {  "status": "success",  "verification": {    "acceptanceTime": "2026-07-15T07:47:11.163831Z",    "submissionTime": "2026-07-15T07:47:40.630545Z",    "decisionTime": "2026-07-15T07:47:58.085196Z",    "code": 9103,    "id": "3f9a2e14-7b6d-4c8a-9e21-5d0c8f4b6a17",    "vendorData": null,    "endUserId": null,    "status": "resubmission_requested",    "reason": "Document type is not supported",    "reasonCode": 510,    "person": {      "firstName": null,      "lastName": null,      "citizenship": null,      "idNumber": null,      "gender": null,      "dateOfBirth": null,      "yearOfBirth": null,      "placeOfBirth": null,      "nationality": null,      "pepSanctionMatch": null    },    "document": {      "number": null,      "type": null,      "country": null,      "validFrom": null,      "validUntil": null,      "state": null    },    "comments": [],    "additionalVerifiedData": {},    "attemptId": "8c4d1a90-2f3e-4b7c-a1d5-6e9f0b2c3d84"  },  "technicalData": {    "ip": "192.0.1.1"  } } ``` ### Unstructured Docs verification (with initData validation) 1. Generate a verification session using the API keys and the `baseURL` of your Unstructured Docs integration. 1. Include the initData you want it to be matched against the data on the document. 2. Veriff strongly recommends you create and send the `endUserId` or `vendorData`. 3. Veriff strongly recommends you collect and send additional session/device data via [POST sessions/{sessionid}/collected-data](https://devdocs.veriff.com/apidocs/v1sessionsidcollected-data-1) for improved fraud detection. **Session creation bash example (with all possible initData fields)** ```bash curl --request POST \  --url 'https://exampleURL.com/v1/sessions/' \  --header 'content-type: application/json' \  --header 'x-auth-client: your-api-key' \  --data '{    "verification": {      "document": {        "number": "847293651024738569"      },      "person": {        "fullName": "JUAN MARTINEZ",        "occupation": "Driver"      },      "address": {        "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100"      },      "endUserId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"    }  }' ``` **Session creation json example (with all possible initData fields)** ```json {  "verification": {    "document": {      "number": "847293651024738569"    },    "person": {      "fullName": "JUAN MARTINEZ",      "occupation": "Driver"    },    "address": {      "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100"    },    "endUserId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"  } }     ``` 1. Upload the end-user's media via [POST /sessions/{sessionId}/media](https://devdocs.veriff.com/apidocs/v1sessionsidmedia-3) call. 1. Use your image-capturing method, or send previously collected document image(s). 2. Unstructured Docs supports JPEG, PNG, and multi-page PDFs (see the [POST /sessions/{sessionId}/media](https://devdocs.veriff.com/apidocs/v1sessionsidmedia-3) documentation for more info about how to upload the image or PDF files). 3. Specify the `image.context` as `generic-document-front` for the document. 4. This endpoint requires endpoint level authentication via `x-hmac-signature` header. See [HMAC Authentication and Endpoint Security](/v1/docs/hmac-authentication-and-endpoint-security#public-api-v1) article for general info about signature creation. **Media upload bash example** ```bash curl -X POST \  --url 'https://exampleURL.com/v1/sessions/{sessionId}/media' \  -H 'Content-Type: application/json' \  -H 'X-AUTH-CLIENT: your-api-key' \  -H 'X-HMAC-SIGNATURE: your-hmac-signature' \  -d '{    "image": {      "data": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA...",      "context": "generic-document-front"    }  }' ``` **Media upload json example** ```json {        "image": {        "data": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA...",        "context": "generic-document-front"        }        }     ``` 1. Patch session status to `submitted` status using [PATCH /sessions/{sessionId}](https://devdocs.veriff.com/apidocs/v1sessionsid-2) call 1. This endpoint requires endpoint level authentication via `x-hmac-signature` header. See [HMAC Authentication and Endpoint Security](/v1/docs/hmac-authentication-and-endpoint-security#public-api-v1) article for general info about signature creation. **Session update bash example** ```bash curl -X PATCH \  --url 'https://exampleURL.com/v1/sessions/{sessionId}' \  -H 'Content-Type: application/json' \  -H 'X-AUTH-CLIENT: your-api-key' \  -H 'X-HMAC-SIGNATURE: your-hmac-signature' \  -d '{    "status": "submitted"  }' ``` **Session update json example** ```json {  "status": "submitted" }     ``` 1. Check the decision data and/or session related info from the decision webhook and/or query the data from the [GET /sessions/{sessionId}/decision](/v1-api/apidocs/v1sessionsiddecision-1) endpoint. Solution-specific overview of what to expect is provided below in the **Find decision and/or session related info** > [Solution-specific parameters](/v1/docs/unstructured-docs#solutionspecific-parameters) section. ### Unstructured Docs with document extraction (no initData validation) 1. Generate a verification session using the API keys and the `baseURL` of your Unstructured Docs integration. 1. If no initData is sent, the payload can be an empty `verification` object 2. Veriff strongly recommends you create and send the `endUserId` or `vendorData` 3. Veriff strongly recommends you collect and send additional session/device data via [POST sessions/{sessionid}/collected-data](https://devdocs.veriff.com/apidocs/v1sessionsidcollected-data-1) for improved fraud detection **Session creation bash example (empty** `verification` **object)** ```bash curl --request POST \  --url 'https://exampleURL.com/v1/sessions/' \  --header 'content-type: application/json' \  --header 'x-auth-client: your-api-key' \  --data '{    "verification": {}  }' ``` **Session creation json example (empty** `verification` **object)** ```json {  "verification": {} }     ``` 1. Upload the end-user's media via [POST /sessions/{sessionId}/media](https://devdocs.veriff.com/apidocs/v1sessionsidmedia-3) call. 1. Use your image-capturing method, or send previously collected document image(s). 2. Unstructured Docs supports JPEG, PNG, and multi-page PDFs (see the [POST /sessions/{sessionId}/media](https://devdocs.veriff.com/apidocs/v1sessionsidmedia-3) documentation for more info about how to upload the image or PDF files). 3. Specify the `image.context` as `generic-document-front` for the document. 4. This endpoint requires endpoint level authentication via `x-hmac-signature` header. See [HMAC Authentication and Endpoint Security](/v1/docs/hmac-authentication-and-endpoint-security#public-api-v1) article for general info about signature creation. **Media upload bash example** ```bash curl -X POST \  --url 'https://exampleURL.com/v1/sessions/{sessionId}/media' \  -H 'Content-Type: application/json' \  -H 'X-AUTH-CLIENT: your-api-key' \  -H 'X-HMAC-SIGNATURE: your-hmac-signature' \  -d '{    "image": {      "data": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA...",      "context": "generic-document-front"    }  }' ``` **Media upload json example** ```json {  "image": {    "data": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA...",    "context": "generic-document-front"  } } ``` 1. Patch session status to `submitted` status using [PATCH /sessions/{sessionId}](https://devdocs.veriff.com/apidocs/v1sessionsid-2) call. 1. This endpoint requires endpoint level authentication via `x-hmac-signature` header. See [HMAC Authentication and Endpoint Security](/v1/docs/hmac-authentication-and-endpoint-security#public-api-v1) article for general info about signature creation. **Session update bash example** ```bash curl -X PATCH \  --url 'https://exampleURL.com/v1/sessions/{sessionId}' \  -H 'Content-Type: application/json' \  -H 'X-AUTH-CLIENT: your-api-key' \  -H 'X-HMAC-SIGNATURE: your-hmac-signature' \  -d '{    "status": "submitted"  }'     ``` **Session update json example** ```json {  "status": "submitted" }     ``` 1. Check the decision data and/or session related info from the decision webhook and/or query the data from the [GET /sessions/{sessionId}/decision](/v1-api/apidocs/v1sessionsiddecision-1) endpoint. Solution-specific overview of what to expect is provided below in the **Find decision and/or session related info** > [Solution-specific parameters](/v1/docs/unstructured-docs#solutionspecific-parameters) section. --- ## Find decision and/or session related info You can get the data from three sources: - Receive the **decision webhook** [(full example with placeholder values below)](/v1/docs/unstructured-docs#sample-request) - Poll the results via **GET /decision API endpoint** [(full example with placeholder values below)](/v1/docs/unstructured-docs#sample-response) - View the session in **Veriff Customer Portal** > **All Verifications** > *session* > **Webhooks** tab ### Solution-specific parameters The info related to Unstructured Docs is returned in `verification.udocs` array. This array contains data objects with info about different aspects (e.g., document classification, data extraction, data matching, document tampering) performed during the session. | Object | Description | Needs enablement by the SE? | Used in | | --- | --- | --- | --- | | `udocs.classification` | Identifies document type, country, and issuer. Core feature; always present, though nested fields are omitted if confidence is low. | No | Core feature, classification | | `udocs.extraction` | Extracted data fields (e.g., name, address). Keys appearing here depend on the use case and document type used. Keys are optional and can have an empty value or be completely omitted, depending on the use case configuration and data availability on document. | No | Core feature, extraction | | `udocs.fraud` | Tampering and risk analysis. Omitted if feature is disabled. Returns `riskLevel`, though nested properties like `indicatorsDescriptions` may return as an empty array if no specific tampering markers are detected. `riskLevel`: `high` results in `declined` status. | Yes | Tampering Check, add-on | | `udocs.metadata` | A generic object, containing meta info about the document and verification process. Always present. | No | N/A | | `udocs.validations.documentExpiration` | Checks the validity of the document based on either: - if document is not expired: returns `isWithinValidityPeriod` boolean; or - if its issue date is within allowed range: returns `isIssueDateInRange` boolean. This is skipped and the key omitted when the document has expiry date and expiry date-based validation is enabled. | Yes | Document validity period check, validation | | `udocs.validations.matchingResults` | Compares initData to extracted data. Omitted if feature is disabled or initData was not provided. Invalid data results in `declined` status. | Yes | Name matching Bank account number matching Occupation info matching | #### Note about object and field visibility All objects and fields within the `verification.udocs` object are **optional**. You should expect that any key may be omitted from the payload or return an empty or `null` value. A field is included in the response only when: - The specific feature or add-on (e.g., Tampering Check or InitData Matching) or use-case (e.g., Birth certificate verification or Vehicle ownership verification) has been configured for your integration by a solutions engineer - The use case setup defines which data fields need to be extracted - The system successfully extracts that specific data point from the end-user's document Because the response schema is dynamic and based on both your specific configuration and the quality of the document provided, your application logic must account for omitted keys and `null` values as a standard part of the verification workflow. #### Note on session outcomes An `approved` session is identified by a `verification.status` of `approved`. The **indicators of a “clean” session** are found within the specific **features’ and/or use cases and/or add-on’s objects**. Depending on your configuration, a session is approved when, for example: - `fraud.riskLevel` is `LOW_RISK` (if Tampering Check is enabled), - `matchingResults.match` is `true` (if InitData Matching validation is enabled and `initData` was provided), - `documentExpiration.isWithinValidityPeriod` is `true` (if Document Expiration validation is enabled and the document has an expiry date that cleared the range threshold). If these **features and/or use cases and/or add-ons are not enabled**, their respective objects/keys are **omitted** from the payload and do not impact the `approved` status. #### Sample payload of `udocs` object The following is a **sample** response for a `declined` session with **all possible** `udocs` **object parameters**. The goal is to provide a payload showing all possible parameters (a fictional example), although all the use cases and add-ons can not be enabled together. All strings and IDs (e.g., `fullName`, `documentType`) are **placeholder values used for illustrative purposes only**. Your production payload will contain real-time data extracted from the end-user's document. See the [Request properties explained](/v1/docs/unstructured-docs#request-properties-explained) section below for info about the properties. ```json {  "verification": {    "udocs": {      "metadata": {        "pageCount": 2      },      "extraction": {        "fullName": "JUAN MARTINEZ",        "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100",        "bankAccountNumber": "84532345",        "issueDate": "2024-05-28",        "expiryDate": "2025-05-28",        "documentNumber": "847293651024738569",        "vehicleIdentificationNumber": "1HGBH41JXMN109186",        "vehicleRegistrationNumber": "ABC-1234",        "occupation": "Driver",        "income": "45000",        "issuer": "Skrill Limited",        "currency": "USD",        "countryOfBirth": "Mexico",        "dateOfBirth": "1993-08-22",        "fatherFullName": "Carlos Martinez Reyes",        "motherFullName": "Rosa Lopez Vega",        "nationality": "Mexican",        "birthFacility": "Hospital General de Mexico",        "placeOfBirthAddress": "Ciudad de Mexico"      },      "classification": {        "documentType": "financial",        "documentSubType": "bank_statement",        "countryCode": "mx",        "language": "es",        "issuer": "skrill_limited"      },      "validations": {        "matchingResults": [          {            "type": "full_name",            "match": true,            "originalValue": "JUAN MARTINEZ",            "extractedValue": "JUAN MARTINEZ",            "matchThreshold": 80,            "matchPercentage": 100          },          {            "type": "occupation",            "match": true,            "originalValue": "Driver",            "extractedValue": "Driver",            "matchThreshold": 80,            "matchPercentage": 100          }        ],        "documentExpiration": {          "isIssueDateInRange": false,          "isWithinValidityPeriod": false        }      },      "fraud": {        "riskLevel": "HIGH_RISK",        "reason": "DIGITAL_MODIFICATION_HIGH_CONFIDENCE",        "reasonDescription": "Document contains traces of digital modification, likely with fraudulent intent",        "indicators": [          "This document's metadata shows a creation time: 2023-03-31T12:04:01+00:00 and a modification time: 2024-05-29T11:30:26+00:00, suggesting the file was updated after it was first created. The time gap between creation and modification is 424 days, 23:26:25."        ]      }    }  } } ``` #### Sample payload with Address Matching and Address Validation info The following is a **sample** **response** for a `declined` session showing objects that are sent when **Address Matching and Address Validation add-ons** have been enabled for the use case. Session was declined because the address from the document does not match the address sent as initData. Address Validation shows the address extracted from document was confirmed as valid. All strings and IDs (e.g., `fullName`, `documentType`) are **placeholder values used for illustrative purposes only**. Your production payload will contain real-time data extracted from the end-user's document. See the [Address Matching](/v1/docs/proof-of-address-verification#address-matching) and [Address Validation](/v1/docs/proof-of-address-verification#address-validation) documentation for more info about the properties. ```json {  "status": "success",  "verification": {    "acceptanceTime": "2026-02-18T13:39:54.401658Z",    "submissionTime": "2026-02-18T13:40:22.784253Z",    "decisionTime": "2026-02-18T13:41:47.173826Z",    "code": 9102,    "id": "f3a8b7c2-d4e1-4f92-a8b3-c5d6e7f8a9b0",    "vendorData": null,    "endUserId": null,    "status": "declined",    "reason": "Addresses do not match",    "reasonCode": 573,    "person": {      "firstName": "JUAN MARTINEZ",      "lastName": null,      "fullName": "JUAN MARTINEZ",      "citizenship": null,      "idNumber": null,      "gender": null,      "dateOfBirth": null,      "yearOfBirth": null,      "placeOfBirth": null,      "nationality": null,      "addresses": [        {          "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100"        }      ],      "pepSanctionMatch": null    },    "document": {      "number": null,      "type": "BANK_STATEMENT",      "country": "MX",      "validFrom": "2025-12-09",      "validUntil": null,      "state": null    },    "comments": [],    "additionalVerifiedData": {      "proofOfAddress": {        "addressValidationResult": {          "status": "CONFIRMED",          "components": {            "plausibleFullAddress": "CALLE MADERO 415 INT 5 COL CENTRO CUAUHTÉMOC CIUDAD DE MÉXICO MÉXICO CP 06000",            "street": "CALLE MADERO",            "city": "CUAUHTÉMOC",            "state": "CIUDAD DE MÉXICO",            "postcode": "06000",            "country": "MÉXICO",            "houseNumber": "415",            "unit": "INT 5"          },          "addressType": "residential",          "validations": {            "countryExists": {              "result": "skipped"            }          }        }      },      "addressMatching": {        "matchPercentage": 0,        "matchThreshold": 80,        "result": false,        "addresses": [          {            "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100",            "parsedAddress": {              "street": "AV INSURGENTES SUR",              "city": "BENITO JUAREZ",              "state": "CIUDAD DE MEXICO",              "postcode": "03100",              "country": "MEXICO",              "houseNumber": "2847",              "unit": "PISO 3"            }          },          {            "fullAddress": "CALLE MADERO 415 INT 5 COL CENTRO CUAUHTÉMOC CIUDAD DE MÉXICO MÉXICO CP 06000",            "parsedAddress": {                "street": "CALLE MADERO",                "city": "CUAUHTÉMOC",                "state": "CIUDAD DE MÉXICO",                "postcode": "06000",                "country": "MÉXICO",                "houseNumber": "415",                "unit": "INT 5"            }          }        ]      }    },    "udocs": {      "metadata": {        "pageCount": 1      },      "extraction": {        "fullName": "JUAN MARTINEZ",        "fullAddress": "CALLE MADERO 415 INT 5 COL CENTRO CUAUHTÉMOC CIUDAD DE MÉXICO MÉXICO CP 06000",        "bankAccountNumber": "014180012345678902",        "issueDate": "2025-12-09",        "occupation": "",        "income": "",        "issuer": "Santander",        "currency": "MXN"      },      "classification": {        "documentType": "financial",        "documentSubType": "bank_statement",        "countryCode": "MX",        "language": "ES",        "issuer": "Santander"      },      "validations": {        "matchingResults": [        {          "type": "full_name",          "match": true,          "originalValue": "JUAN MARTINEZ",          "extractedValue": "JUAN MARTINEZ",          "matchThreshold": 80,          "matchPercentage": 100        },        {          "type": "occupation",          "match": false,          "originalValue": "Engineer",          "extractedValue": "",          "matchThreshold": 80,          "matchPercentage": 0        }        ],        "documentExpiration": {          "isIssueDateInRange": true        }      },      "fraud": {        "riskLevel": "HIGH_RISK",        "reason": "ILLEGIBILITY",        "reasonDescription": "Unreadable document",        "indicators": [          "This image appears to have been generated directly from a digital PDF. This is unusual and may suggest an attempt to conceal edits. Some organizations have policies restricting the acceptance and use of digital prints."        ]      }    },    "attemptId": "b9c8d7e6-f5a4-4b32-9c8d-7e6f5a4b3c2d"  },  "technicalData": {    "ip": null  } } ``` ### Webhook payload > [!NOTE] > The example below uses **placeholder data** to show **all mandatory decision webhook parameters and uDocs fields**. While mandatory fields are always present, add-on or use case-specific keys are omitted if a feature is disabled or data extraction fails. **Depending on your integration’s configuration**, your **production** **payload may contain additional parameters**; for info on fields from other solutions, see the [decision webhook](/v1/docs/decision-webhook) documentation. #### Sample request The following features have been enabled for the session: Classification, Extraction, InitData Matching, Tampering Check, Document Expiration. ```json {  "status": "success",  "verification": {    "acceptanceTime": "2026-02-04T11:57:36.495752Z",    "submissionTime": "2026-02-04T11:57:43.127728Z",    "decisionTime": "2026-02-04T11:58:15.073712Z",    "code": 9102,    "id": "f3a8b7c2-d4e1-4f92-a8b3-c5d6e7f8a9b0",    "vendorData": null,    "endUserId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",    "status": "declined",    "reason": "Name in initData does not match the document name",    "reasonCode": 541,    "person": {      "firstName": null,      "lastName": null,      "fullName": "JUAN MARTINEZ",      "citizenship": null,      "idNumber": null,      "gender": null,      "dateOfBirth": null,      "yearOfBirth": null,      "placeOfBirth": null,      "nationality": null,      "addresses": [        {          "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100"        }      ],      "pepSanctionMatch": null    },    "document": {      "number": null,      "type": null,      "country": null,      "validFrom": null,      "validUntil": null,      "state": null    },    "comments": [],    "additionalVerifiedData": {},    "udocs": {      "metadata": {        "pageCount": 2      },      "extraction": {        "fullName": "JUAN MARTINEZ",        "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100",        "bankAccountNumber": "84532345",        "issueDate": "2024-05-28",        "expiryDate": "2025-05-28",        "documentNumber": "847293651024738569",        "vehicleIdentificationNumber": "1HGBH41JXMN109186",        "vehicleRegistrationNumber": "ABC-1234",        "occupation": "Driver",        "income": "45000",        "issuer": "Skrill Limited",        "currency": "USD"      },      "classification": {        "documentType": "financial",        "documentSubType": "bank_statement",        "countryCode": "mx",        "language": "es",        "issuer": "skrill_limited"      },      "validations": {        "matchingResults": [          {            "type": "full_name",            "match": true,            "originalValue": "JUAN MARTINEZ",            "extractedValue": "JUAN MARTINEZ",            "matchThreshold": 80,            "matchPercentage": 100          },          {            "type": "occupation",            "match": true,            "originalValue": "Driver",            "extractedValue": "Driver",            "matchThreshold": 80,            "matchPercentage": 100          },          {            "type": "bank_account_number",            "match": true,            "originalValue": "AB123456789012345",            "extractedValue": "AB123456789012345",            "matchThreshold": 100,            "matchPercentage": 100          }        ],        "documentExpiration": {          "isIssueDateInRange": false,          "isWithinValidityPeriod": false        }        },      "fraud": {        "riskLevel": "HIGH_RISK",        "reason": "DIGITAL_MODIFICATION_HIGH_CONFIDENCE",        "reasonDescription": "Document contains traces of digital modification, likely with fraudulent intent",        "indicators": [          "This document's metadata shows a creation time: 2023-03-31T12:04:01+00:00 and a modification time: 2024-05-29T11:30:26+00:00, suggesting the file was updated after it was first created. The time gap between creation and modification is 424 days, 23:26:25."        ]      }    },    "attemptId": "b9c8d7e6-f5a4-4b32-9c8d-7e6f5a4b3c2d"  },  "technicalData": {    "ip": null  } } ``` #### Request properties explained - `status`: `string` Status of the response - `verification`: `object | null` Verification request decision object. `null` if decision is not available yet - `id`: `string` UUID v4 which identifies the verification session - `attemptId`: `string` UUID v4 of the attempt which received a status (as shown in `verification.status` field) - `vendorData`: `string | null` The unique identifier that you created for your end-user. `null` if not specified - `endUserId`: `string | null` The `UUID` that you created for your end-user. `null` if not specified - `status`: `string` Verification status, one of `approved`, `resubmission_requested`, `declined`, `expired`, `abandoned` - `code`: `integer` Verification session decision code, one of `9001`, `9102`, `9103`, `9104`. For more info, see the [verification session decision](/v1/docs/verification-session-status-codes-table) codes - `reason`: `string | null` Reason why the verification failed - `reasonCode`: `integer | null` Reason code of the failed verification. For more info, see the [possible codes for a failed verification](https://devdocs.veriff.com/v1/docs/verification-session-decision-codes-table) - `acceptanceTime`: `string` Timestamp of the session generation, represented as `UTC YYYY-MM-DDTHH:MM:SS.SSS+Timezone Offset` (ISO 8601) - `submissionTime`: `string` Timestamp of when the session was submitted, represented as `UTC YYYY-MM-DDTHH:MM:SS.SSSSSS+Timezone Offset` (ISO 8601) - `decisionTime`: `string | null` Timestamp of the decision, represented as `UTC YYYY-MM-DDTHH:MM:SS.SSS+Timezone Offset` (ISO 8601) - **`person`: `object` Data about the verified person** - `firstName`: `string | null` Person's first name as written on the document - `lastName`: `string | null` Person's last name as written on the document - `fullName`: `string | null` Full name of the person - `citizenship`: `null` *Deprecated, always returns null* - `idNumber`: `string | null` National identification number - `gender`: `string | null` Person's gender, represented as `M`, `F`, `X` or `null` if not present. If [Birth certificate verification](/v1/docs/unstructured-docs#birth-certificate-verification) has been enabled and gender data extraction is required, the extracted data is presented here - `dateOfBirth`: `string | null` Person's date of birth, represented as `YYYY-MM-DD` - `yearOfBirth`: `string | null` Person's year of birth, represented as `YYYY` - `placeOfBirth`: `string | null` Person's place of birth - `nationality`: `string | null` Person's nationality, represented as ISO 3166 `alpha-2` or `alpha-3` number - `addresses`: `array` A map with keys for `fullAddress` - `fullAddress`: `string | null` Address as single string - **`document`: `object` Verified document** - `number`: `string | null` Document number, `[a-zA-Z0-9]` characters only - `type`: `string | null` Document type - `country`: `string | null` Document issuing country, represented as ISO 3166 `alpha-2` code - `validFrom`: `string | null` Document is valid from date, represented as `YYYY-MM-DD`. Optional, must be configured for your integration by the Solutions Engineer - `validUntil`: `string | null` Document is valid until date, represented as `YYYY-MM-DD`. Optional, must be configured for your integration by the Solutions Engineer - `state`: `string | null` Document issuing state, represented as ISO 3166 `alpha-2` or `alpha-3` code - `additionalVerifiedData`: `object` Data that has been optionally verified for the session - `udocs`: `object` Container for the features’ and add-ons’ results - `metadata`: `object` Contains meta info about the document and verification process - `pageCount`: `integer` Indicates how many pages were processed - `extraction`: `object` Returning info about all the data that was extracted - `fullName`: `string` Person’s full name data from document - `fullAddress`: `string` Person’s full address data from document - `bankAccountNumber`: `string` Person’s bank account number from document. Only for Bank account ownership verification use case. - `issueDate`: `string` Document issue date data from document - `expiryDate`: `string` Document expiry date data from document - `documentNumber`: `string` Document number from document, e.g., policy number, certificate number, document reference number - `vehicleIdentificationNumber`: `string` The unique 17-character VIN of the vehicle, as present on document. Only for Vehicle ownership verification and Vehicle insurance policy verification use cases. - `vehicleRegistrationNumber`: `string` Vehicles registration number data, as present on document - `occupation`: `string` Person’s occupation data from document - `income`: `string` Person’s income amount from document - `issuer`: `string` Document issuer name from document - `currency`: `string` Currency as shown on document - `countryOfBirth`: `string` The country where the person was born, as recorded on the birth certificate. Only for [Birth certificate verification](/v1/docs/unstructured-docs#birth-certificate-verification) use case. - `dateOfBirth`: `string` The person's date of birth in ISO 8601 format (`YYYY-MM-DD`), as recorded on the document. Only for Birth certificate verification use case. - `fatherFullName`: `string` The full name of the person's father, as recorded on the birth certificate. Only for Birth certificate verification use case. - `motherFullName`: `string` The full name of the person's mother, as recorded on the birth certificate. Only for Birth certificate verification use case. - `nationality`: `string` The nationality of the person as recorded on the birth certificate. Only for Birth certificate verification use case. - `birthFacility`: `string` The name of the hospital or facility where the person was born, as recorded on the birth certificate. Only for Birth certificate verification use case. - `placeOfBirthAddress`: `string` The city or address of the place of birth, as recorded on the birth certificate. Only for Birth certificate verification use case. - `classification`: `object` Contains data about document’s type, country code, language and issuer - `documentType`: `string` Document types’ grouping, one of `financial`, `government`, `housing`, `insurance`, `legal`, `tax`, `utility`, `other` - `documentSubType`: `string` Document’s type (see possible values in [Supported document types](/v1/docs/supported-document-types#unstructured-documents) section) - `countryCode`: `string` Document’s country, represented as ISO 3166 `alpha-2` - `language`: `string` Document’s language, represented as ISO 3166 `alpha-2` - `issuer`: `string` Document issuing entity - `validations`: `object` - `matchingResults`: `array` Returns info about how initData matched to document data. Available only when the initData matching validation was enabled for your uDocs integration. - `type`: `string` Indicates the initData field that was matched to extracted data - `match`: `boolean` Indicates if match was `true` or `false` - `originalValue`: `string` Echoes the initData value - `extractedValue`: `string` Returns the value extracted form document - `matchThreshold`: `integer` Shows the match threshold set for the specific field - `matchPercentage`: `integer` Returns the match percentage - `documentExpiration`: `object` Returns data about document expiration. Available only if Document Expiration check is enabled for your uDocs integration. - `isIssueDateInRange`: `boolean` Checks if document’s issue date clears the allowed range threshold (days since issue date). Skipped if the document has an expiry date and and expiry date check has been enabled. - `isWithinValidityPeriod`: `boolean` Checks if document’s expiration date clears the range threshold (days before expiration date) - `fraud`: `object` Returns data about document integrity. Available only if Tampering check is enabled for your uDocs integration. - `riskLevel`: `string` Indicates the risk level of the document, possible values `LOW_RISK`, `MEDIUM_RISK`, `HIGH_RISK` . `null` if the check was not executed or failed. - `reason`: `string` Short description indicating the reason behind the risk level. `null` if the check was not executed or failed. - `reasonDescription`: `string` Human readable explanation of the data in the `reason` field. `null` if the check was not executed or failed. - `indicators`: `array` Array strings listing the factors that influenced the risk assessment. Empty if the check was not executed or failed. - `pepSanctionMatch`: `string | null` *Legacy field, may return incorrect result, should be ignored* - `comments`: `array` *(Deprecated) Always returns empty []* - `technicalData`: `object` Technical data object - `ip`: `string | null` IP of the device from which the verification was made ### API call > [!NOTE] > The example below uses **placeholder data** to show all **mandatory parameters and possible uDocs fields**. While mandatory fields are always present, add-on or use case-specific keys are omitted if a feature is disabled or data extraction fails. **Depending on your configuration**, the **payload may contain additional parameters**; for info on fields from other solutions, see the [GET /sessions/{sessionId}/decision](/v1-api/apidocs/v1sessionsiddecision-1) API documentation. #### Sample response The following features have been enabled for the session: Classification, Extraction, InitData Matching, Tampering Check, Document Expiration. ```json {  "status": "success",  "verification": {    "acceptanceTime": "2026-02-04T11:57:36.495752Z",    "submissionTime": "2026-02-04T11:57:43.127728Z",    "decisionTime": "2026-02-04T11:58:15.073712Z",    "code": 9102,    "id": "f3a8b7c2-d4e1-4f92-a8b3-c5d6e7f8a9b0",    "vendorData": null,    "endUserId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",    "status": "declined",    "reason": "Name in initData does not match the document name",    "reasonCode": 541,    "person": {      "firstName": null,      "lastName": null,      "fullName": "JUAN MARTINEZ",      "citizenship": null,      "idNumber": null,      "gender": null,      "dateOfBirth": null,      "yearOfBirth": null,      "placeOfBirth": null,      "nationality": null,      "addresses": [        {          "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100"        }      ],      "pepSanctionMatch": null    },    "document": {      "number": null,      "type": null,      "country": null,      "validFrom": null,      "validUntil": null,      "state": null    },    "comments": [],    "additionalVerifiedData": {},    "udocs": {      "metadata": {        "pageCount": 2      },      "extraction": {        "fullName": "JUAN MARTINEZ",        "fullAddress": "AV INSURGENTES SUR 2847 PISO 3 COL DEL VALLE BENITO JUAREZ CIUDAD DE MEXICO MEXICO CP 03100",        "bankAccountNumber": "84532345",        "issueDate": "2024-05-28",        "expiryDate": "2025-05-28",        "documentNumber": "847293651024738569",        "vehicleIdentificationNumber": "1HGBH41JXMN109186",        "vehicleRegistrationNumber": "ABC-1234",        "occupation": "Driver",        "income": "45000",        "issuer": "Skrill Limited",        "currency": "USD"      },      "classification": {        "documentType": "financial",        "documentSubType": "bank_statement",        "countryCode": "mx",        "language": "es",        "issuer": "skrill_limited"      },      "validations": {        "matchingResults": [          {            "type": "full_name",            "match": true,            "originalValue": "JUAN MARTINEZ",            "extractedValue": "JUAN MARTINEZ",            "matchThreshold": 80,            "matchPercentage": 100          },          {            "type": "occupation",            "match": true,            "originalValue": "Driver",            "extractedValue": "Driver",            "matchThreshold": 80,            "matchPercentage": 100          },          {            "type": "bank_account_number",            "match": true,            "originalValue": "AB123456789012345",            "extractedValue": "AB123456789012345",            "matchThreshold": 100,            "matchPercentage": 100          }        ],        "documentExpiration": {          "isIssueDateInRange": false,          "isWithinValidityPeriod": false        }        },      "fraud": {        "riskLevel": "HIGH_RISK",        "reason": "DIGITAL_MODIFICATION_HIGH_CONFIDENCE",        "reasonDescription": "Document contains traces of digital modification, likely with fraudulent intent",        "indicators": [          "This document's metadata shows a creation time: 2023-03-31T12:04:01+00:00 and a modification time: 2024-05-29T11:30:26+00:00, suggesting the file was updated after it was first created. The time gap between creation and modification is 424 days, 23:26:25."        ]      }    },    "attemptId": "b9c8d7e6-f5a4-4b32-9c8d-7e6f5a4b3c2d"  },  "technicalData": {    "ip": null  } } ``` #### Response properties explained - `status`: `string` Status of the response - `verification`: `object | null` Verification request decision object. `null` if decision is not available yet - `id`: `string` UUID v4 which identifies the verification session - `attemptId`: `string` UUID v4 of the attempt which received a status (as shown in `verification.status` field) - `vendorData`: `string | null` The unique identifier that you created for your end-user. `null` if not specified - `endUserId`: `string | null` The `UUID` that you created for your end-user. `null` if not specified - `status`: `string` Verification status, one of `approved`, `declined`, `expired`, `abandoned` - `code`: `integer` Verification session decision code, one of `9001`, `9102`, `9103`, `9104`. For more info, see the [verification session decision](/v1/docs/verification-session-status-codes-table) codes - `reason`: `string | null` Reason why the verification failed - `reasonCode`: `integer | null` Reason code of the failed verification. For more info, see the [possible codes for a failed verification](https://devdocs.veriff.com/v1/docs/verification-session-decision-codes-table) - `acceptanceTime`: `string` Timestamp of the session generation, represented as `UTC YYYY-MM-DDTHH:MM:SS.SSS+Timezone Offset` (ISO 8601) - `submissionTime`: `string` Timestamp of when the session was submitted, represented as `UTC YYYY-MM-DDTHH:MM:SS.SSSSSS+Timezone Offset` (ISO 8601) - `decisionTime`: `string | null` Timestamp of the decision, represented as `UTC YYYY-MM-DDTHH:MM:SS.SSS+Timezone Offset` (ISO 8601) - **`person`: `object` Data about the verified person** - `firstName`: `string | null` Person's first name as written on the document - `lastName`: `string | null` Person's last name as written on the document - `fullName`: `string | null` Full name of the person - `citizenship`: `null` *Deprecated, always returns null* - `idNumber`: `string | null` National identification number - `gender`: `string | null` Person's gender, represented as M or F, or `null` if not present. If [Birth certificate verification](/v1/docs/unstructured-docs#birth-certificate-verification) has been enabled and gender data extraction is required, the extracted data is presented here - `dateOfBirth`: `string | null` Person's date of birth, represented as `YYYY-MM-DD` - `yearOfBirth`: `string | null` Person's year of birth, represented as `YYYY` - `placeOfBirth`: `string | null` Person's place of birth - `nationality`: `string | null` Person's nationality, represented as ISO 3166 `alpha-2` or `alpha-3` number - `addresses`: `array` A map with keys for `fullAddress` - `fullAddress`: `string | null` Address as single string - **`document`: `object` Verified document** - `number`: `string | null` Document number, `[a-zA-Z0-9]` characters only - `type`: `string | null` Document type - `country`: `string | null` Document issuing country, represented as ISO 3166 `alpha-2` code - `validFrom`: `string | null` Document is valid from date, represented as `YYYY-MM-DD`. Optional, must be configured for your integration by the Solutions Engineer - `validUntil`: `string | null` Document is valid until date, represented as `YYYY-MM-DD`. Optional, must be configured for your integration by the Solutions Engineer - `state`: `string | null` Document issuing state, represented as ISO 3166 `alpha-2` or `alpha-3` code - `additionalVerifiedData`: `object` Data that has been optionally verified for the session - `udocs`: `object` Container for the features’ and add-ons’ results - `metadata`: `object` Contains meta info about the document and verification process - `pageCount`: `integer` Indicates how many pages were processed - `extraction`: `object` Returning info about all the data that was extracted - `fullName`: `string` Person’s full name data from document - `fullAddress`: `string` Person’s full address data from document - `bankAccountNumber`: `string` Person’s bank account number from document. Only for Bank account ownership verification use case. - `issueDate`: `string` Document issue date data from document - `expiryDate`: `string` Document expiry date data from document - `documentNumber`: `string` Document number from document, e.g., policy number, certificate number, document reference number - `vehicleIdentificationNumber`: `string` The unique 17-character VIN of the vehicle, as present on document. Only for Vehicle ownership verification and Vehicle insurance policy verification use cases. - `vehicleRegistrationNumber`: `string` Vehicles registration number data, as present on document - `occupation`: `string` Person’s occupation data from document - `income`: `string` Person’s income amount from document - `issuer`: `string` Document issuer name from document - `currency`: `string` Currency as shown on document - `countryOfBirth`: `string` The country where the person was born, as recorded on the birth certificate. Only for [Birth certificate verification](/v1/docs/unstructured-docs#birth-certificate-verification) use case. - `dateOfBirth`: `string` The person's date of birth in ISO 8601 format (`YYYY-MM-DD`), as recorded on the document. Only for Birth certificate verification use case. - `fatherFullName`: `string` The full name of the person's father, as recorded on the birth certificate. Only for Birth certificate verification use case. - `motherFullName`: `string` The full name of the person's mother, as recorded on the birth certificate. Only for Birth certificate verification use case. - `nationality`: `string` The nationality of the person as recorded on the birth certificate. Only for Birth certificate verification use case. - `birthFacility`: `string` The name of the hospital or facility where the person was born, as recorded on the birth certificate. Only for Birth certificate verification use case. - `placeOfBirthAddress`: `string` The city or address of the place of birth, as recorded on the birth certificate. Only for Birth certificate verification use case. - `classification`: `object` Contains data about document’s type, country code, language and issuer - `documentType`: `string` Document types’ grouping, one of `financial`, `government`, `housing`, `insurance`, `legal`, `tax`, `utility`, `other` - `documentSubType`: `string` Document’s type (see possible values in [Supported document types](/v1/docs/supported-document-types#unstructured-documents) section) - `countryCode`: `string` Document’s country, represented as ISO 3166 `alpha-2` - `language`: `string` Document’s language, represented as ISO 3166 `alpha-2` - `issuer`: `string` Document issuing entity - `validations`: `object` - `matchingResults`: `array` Returns info about how initData matched to document data. Available only when the initData matching validation was enabled for your uDocs integration. - `type`: `string` Indicates the initData field that was matched to extracted data - `match`: `boolean` Indicates if match was `true` or `false` - `originalValue`: `string` Echoes the initData value - `extractedValue`: `string` Returns the value extracted form document - `matchThreshold`: `integer` Shows the match threshold set for the specific field - `matchPercentage`: `integer` Returns the match percentage - `documentExpiration`: `object` Returns data about document expiration. Available only if Document Expiration check is enabled for your uDocs integration. - `isIssueDateInRange`: `boolean` Checks if document’s issue date clears the allowed range threshold (days since issue date). Skipped if the document has an expiry date and and expiry date check has been enabled. - `isWithinValidityPeriod`: `boolean` Checks if document’s expiration date clears the range threshold (days before expiration date) - `fraud`: `object` Returns data about document integrity. Available only if Tampering check is enabled for your uDocs integration. - `riskLevel`: `string` Indicates the risk level of the document, possible values `LOW_RISK`, `MEDIUM_RISK`, `HIGH_RISK` . `null` if the check was not executed or failed. - `reason`: `string` Short description indicating the reason behind the risk level. `null` if the check was not executed or failed. - `reasonDescription`: `string` Human readable explanation of the data in the `reason` field. `null` if the check was not executed or failed. - `indicators`: `array` Array strings listing the factors that influenced the risk assessment. Empty if the check was not executed or failed. - `pepSanctionMatch`: `string | null` *Legacy field, may return incorrect result, should be ignored* - `comments`: `array` *(Deprecated) Always returns empty []* - `technicalData`: `object` Technical data object - `ip`: `string | null` IP of the device from which the verification was made ### Veriff Customer Portal You can find the verification session related info, including the decision, in the Veriff Customer Portal, in the **All Verifications** > *session* > **Webhooks tab**. → *See* [*Review verification in Veriff Customer Portal*](/v1/docs/how-to-review-verification-in-veriff-customer-portal) *about how to view the session info in the Veriff Customer portal* --- ## Status and reason codes For an `approved` session, see: - `verification.code` about verification session decision code, one of `9001` - `verification.status` about verification status, one of `approved` If the Unstructured Docs session was `declined`, you can find additional information by checking: - `verification.reason` for the reason why the verification failed - `verification.reasonCode` for reason code of the failed verification and cross-reference it with [Granular reason codes (table)](https://devdocs.veriff.com/docs/granular-reason-codes) | `verification.status` | `verification.reasonCode` | `verification.reason` | What does it mean? | | --- | --- | --- | --- | | `declined` | 510 | Document type not supported | Document type not in accepted list or classified as "OTHER" | | `declined` | 511 | Document expired / issued too long ago | Document is expired or beyond validity period | | `declined` | 541 | Name on document does not match session data | Extracted name match score is below required threshold | | `declined` | 566 | System processing error | Internal system error or processing timeout | | `declined` | 568 | Invalid Input / Mandatory fields failed | Mandatory fields could not be extracted or initData is missing | | `declined` | 572 | Document number mismatch | Extracted number (e.g. bank account) does not match initData | | `declined` | 628 | Unable to collect issue date | The issue date could not be extracted from the document | | `declined` | 629 | Unable to collect expiry date | The expiry date could not be extracted from the document | The table above aims to list the most common reasons why you may see the `decline` reason for an Unstructured Docs session. However, the session may be declined due to a reason that is not inherently Unstructured Docs verification related (e.g. uploaded document’s quality is low). In that case, to find info about the codes you are seeing, refer to: - [Verification session status codes (table)](https://devdocs.veriff.com/docs/verification-session-status-codes-table) - [Verification session decision codes (table)](https://devdocs.veriff.com/docs/verification-session-decision-codes-table) - [Granular reason codes (table)](https://devdocs.veriff.com/docs/granular-reason-codes) --- ## Additional information ### Best Practices - **Document image quality**: ensure that end-user’s document image is of good quality. This will reduce the possibility of session being `declined` or extraction failures happening. - **Treat** `resubmission_requested` **as non-terminal**: do not map it to a failure/declined in polling or webhook logic. - **Know the resubmission limits**: up to 9 global resubmissions (10 total attempts). After that it is a final decision. - **Error handling**: implement proper error handling for all possible validation results. For processing timeouts (566), implement retry logic with exponential backoff. - **Session declined due to third-party provider issues**: implement proper session handling flow when possibly legitimate end-user’s session is declined due to internal system errors, as indicated by session code 566. - **Webhook security**: secure your webhook endpoint and verify request signatures. - **Ensure** [**backwards-compatible-changes**](https://devdocs.veriff.com/docs/backwards-compatible-changes) for webhooks and API connections --- ## Changelog | Date | Description | | --- | --- | | Oct 20, 2026 | Prerequisites list updated | | Oct 8, 2026 | Proof of Address Verification added to the [use cases table](/v1/docs/unstructured-docs#udocs-use-cases-and-flow-setup-rules) | | Oct 5, 2026 | Info about [SDK support](/v1/docs/unstructured-docs#unstructured-docs-via-sdkwebflow) and [recapture flow](/v1/docs/unstructured-docs#recapture-flow) added, additional mentions in intro section, availability matrix, Response properties explained and Best practices. | | May 6, 2026 | [Birth certificate verification](/v1/docs/unstructured-docs#birth-certificate-verification) use case info added, sample payloads updated with relevant info | | Mar 30, 2026 | `status` parameter added to `addressValidationResult` object | | Mar 25, 2026 | Payload samples updated | | Mar 4, 2026 | Broken link fixed | | Mar 3, 2026 | Formatting of bash examples updated | | Feb 20, 2026 | [Sample payload with Address Matching and Address Validation info](/v1/docs/unstructured-docs#sample-payload-with-address-matching-and-address-validation-info) added | | Feb 19, 2026 | Documentation published | Abbreviation of **Identity Verification**. Abbreviation of "Proof of Address". Veriff customer back-office, a dashboard where you can see your end-users' verification data. Depending on your setup, you may be required to access the environment via station.veriff.com or hub.veriff.com. Always **check your sign-up email** and make sure that you **log in via correct address**. A UUID-format unique identifier ([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}) created by you for your end-user to link an end-user to their session(s). Cannot be resolved outside your environment. Veriff stores it only for identity verification and returns it unchanged in webhooks/API responses or as `null` if not provided. Strongly recommended if you already use UUID identifiers. Works as an alternative to `vendorData` in Biometric Authentication solution. A custom unique identifier (max 1,000 characters) created by you, containing only non-semantic data that can't be resolved outside your systems. Veriff returns it unchanged in webhooks/API responses or as `null` if not provided. It's referred to as "unique identifier" in Customer Portal and cannot be changed once set. Required for Fraud solutions (Cross Links check and Velocity Abuse check) and serves as an alternative to `endUserId` in Biometric Authentication when using non-UUID identifiers. A session during which the end-user is verified. It starts when a session is created, it can contain several attempts (i.e. steps of uploading media, sending additional data etc.) and it ends when a conclusive decision (“approved”, “declined”, “expired”/”abandoned”) is granted. Each verification session receives an unique ID, aka the **session ID**, which can be added to the API URL when making API requests. This where the end-user is directed to go through the verification flow, and it is **unique for each verification session**. It is a combination of the `base URL` and the `sessionToken`, created as soon as a verification session is created. You can find its value in the response payload of your POST /sessions call, as `verification.url`. The data that you send when you make an API request, or that you receive when you get a response. ## Related - [Proof of Address](/proof-of-address-verification.md)