# Passport

Take a look at our demo for the Indian Passport model:

{% @supademo/embed url="<https://app.supademo.com/demo/cmeqvjfgw3holv9kqocym86w9>" demoId="cmeqvjfgw3holv9kqocym86w9" %}

## Why Use Mindee for Passports?

Passports vary in format depending on the country, language, and issuance authority. Mindee simplifies extraction by letting you:

* Describe which fields matter to you
* Upload sample documents to refine extraction
* Get structured outputs without training models yourself

## Two Ways to Start Building your Passport Model

### 1. Choose "Passport" in the Catalog (Recommended)

* Click on "Create your document AI model" in your dashboard, then select **"Passport".**
* The Passport model template comes pre-configured with standard [#passport-fields](#passport-fields "mention").
* Once your Invoice model is created, you can immediately [test](/models/live-test.md) with your own invoices.
* Optionally, you can adjust the model's [Data Schema](/extraction-models/data-schema.md) if you need to modify fields.

### 2. Build a Passport Model from Scratch

* Ask the specifications directly to the AI assistant (e.g. "*I want a model that extracts the following fields from passports: surname, date of birth and MRZ*").
* Additionally, you can upload a sample passport if needed for clarification.
* Mindee builds you a tailored parser in seconds.

If you want to try and do a live test, here is a sample for Indian passport:

<figure><img src="/files/z0j9yKFayrEOe9h3Nn3z" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/zQOqlsoenyup9DQsGO8b" alt="" width="563"><figcaption></figcaption></figure>

### Indian Passport Example

Indian passports include additional region-specific fields. If you're processing Indian passports, our technology is also able to extract, for example, those fields:

| Field                       | Description                                  |
| --------------------------- | -------------------------------------------- |
| Name of Legal Guardian      | Often the father’s name or guardian’s name   |
| Name of Spouse              | Appears if applicable                        |
| Name of Mother              | Optional field                               |
| Old Passport Number         | Prior document if applicable                 |
| Old Passport Date of Issue  | Issue date of prior passport                 |
| Old Passport Place of Issue | Location where the prior passport was issued |
| File Number                 | Government-issued file reference             |
| Address Line 1–3            | Full residential address                     |

{% hint style="info" %}
You can just upload an Indian passport and ask to extract the fields present.
{% endhint %}

## Document Format

* We support both **single-page and multi-page PDFs/images of passports.**
* You can add the fields of any page in the data schema as they are all supported by Mindee.

## Passport Fields

Documentation for all fields present in the data schema.

Field *accessors* are used as the keys for accessing the values in the returned data. On the data schema interface, this is the "Field Name".

Field *value types* indicate how the value is returned by the API. On the data schema interface, this is the "Field Type".

<details>

<summary>Given Names</summary>

The given names (first names) of the passport holder.

Accessor: `given_names`\
Value Type: `string`

Has a single value.

</details>

<details>

<summary>Surnames</summary>

The surnames (last names) of the passport holder.

Accessor: `surnames`\
Value Type: `string`

Has a single value.

</details>

<details>

<summary>Date of Birth</summary>

The date of birth of the passport holder.

Accessor: `date_of_birth`\
Value Type: `date`

Has a single value.

</details>

<details>

<summary>Place of Birth</summary>

The place of birth of the passport holder.

Accessor: `place_of_birth`\
Value Type: `string`

Has a single value.

</details>

<details>

<summary>Passport Number</summary>

The passport number.

Accessor: `passport_number`\
Value Type: `string`

Has a single value.

</details>

<details>

<summary>Issuing Country</summary>

The country that issued the passport.

Accessor: `issuing_country`\
Value Type: `string`

Has a single value.

</details>

<details>

<summary>Nationality</summary>

The nationality of the passport holder.

Accessor: `nationality`\
Value Type: `string`

Has a single value.

</details>

<details>

<summary>Date of Issue</summary>

The date the passport was issued.

Accessor: `date_of_issue`\
Value Type: `date`

Has a single value.

</details>

<details>

<summary>Date of Expiry</summary>

The date the passport expires.

Accessor: `date_of_expiry`\
Value Type: `date`

Has a single value.

</details>

<details>

<summary>Sex</summary>

The sex of the passport holder.

Accessor: `sex`\
Possible Values: `Male`, `Female`, `Other`

Has a single value.

</details>

<details>

<summary>MRZ Line 1</summary>

The first line of the Machine Readable Zone (MRZ).

Accessor: `mrz_line_1`\
Value Type: `string`

Has a single value.

</details>

<details>

<summary>MRZ Line 2</summary>

The second line of the Machine Readable Zone (MRZ).

Accessor: `mrz_line_2`\
Value Type: `string`

Has a single value.

</details>


---

# 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.mindee.com/use-cases/extraction-models/passport.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.
