1. Home
  2. APIs
  3. Identity

Driving licence verification API

Check a DL number and date of birth against transport records.

Mode: Instant
Checked against: Parivahan (Sarathi) 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

  1. You send the DL number and date of birth.
  2. We normalise the DL number (spaces, hyphens and the old/new formats) and query transport department records.
  3. The licence holder, status, validity and vehicle classes come back.

Request

FieldDescription
dl_numberLicence number, e.g. UP1620190012345
dobDate 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"}'

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.

FieldTypeMeaning
dl_numberstringNormalised licence number.
namestringHolder name.
statusenumACTIVE, EXPIRED, SUSPENDED or NOT_FOUND.
valid_tillstringNon-transport validity end date.
transport_valid_tillstringCommercial (transport) validity, if endorsed. Needed for cab and truck drivers.
vehicle_classesarrayClasses the holder may drive, e.g. MCWG (motorcycle with gear), LMV (car), LMV-TR (light commercial), HGMV (heavy goods).
rtostringIssuing RTO.
photostringBase64 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.

ValueReturns
UP1620190012345Active, MCWG + LMV
DL0420110149646Expired licence
MH0000000000000Not found

Run these in the playground

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.

Often used with