Driving Licence Verification API
Send the DL number and the holder's date of birth. We return the licence status, holder and relative name, validity dates for non-transport and transport, authorised vehicle classes and issuing RTO.
- Source
- Sarathi driving licence records (Ministry of Road Transport and Highways)
- Turnaround
- Real time, usually a few seconds
- Endpoint
- POST /v1/driving-licence/verify
- Who can use it
- Any business with the holder's consent, most often mobility, logistics, insurance and staffing companies.
Overview
If someone is going to drive for you, you need to know their licence is valid today and covers the vehicle. This check reads the national Sarathi record and gives you the classes and expiry dates, including the separate transport validity commercial drivers need.
Good to know
Very old licences issued before digitisation may not be in Sarathi until the holder gets them backlogged at their RTO. The record has no photo we can share.
What you get
- Transport vs non-transportCommercial vehicles need a transport endorsement with its own, shorter validity. We return both dates.
- Vehicle classesLMV, MCWG, HGMV and so on, so you know the licence covers the vehicle you're assigning.
- Re-check on scheduleRun it again before the expiry date we return to catch lapsed licences in your fleet.
- DOB as the keyThe date of birth requirement stops people from checking licences they don't own.
Request
POST https://api.ampletrails.com/v1/driving-licence/verify
| Field | Type | Status | Description |
|---|---|---|---|
id_number | string | Required | Driving licence number |
dob | string | Required | Holder's date of birth (YYYY-MM-DD) |
consent | string | Required | Y if the user has given explicit consent |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
dl_status | Licence status: ACTIVE, EXPIRED or SUSPENDED | ACTIVE |
full_name | Holder's name | Ravi Kumar |
relative_name | Father's or husband's name | Suresh Kumar |
valid_from_nt | Non-transport validity start date | 2019-03-10 |
valid_to_nt | Non-transport validity end date | 2039-04-11 |
valid_to_tr | Transport validity end date, if applicable | null |
vehicle_classes | Authorised vehicle classes | ["MCWG", "LMV"] |
issuing_rto | RTO that issued the licence | RTO Gurugram |
state | State of issue | Haryana |
Example
curl -X POST https://api.ampletrails.com/v1/driving-licence/verify \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id_number": "HR2620190012345", "dob": "1990-04-12", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/driving-licence/verify",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"id_number": "HR2620190012345",
"dob": "1990-04-12",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/driving-licence/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"id_number": "HR2620190012345",
"dob": "1990-04-12",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/driving-licence/verify");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["id_number" => "HR2620190012345", "dob" => "1990-04-12", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"dl_status": "ACTIVE",
"full_name": "Ravi Kumar",
"relative_name": "Suresh Kumar",
"valid_from_nt": "2019-03-10",
"valid_to_nt": "2039-04-11",
"valid_to_tr": null,
"vehicle_classes": [
"MCWG",
"LMV"
],
"issuing_rto": "RTO Gurugram",
"state": "Haryana"
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Ride-hailing and delivery
Confirm every driver and rider before activation, and again at renewal.
Motor insurance claims
Check the driver held a valid licence for that vehicle class on the date of the accident.
Car rentals
Self-drive rental companies check the licence at booking, not just at handover.
Questions about this API
What format should the DL number be in?
State code, RTO code, year and serial, for example HR26 2019 0012345. We accept it with or without spaces and hyphens.
Why does a valid-looking licence return 'not found'?
Usually it is an old paper licence that was never added to Sarathi, or the DOB doesn't match. Ask the holder to check on the Parivahan site or visit their RTO.
Does it show challans or penalties?
No. This is the licence record only.
Can I check a licence issued outside India?
No. For foreign or international driving permits, use Global ID Verification on the document image.
Try the Driving Licence Verification API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.