# Document Check

This step enables users to upload and verify identity documents as part of the verification process. It ensures that only valid and compliant documents are accepted, providing a secure and efficient method for identity verification.

* Add `Document Check` step into the flow canvas at the appropriate position in the flow.
* Click on `Document Check` to open its configuration options:

<table data-header-hidden><thead><tr><th width="272"></th><th></th></tr></thead><tbody><tr><td><strong>Country Restrictions</strong></td><td>Define permitted or excluded countries for document submission.</td></tr><tr><td><strong>Document Type Restrictions</strong></td><td>Specify which types of documents are permitted or excluded.</td></tr><tr><td><strong>Ways to Capture Documents</strong></td><td><strong>Gallery Upload:</strong> Allow users to upload documents from their device gallery.</td></tr><tr><td></td><td><strong>Device Camera:</strong> Enable users to capture documents using their device camera.</td></tr><tr><td></td><td><strong>Autocapture:</strong> Identifies documents within the camera frame automatically.</td></tr><tr><td><strong>Device</strong></td><td>Allow users to make photos or upload documents from mobile and/or desktop devices. </td></tr><tr><td><strong>Age Restrictions</strong></td><td>An option to set the minimum age for verification. <br>The default age is set to 18, but you can customize this by entering a different value depending on your organization’s requirements.</td></tr><tr><td><strong>Expiry Date Adjustment</strong></td><td>Shift the document’s expiry date forward or backward by a specified number of months.</td></tr><tr><td><strong>Image Quality Focus Check</strong></td><td>Enable or disable focus checks for image quality validation.</td></tr><tr><td><strong>Image Glare Check</strong></td><td>Enable or disable glare checks for image quality validation.</td></tr><tr><td><strong>Color Check</strong></td><td>Enable or disable color checks for image quality validation.</td></tr><tr><td><strong>Document Position Validation</strong></td><td>Define the minimum indent from the document corners to the image borders as a percentage of the document width. If the indent is smaller than specified, an error will be indicated in the documentPosition field.</td></tr><tr><td><strong>Style Customization</strong></td><td>Customize the user interface to match your branding.</td></tr><tr><td><strong>Verification Validity Period</strong></td><td>This setting defines how long a successful verification result remains valid. Enforce re-verification after a defined time window for security or compliance needs.</td></tr></tbody></table>

<figure><img src="/files/jvA9NrWZ6y345Jsf7RzL" alt=""><figcaption></figcaption></figure>

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.allpass.ai/build-verification-flows/verification-steps/document-check.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
