Passport fetch
curl --request POST \
--url https://api.privue.ai/passport/v1/fetch.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_number": "<string>",
"date_of_birth": "2023-12-25"
}
'import requests
url = "https://api.privue.ai/passport/v1/fetch.1"
payload = {
"file_number": "<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>', date_of_birth: '2023-12-25'})
};
fetch('https://api.privue.ai/passport/v1/fetch.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reasons": [],
"details": {
"file_number": "KA1061234567812",
"name": "ASHA RAO",
"given_name": "ASHA",
"surname": "RAO",
"date_of_birth": "1990-03-12",
"application_type": "NORMAL",
"received_on": "2024-01-18"
}
}Checks
Passport fetch
Read the passport application filed under a file number, found with its applicant’s date of birth.
POST
/
passport
/
v1
/
fetch.1
Passport fetch
curl --request POST \
--url https://api.privue.ai/passport/v1/fetch.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_number": "<string>",
"date_of_birth": "2023-12-25"
}
'import requests
url = "https://api.privue.ai/passport/v1/fetch.1"
payload = {
"file_number": "<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>', date_of_birth: '2023-12-25'})
};
fetch('https://api.privue.ai/passport/v1/fetch.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reasons": [],
"details": {
"file_number": "KA1061234567812",
"name": "ASHA RAO",
"given_name": "ASHA",
"surname": "RAO",
"date_of_birth": "1990-03-12",
"application_type": "NORMAL",
"received_on": "2024-01-18"
}
}Authorizations
Your API key, sent as Authorization: Bearer <your-key>.
Body
application/json
The passport application to read, by its file number and the applicant's date of birth.
Response
Successful Response
The passport application the registry holds under a file number; details is null when it holds none.
The registry holding no application is a finding about today: the same request made later asks the registry again, and can find one.
