Home / Documents / Driving licence

KYC

Driving licence OCR API

Read state driving licences in any common format. The DL number is split into state, RTO and year of issue, and an expired licence is flagged.

Fields returned

FieldWhat it is
dl_numbere.g. TN01 20190001234, with state and RTO
name, relative_nameHolder and S/D/W of
dobDate of birth
issue_date, valid_tillIssue and validity dates
vehicle_classesMCWG, LMV and others
address, pincode, blood_groupWhere printed

Every field comes with a confidence score from 0 to 1.

Checks

  • State code, RTO and issue year are valid
  • Licence has not expired
  • Holder was at least 16 at issue

If a required field is missing, unsure, or a check fails, the response hasneeds_review: true and a warning explaining why.

Used for

  • Two-wheeler and car loans
  • Identity proof

Request

Send a JPEG, PNG, WebP, TIFF, BMP or PDF up to 10 MB. Leave out document_type to detect it automatically.

curl https://api.lendocr.com/v1/documents:extract \
  -H "Authorization: Bearer lo_test_..." \
  -F file=@document.jpg \
  -F document_type=driving_licence

Authentication, errors, batch uploads and webhooks →

Questions about the driving licence API

Does it check if the driving licence has expired?

Yes. The non-transport validity date is compared with today and an expired licence is flagged for review.

Can I send a phone photo of a driving licence?

Yes. Send a JPEG, PNG, WebP, TIFF, BMP or PDF up to 10 MB. Tilted and low-resolution photos are handled; if an image is too unclear, the response is flagged for review and says why.

Do you store the driving licence after reading it?

No. On the extract API the document is processed in memory and dropped. For background jobs it is kept encrypted only until processed, and results are erased after 24 hours.