Passport verification
curl --request POST \
--url https://api.privue.ai/passport/v1/verify.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_number": "<string>",
"name": "<string>",
"date_of_birth": "2023-12-25"
}
'import requests
url = "https://api.privue.ai/passport/v1/verify.1"
payload = {
"file_number": "<string>",
"name": "<string>",
"date_of_birth": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_number: '<string>', name: '<string>', date_of_birth: '2023-12-25'})
};
fetch('https://api.privue.ai/passport/v1/verify.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reasons": [],
"details": {
"file_number": "KA1061234567812",
"name_match": true,
"registered_name": "ASHA RAO"
}
}
Checks
Passport verification
Verify a passport application and the name claimed for it against the passport registry.
POST
/
passport
/
v1
/
verify.1
Passport verification
curl --request POST \
--url https://api.privue.ai/passport/v1/verify.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_number": "<string>",
"name": "<string>",
"date_of_birth": "2023-12-25"
}
'import requests
url = "https://api.privue.ai/passport/v1/verify.1"
payload = {
"file_number": "<string>",
"name": "<string>",
"date_of_birth": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_number: '<string>', name: '<string>', date_of_birth: '2023-12-25'})
};
fetch('https://api.privue.ai/passport/v1/verify.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reasons": [],
"details": {
"file_number": "KA1061234567812",
"name_match": true,
"registered_name": "ASHA RAO"
}
}
Authorizations
Your API key, sent as Authorization: Bearer <your-key>.
Body
application/json
The passport application to verify, and the name to hold it to.
File number of the passport application, in letters and digits alone, as printed on its receipt, like KA1061234567812
Pattern:
^[A-Z]{2}[A-Z0-9]{8,18}$The applicant's full name
Required string length:
2 - 200The applicant's date of birth. It cannot be after today
Response
Successful Response
The name the registry holds for a passport application, and whether the claimed one matched.
details is null when the registry holds no application under the file number and date of birth. That is a finding about today: the same request made later asks the registry again, and can find one.
