# 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 from Our Catalog (recommended)

* Select "Passport" on our document models.
* The AI will give you a list of fields you can choose from. Select the fields you need and create your first model.
* Option : if you want to refine your model, go to "Data Schema" and ask for additional fields.
* Now that your model is ready, you can try a live test.

### 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="https://4029869281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu5bStlX8nv4b9z4GXB2S%2Fuploads%2Fgit-blob-40c7bd315b4dcc3d61c81467a19296c5185a182f%2Findian-passport-sample.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://4029869281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu5bStlX8nv4b9z4GXB2S%2Fuploads%2Fgit-blob-24ea6278eedc3458ae2c2d415e024c2242aa7cff%2Fmindee-indian-passport.png?alt=media" 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>
