Fields returned
| Field | What it is |
|---|---|
dl_number | e.g. TN01 20190001234, with state and RTO |
name, relative_name | Holder and S/D/W of |
dob | Date of birth |
issue_date, valid_till | Issue and validity dates |
vehicle_classes | MCWG, LMV and others |
address, pincode, blood_group | Where 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_licenceQuestions 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.