curl --request POST \
--url https://api.privue.ai/driving-licence/v1/verify.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"number": "<string>",
"date_of_birth": "2023-12-25",
"issue_date": "2023-12-25"
}
'import requests
url = "https://api.privue.ai/driving-licence/v1/verify.1"
payload = {
"number": "<string>",
"date_of_birth": "2023-12-25",
"issue_date": "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({number: '<string>', date_of_birth: '2023-12-25', issue_date: '2023-12-25'})
};
fetch('https://api.privue.ai/driving-licence/v1/verify.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Driving licence verification
Verify a driving licence and the date of birth claimed for it against the driving licence registry.
curl --request POST \
--url https://api.privue.ai/driving-licence/v1/verify.1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"number": "<string>",
"date_of_birth": "2023-12-25",
"issue_date": "2023-12-25"
}
'import requests
url = "https://api.privue.ai/driving-licence/v1/verify.1"
payload = {
"number": "<string>",
"date_of_birth": "2023-12-25",
"issue_date": "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({number: '<string>', date_of_birth: '2023-12-25', issue_date: '2023-12-25'})
};
fetch('https://api.privue.ai/driving-licence/v1/verify.1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Your API key, sent as Authorization: Bearer <your-key>.
Body
The driving licence to verify, and the holder details to hold it to.
Driving licence number in letters and digits alone, without spaces or hyphens, like MH1420110062821
^[A-Z]{2}[A-Z0-9]{8,18}$The holder's date of birth. It cannot be after today
The date the licence was issued. Where given, it is verified as well. It cannot be after today, or before the date of birth
Response
Successful Response
What the registry holds for a driving licence, and whether the claimed details matched.
details is null when the registry holds no licence under the number.
A licence the registry holds whose details matched but that has passed its expiry date answers driving-licence-expired, with the licence alongside.
