Driving licence verification API
Check a DL number and date of birth against transport records.
Overview
Confirms the licence exists, who holds it, which vehicle classes it covers and when it expires. Useful when the job involves driving, not just as photo ID.
POST/v1/verify/driving-licence
Where it’s used
- Driver and rider onboarding
- Vehicle rental and car sharing
- Logistics fleet hiring
How the check runs
- You send the DL number and date of birth.
- We normalise the DL number (spaces, hyphens and the old/new formats) and query transport department records.
- The licence holder, status, validity and vehicle classes come back.
Request
| Field | Description |
|---|---|
dl_number | Licence number, e.g. UP1620190012345 |
dob | Date of birth, DD-MM-YYYY |
consent | "Y" once your user has agreed to the check. Required for any check on a person. |
curl -X POST https://api.yetlix.com/v1/verify/driving-licence \
-H "x-client-id: $YETLIX_CLIENT_ID" \
-H "x-client-secret: $YETLIX_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"dl_number":"UP1620190012345","dob":"02-03-1990","consent":"Y"}'
{
"status": "success",
"request_id": "req_7Hq2kD91",
"data": {
"dl_number": "UP1620190012345",
"name": "AMIT YADAV",
"status": "ACTIVE",
"valid_till": "01-03-2040",
"rto": "Noida",
"vehicle_classes": [
"MCWG",
"LMV"
]
}
}
Response fields
Inside the data object. The envelope (status, request_id, billable, timestamp) is the same for every API and is described in the docs.
| Field | Type | Meaning |
|---|---|---|
dl_number | string | Normalised licence number. |
name | string | Holder name. |
status | enum | ACTIVE, EXPIRED, SUSPENDED or NOT_FOUND. |
valid_till | string | Non-transport validity end date. |
transport_valid_till | string | Commercial (transport) validity, if endorsed. Needed for cab and truck drivers. |
vehicle_classes | array | Classes the holder may drive, e.g. MCWG (motorcycle with gear), LMV (car), LMV-TR (light commercial), HGMV (heavy goods). |
rto | string | Issuing RTO. |
photo | string | Base64 photo, where the source provides it. |
Outcomes and what to do
Every check can end in a handful of ways. Decide up front what your product does in each case, so nothing falls through to a support ticket.
ACTIVE with the right class
Licensed to drive what you need.
Do this: Approve.
ACTIVE, wrong class
e.g. only MCWG but you need LMV-TR.
Do this: Reject for that role, or route to a different vehicle category.
EXPIRED
Validity date has passed.
Do this: Ask for renewal proof; re-check after renewal.
NOT_FOUND
No record for that DL + DOB.
Do this: Check DOB first; many failures are DOB typos.
Sandbox test values
Send these values in dl_number with your sandbox key to get each result. Anything else returns INVALID_INPUT in sandbox.
| Value | Returns |
|---|---|
UP1620190012345 | Active, MCWG + LMV |
DL0420110149646 | Expired licence |
MH0000000000000 | Not found |
Best practices
- For commercial drivers, check transport_valid_till, not just valid_till.
- Re-verify every 6–12 months for active drivers; licences get suspended after onboarding.
- Combine with Face match against the DL photo to make sure the driver is the licence holder.
Compliance note. A driving licence is an officially valid document for KYC. For mobility platforms, state aggregator rules often require licence and background checks before a driver goes live.
Frequently asked
Which DL formats are supported?
Both the old state formats and the current 15/16-character format. Send it as printed; we normalise it.
Why do I need the date of birth?
Transport records are looked up with DL number and DOB together. It also prevents casual look-ups of other people’s licences.