Passport Verification API
Send the passport application file number and DOB. We confirm the record exists and return the name, passport number, application type and current status.
- Source
- Passport Seva records, Ministry of External Affairs
- Turnaround
- Real time, usually a few seconds
- Endpoint
- POST /v1/passport/verify
- Who can use it
- Any business with the holder's consent and a KYC or employment purpose.
Overview
Passports are strong ID but easy to fake as a photocopy. This check confirms the application behind the passport exists in Passport Seva and that the name matches. Ask for the file number, printed on the last page of newer passports.
Good to know
It works on the file number, not the passport number alone. Passports issued before online records, or abroad by missions, may not return a result.
What you get
- File number lookupThe file number ties the passport to its original application, which a forged copy can't fake.
- Passport number cross-checkSend the passport number from the document and we confirm it matches the record.
- Application statusShows if the passport was actually dispatched, or if the application is still pending or on hold.
- Works for NRIs in IndiaUseful for NRI customers with passports issued in India who are opening accounts here.
Request
POST https://api.ampletrails.com/v1/passport/verify
| Field | Type | Status | Description |
|---|---|---|---|
file_number | string | Required | Passport application file number |
dob | string | Required | Holder's date of birth (YYYY-MM-DD) |
passport_number | string | Optional | Passport number, to cross-check |
consent | string | Required | Y if the user has given explicit consent |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
record_found | Whether a matching passport record was found | true |
full_name | Name as per passport records | Ravi Kumar |
passport_number | Passport number on record | Z1234567 |
application_type | Application type, for example Fresh or Reissue | Fresh |
date_of_application | Date the application was received | 2018-06-20 |
status | Status of the passport application | Passport Dispatched |
Example
curl -X POST https://api.ampletrails.com/v1/passport/verify \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"file_number": "DL1061234567890", "dob": "1990-04-12", "passport_number": "Z1234567", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/passport/verify",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"file_number": "DL1061234567890",
"dob": "1990-04-12",
"passport_number": "Z1234567",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/passport/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"file_number": "DL1061234567890",
"dob": "1990-04-12",
"passport_number": "Z1234567",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/passport/verify");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["file_number" => "DL1061234567890", "dob" => "1990-04-12", "passport_number" => "Z1234567", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"record_found": true,
"full_name": "Ravi Kumar",
"passport_number": "Z1234567",
"application_type": "Fresh",
"date_of_application": "2018-06-20",
"status": "Passport Dispatched"
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Overseas hiring
Recruitment agencies confirm passports before processing visas.
Premium accounts
Wealth and forex businesses use passports as primary ID for high-value customers.
Travel and forex
Forex cards and outward remittances often rely on passport details.
Questions about this API
Where does the user find the file number?
On newer passports it is printed on the last page. It is also in the Passport Seva acknowledgement receipt.
What if they only have the passport number?
The source needs the file number. Use Global ID Verification or OCR on the data page to read and check the MRZ instead.
Does a 'Dispatched' status mean the passport is valid today?
It means it was issued and sent. Check the expiry date on the document itself as well.
Can I verify foreign passports?
Not with this API. Use Global ID Verification for passports issued by other countries.
Try the Passport Verification API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.