> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Document Verification: ID and Passport Checks

> Verify IDs, passports, and driver's licenses. OCR, tamper checks, and fraud signals so you know the document is real.

Document Verification enables businesses to confirm the authenticity of physical identity documents submitted by users, such as national IDs, passports, or driver’s licenses. This is achieved by analyzing uploaded images and extracting key information.

The system uses a combination of image analysis, document template matching, optical character recognition (OCR), and fraud signals to determine whether the document is valid, tampered with, or incorrectly submitted.

This service is built to support onboarding, KYC, and risk checks across sectors such as fintech, lending, crypto, insurance, and mobility.

### How it Works

The document verification process typically follows these steps:

<Steps>
  <Step title="Image Upload">
    The user uploads a photo or scanned image of their document, usually the front, and optionally the back side. Images can be uploaded via API, SDK, or manually through the dashboard.
  </Step>

  <Step title="Preprocessing and Image Quality Check">
    The system performs checks for:

    * Blurriness
    * Glare or poor lighting
    * Incomplete edges or cropped content
    * Incorrect document orientation or rotation
    * Document legibility

    If the image fails basic quality rules, the system returns a failed response with details for retry.
  </Step>

  <Step title=" Template Matching">
    The system determines the document type and matches it against our library of over **11,000+ document templates** across **200+ countries**. This helps identify if the document structure aligns with expected formats.
    You can view documents [here](https://dojah.io/global).
  </Step>

  <Step title=" OCR and Data Extraction">
    Key data fields are extracted from the document using OCR. This includes:

    * Full name
    * Date of birth
    * Document number
    * Issuance and expiry dates
    * Nationality or issuing country
    * MRZ (for passports), amongst others.
  </Step>

  <Step title=" Authenticity and Fraud Check">
    We evaluate the document for signs of forgery or manipulation. This includes:

    * Font inconsistencies
    * Layer tampering
    * Resized or resubmitted document images
    * Edited MRZ or altered expiry dates

    If enabled, you can also run additional checks like:

    * **Face match** with a selfie
    * **Cross-checks** with government lookup sources
  </Step>
</Steps>

### How to Run a Document Analysis

You can implement Document Verification in three ways:

<Columns cols={2}>
  <Card title="API Lookup" icon="plug" href="/docs/document-analysis/document-analysis" arrow="true">
    Send a POST request with the document image and metadata. Receive structured output with extracted fields, fraud risk signals, and image quality score.
  </Card>

  <Card title="SDK/Libraries" icon="cubes" href="/sdks/overviews" arrow="true">
    Use our SDK to build the full document capture and verification flow into your product. This Includes auto-capture with camera guidance,
    real-time feedback on image quality, and optional selfie capture for face match
  </Card>
</Columns>

<Card title=" Manual Lookup via Dashboard" icon="desktop" href="/dashboard-guide/verify/individual/document-analysis" arrow="true">
  Need something quick? The dashboard lets you run one-off identity checks without writing a single line of code. Just upload and verify documents manually through the Dojah dashboard.
</Card>

### Supported documents

We support government-issued identity documents from over 200+ countries, including:

* National ID cards

* Passports

* Driver’s licenses

* Voter cards

* Residence permits

* Work authorization cards, etc

<Note> Each document type is validated against its unique structure and layout, including MRZ where applicable.
[See full list of supported documents](https://dojah.io/global). </Note>
