Passport Back Extraction
Extracts data fields from the back page of an Indian passport. Provide a passport back image as input and the response returns the extracted parameters.
Content-Type: application/json
Headers
| Header | Type | Required | Description |
|---|---|---|---|
key | string | Yes | API key issued for authentication. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
recordId | string | Yes | Unique ID you assign to correlate the request with the response. |
image | string | Yes | Base64 string / data URI of the passport back image. |
Example
POST/pcs/passport/back
curl --location 'https://sandbox/pcs/passport/back' \
--header 'key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"recordId": "1",
"image": "data:image/png;base64,<BASE64_STRING>"
}'200
{
"recordId": "1",
"dataRetrievalStatus": "SUCCESS",
"data": {
"fatherName": "father-name-string",
"motherName": "mother-name-string",
"maritalStatus": false,
"spouseName": "N/A",
"addressLine1": "address-1",
"addressLine2": "address-2",
"addressLine3": "address-3",
"pinCode": "123456",
"previousPassport": "N/A",
"fileNo": "file-details"
},
"utc_time_stamp": "25/06/2024, 07:45:32"
}Response
| Field | Type | Description |
|---|---|---|
recordId | string | Echoes the recordId sent in the request. |
dataRetrievalStatus | string | SUCCESS when data was extracted. |
data.fatherName | string | Father's name. |
data.motherName | string | Mother's name. |
data.maritalStatus | boolean | true if the holder is married. |
data.spouseName | string | Spouse's name, or N/A. |
data.addressLine1 / addressLine2 / addressLine3 | string | Address lines. |
data.pinCode | string | Postal code. |
data.previousPassport | string | Previous passport reference, or N/A. |
data.fileNo | string | Passport file number. |
utc_time_stamp | string | UTC timestamp of the response, DD/MM/YYYY, HH:mm:ss. |
Error handling
200 on success, 422 on a validation error — see
Error handling for the common error shape.