StampMitraDevelopers
LiveVerification API

Verify Passport

Verify a Passport in real time.

Pricing, how it works and related APIs: Passport product page. Integrate with AI: copy the ready-made prompt. Markdown version: passport.md.

Endpoint

POST /v1/verify/passport

POST/v1/verify/passportScope verification.passport.read₹9 per successful callLive

Validates and verifies a Passport. Requires the verification.passport.read scope on the API key. Metered as passport.verify after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by /v1/verify/passport, including its referenceId field.

Request

Request parameters

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
fileNumberrequiredstringPassport application file number, format PA1079341954215. Not the passport number.
dobrequiredstringDate of birth (YYYY-MM-DD).
namestringName to match against records.
Example

Make the call

curl -X POST "https://api-b2b.stampmitra.in/v1/verify/passport" \
  -H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"fileNumber":"PA1079341954215","dob":"1998-12-31","name":"John doe"}'
Playground

Try it

Response

Response example

ResponseJSON
{
  "referenceId": "SMV-20260927-4W19X6",
  "verificationId": "VRF-6N2R8D4YTH3K",
  "valid": true,
  "status": "VALID",
  "fileNumber": "PA1079341954215",
  "name": "John doe",
  "dob": "1998-12-31",
  "applicationType": "NORMAL",
  "applicationReceivedDate": "2003-12-31"
}
Response fields
FieldTypeDescription
referenceIdstringStampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result.
verificationIdstringStampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests.
validbooleanWhether the passport application file number is valid. Always present.
statusstringOutcome of the lookup: VALID or INVALID.
fileNumberstringThe passport application file number that was looked up. This is the application file number, not the passport number.
namestringThe applicant's name as held on the application, when valid.
dobstringThe applicant's date of birth, ISO yyyy-mm-dd, when valid.
applicationTypestringThe type of passport application (for example NORMAL), when valid.
applicationReceivedDatestringDate the application was received, ISO yyyy-mm-dd, when valid.
Errors

Error responses

401Missing or invalid API key
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Missing or invalid API key.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
403Valid key, missing required scope
{
  "error": {
    "code": "FORBIDDEN",
    "message": "API key is valid but lacks the required scope for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
400Validation error
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "fileNumber must match the format PA1079341954215",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
402Insufficient wallet balance
{
  "error": {
    "code": "PAYMENT_REQUIRED",
    "message": "Insufficient fulfilment wallet balance to cover this call.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
429Rate limited
{
  "error": {
    "code": "TOO_MANY_REQUESTS",
    "message": "Rate limit exceeded: 60 requests per 60 seconds for this endpoint.",
    "requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
  }
}
502Upstream verification service unreachable
{
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Unable to reach the order/customer service right now",
    "requestId": "5c1c1e9e-2f7b-4b7a-9b0e-0f1a2b3c4d5e"
  }
}
Notes

Good to know

Note

Input format is validated up front - a malformed pan/gstin/etc. fails fast with a 400 rather than being submitted for verification. referenceId (format SMV-YYYYMMDD-XXXXXXX) is StampMitra's own transaction id for this call and is always present, including on a negative (valid: false / found: false) result - both positive and negative determinations are completed, billable verifications. This is not an idempotency key. verificationId (format VRF-XXXXXXXXXXXX) is StampMitra's own id for this verification, generated for every call; quote it in support requests. Every field except referenceId, verificationId and valid is optional and is omitted when the passport office does not provide it. Dates are ISO yyyy-mm-dd strings. fileNumber is the application file number, not the passport number. The applicant's personal details are masked in your call records; the response itself carries them in full.