IndiaPassport

Passport OCR — Extract Passport Details

Upload an Indian passport image and extract passport number, name, DOB, issue/expiry date, and MRZ data automatically.

curl -X POST "https://production.deepvue.tech/v1/documents/extraction/ind_passport" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "document1": "example_string",
  "document2": "example_string",
  "name": "John Doe"
}'
{
  "code": 200,
  "transaction_id": "0ff82adf-a9d6-4495-88f7-aabeea78ddb3",
  "message": "Document processed successfuly",
  "data": {
    "address": "B - XXX / Y STREET NO.X XXXXXX , DELHI PIN : 1100XX, DELHI, INDIA",
    "date_of_birth": "1994-01-19",
    "date_of_expiry": "20XX-XX-28",
    "date_of_issue": "20XX-XX-29",
    "district": "DELHI",
    "fathers_name": "KANDPAL",
    "file_number": "DL1069718453416",
    "first_name": "CHANDRA SHEKHAR",
    "gender": "MALE",
    "id_number": "NXXXXXXX",
    "is_scanned": false,
    "last_name": "KANDPAL",
    "mothers_name": "INDIRA KANDPAL",
    "name_of_spouse": null,
    "name_on_card": "CHANDRA SHEKHAR KANDPAL",
    "nationality": "INDIAN",
    "pincode": "1100XX",
    "place_of_birth": ", DELHI",
    "place_of_issue": "DELHI",
    "state": "Delhi"
  }
}
POST
/v1/documents/extraction/ind_passport
POST
Bearer Token (JWT)
Bearer Tokenstring
Required

ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .

ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .
API Key (header: x-api-key)
x-api-keystring
Required

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
Content-Typestring
Required

The media type of the request body

Options: application/json
document1string
Required

The main document being submitted for extraction of respective information.

document2string

The secondary document being submitted along with the primary document for extraction of respective information.

namestring

The name of the document being submitted for extraction of respective information.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .

header
x-api-keystring
Required

API Key for authentication. The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

Body

application/json
document1string
Required

The main document being submitted for extraction of respective information.

document2string

The secondary document being submitted along with the primary document for extraction of respective information.

namestring

The name of the document being submitted for extraction of respective information.

Responses

codeinteger
transaction_idstring
messagestring
dataobject

Overview

The Passport OCR API helps you extract details from an image of an Indian passport document in real-time. It extracts relevant fields like id_number, name, guardian_name, dob, address, and more from the image of a Passport document in the form of key-value pairs.

The API accepts either a base64-encoded string or a publicly accessible URL of the document. Upon successful processing, the API returns personal identifiers (name, first/last name, spouse name), identity numbers (passport number, file number), biographical data (date of birth, gender, nationality), family information (father's name, mother's name), location details (address, district, state, pincode, place of birth, place of issue), and document metadata (issue date, expiry date).