Driver license verification API: OCR and document checks, not a DMV lookup
First, the limit: the Koncile driver license API checks the document you received, not the state record behind it. It reads a photo, a scan or a PDF of the license, returns each field as JSON with a confidence score, merges the front and the back, and flags an expired card, dates that do not fit together and signs of editing. Whether the license is still valid at the DMV comes from a different service, the AAMVA Driver's License Data Verification (DLDV) or a motor vehicle record (MVR), and this page explains where each one fits.
What a driver license verification API can mean
Search for "driver license verification api" and you get three different products under the same name: tools that read the card, tools that check the card, and services that ask the issuing agency whether the data matches its file. They answer different questions, and most onboarding flows need at least the first two.
| Layer | Question it answers | What you send | What you get back | Who provides it |
|---|---|---|---|---|
| 1. Read the license (OCR, barcode parsing) | What is written on this card? | An image or a PDF of the front and back | Named fields: name, number, dates, class, address | OCR APIs such as Koncile, Amazon Textract, StructOCR; barcode SDKs for the PDF417 on the back |
| 2. Check the document | Does this card look consistent and unedited? | The same image or file | Expiry, date consistency, signs of editing, a score | Koncile, document verification vendors |
| 3. Confirm with the issuing agency | Does the state's file hold the same data? | Data typed or extracted from the card | A match or no match flag per field | AAMVA DLDV through approved resellers (US), DVLA services (UK), national registries elsewhere |
Koncile covers layers 1 and 2 in a single call. Layer 3 needs an agreement with the agency or a reseller; the data that layer 1 extracts is exactly what you pass to it, so the two work together rather than compete.
How the Koncile driver license API works
Two calls do the job: one sends a file, one reads the result. Templates and fields live in the Koncile interface, so adding a field never needs a deployment on your side.
- Send the front.
POST /v1/upload_filewith the file and the driver's license template. One file per request; PDF, JPEG and PNG, up to 10 MB for an image and 300 MB for a PDF according to the documentation. The response gives youtask_ids. - Attach the back. Send the second side with
doc_idset to the document of the front. Both sides become one record, and the result says which sides were received, so a missing back is caught. - Read the result.
GET /v1/fetch_tasks_results/?task_id=...returns the status (DONE,IN PROGRESS,DUPLICATEorFAILED) and the fields, or you receive them by webhook when the document is done. - Route the doubtful cases. Accept values above your confidence threshold, send the others to a person. The checks come back in the same pass as the fields.
# 1. Send the front of the license (one file per request)
curl -X POST "https://api.koncile.ai/v1/upload_file/?template_id=$TEMPLATE_ID" \
-H "Authorization: Bearer $KONCILE_API_KEY" \
-F "files=@license-front.jpg"
# {"task_ids": ["..."]}
# 2. Attach the back to the same document
curl -X POST "https://api.koncile.ai/v1/upload_file/?template_id=$TEMPLATE_ID&doc_id=$DOCUMENT_ID" \
-H "Authorization: Bearer $KONCILE_API_KEY" \
-F "files=@license-back.jpg"
# 3. Read the result
curl "https://api.koncile.ai/v1/fetch_tasks_results/?task_id=$TASK_ID" \
-H "Authorization: Bearer $KONCILE_API_KEY"
{
"status": "DONE",
"document_id": 1048211,
"General_fields": {
"License number": {"value": "S000 1234 5678", "confidence_score": 0.99},
"Last name": {"value": "MARTIN", "confidence_score": 0.99},
"First names": {"value": "ALEX", "confidence_score": 0.99},
"Date of birth": {"value": "1990-03-14", "confidence_score": 0.99},
"Issuing state": {"value": "Sample State", "confidence_score": 0.97},
"Expiration date": {"value": "2030-08-15", "confidence_score": 0.98},
"Class": {"value": "D", "confidence_score": 0.97},
"Is a driver license": {"value": "Yes", "confidence_score": 0.99},
"Valid license": {"value": "Yes", "confidence_score": 0.99},
"Sides provided": {"value": "Front and back", "confidence_score": 0.99}
}
}Values above come from a fictional specimen. Python and Node.js SDKs wrap the same two endpoints; the full formats are on docs.koncile.ai, and a complete script with polling, retries and confidence routing is in our tutorial on driver license OCR in Python. The same reading is available without code in the web app, which works as a drivers license scanner online.
Driver license parsing: the fields you get
Parsing is the step after recognition: deciding which string is the license number, splitting the name, putting dates in one format. The default template returns these fields, each with its confidence score:
| Field | What the API does with it | Why it matters |
|---|---|---|
| License number | Kept as printed, spaces included | Key for your records and for a later state check |
| Last name, first and middle names | Split into separate fields | Matching with the rest of the file |
| Date of birth | Returned in the date format you choose | Age checks, consistency with other documents |
| Address | As printed on the card | Proof of address workflows |
| Issuing state or country | Read from the card design and text | Routing to the right rules |
| Issue and expiration dates | Normalized; expiration compared with the day of analysis | The "Valid license" flag |
| Class, endorsements, restrictions | Codes kept as printed | Fleet and rental eligibility |
| Is a driver license, sides provided | Document type and sides received | Catches a wrong document or a missing back |
A field you need and the template lacks, such as height or a specific endorsement, is added in plain words in the interface and comes back in the API from the next document on. Licences from outside the United States are read the same way, including those printed in Cyrillic, Arabic or Chinese script; we do not publish a country list, so test your own cards with the free credits.
The document checks in the response
Reading alone accepts a fake as easily as a real card. While it extracts, Koncile runs checks on the document itself:
- Expiration. The expiration date is compared with the day of analysis and returned as the "Valid license" field.
- Date consistency. Birth, issue and expiration dates must fit together; an expiration that comes before the issue date, or an issue date before the date of birth, is flagged.
- Signs of editing. A retyped date, a swapped portrait or a card rebuilt in an editor leave traces in the image and in the file. Koncile scores them from 0 to 100 with the reason for each signal: 0 to 39 no significant sign, 40 to 79 check by hand, 80 and more strong suspicion. The score and its reasons are shown in the interface; if you plan to automate on the score through the API, ask us for the exact field before you build on it.
- Cross check with the file. Name and date of birth can be compared with the other documents of the same onboarding file, such as an ID card or a proof of address.
A score is a signal to verify, never an accusation. The barcode on the back of US and Canadian licenses is a separate subject: what it contains and why it proves little alone is explained in our guide to the dl barcode. Koncile does not guarantee decoding it.
When you also need a state record check (DLDV, MVR)
A genuine license can be suspended, revoked or replaced, and no image shows that. In the United States, the AAMVA Driver's License Data Verification service lets approved businesses submit the data of a card and get back, for each element, whether it matches the issuing jurisdiction's file. AAMVA must approve each customer, documentation and rates are given only under a non disclosure agreement, and many companies reach it through identity vendors rather than directly.
Version 3.0 of the service, described by Incode on 24 September 2026, separates inconclusive answers from failures when a state cannot answer, tolerates address and name variants, and adds a signal on whether the holder may drive, limited to standard passenger vehicles and with jurisdiction coverage still growing. A motor vehicle record (MVR) goes further, with violations and points, and is ordered with the driver's consent under federal and state rules.
In practice, a hiring or onboarding flow uses the OCR API to fill the fields without typing, the document checks to stop edited files early, and a DLDV or MVR provider only for the cases where the right to drive matters. In the UK, the photocard does not show penalty points either: that comes from the DVLA's own services.
Errors, rate limits and retries
The API uses plain HTTP status codes. The ones you will meet while integrating:
| Code | Meaning | What to do |
|---|---|---|
| 400, 422 | A parameter is missing, malformed or fails validation | Check the template id, the file type and the doc_id |
| 401, 403 | Missing or invalid key, or a key without permission | Send the key as a Bearer token |
| 402 | A usage or billing limit is reached | Add credits or change plan |
| 413 | File too large, or more than one file in one upload | Send one file per request |
| 429 | Rate limit exceeded | Wait for the Retry-After header; no credit is used |
Limits apply per API key: one upload per second with bursts of five, two result reads per second with bursts of twenty. For large batches the documentation describes a direct upload flow, and limits can be raised per company. Duplicates are detected and not billed twice.
What the API does not do
- No state database lookup. A suspended but genuine license reads as valid. Use DLDV or an MVR for that.
- No guaranteed PDF417 decoding. The printed text of both sides is read; barcode decoding is not promised.
- No face match, no liveness. The portrait is not compared with a selfie.
- No mobile capture SDK. You send files; the capture screen stays in your app.
- Not a proof of authenticity. A well made physical fake photographed cleanly can pass, and a genuine card photographed badly can get a middle score.
Price and security
Every new account gets 20 free credits with no credit card. The Advanced plan is €199 per month excluding tax for 1,000 credits, with the app and the API; a license sent front and back counts as two pages. Details are on the Koncile pricing page. Koncile is SOC 2 Type II and GDPR compliant, documents are deleted after analysis and never used to train models.
To compare this API with Amazon Textract Analyze ID, Microblink, IDScan.net, Scandit and other driver license reader software on coverage, barcode reading, checks and price, read our comparison of driver license reader software. For the full result on a specimen card, see the driver license OCR page.
Frequently asked questions
01Is there an API to verify a driver's license?
Yes, of two kinds. OCR and document check APIs such as Koncile read the card and check its dates and signs of editing. State verification services such as AAMVA DLDV in the US compare the data with the issuing agency's file. The first works on any image you receive; the second needs an approved account.
02Can the Koncile API tell me if a license is suspended?
No. It checks the document, not the state record. A genuine license that has been suspended reads as valid. For the right to drive, use DLDV through an approved provider or order a motor vehicle record (MVR) with the driver's consent.
03Does the API read the front and the back?
Yes. Send one side per request and attach the second to the same document with the doc_id parameter. The two sides are merged into one record, and the result says which sides were received.
04Does it decode the PDF417 barcode?
It is not guaranteed. Koncile reads the printed text on both sides of the card. If you need the barcode data, a dedicated barcode SDK decodes it; comparing the two is a useful consistency check.
05What format does the API return?
JSON. Each field comes with its value and a confidence score between 0 and 1, and the response carries a status: DONE, IN PROGRESS, DUPLICATE or FAILED. The web app also exports XLSX, XLS and CSV.
06Is there a free driver license OCR API to test?
Every new Koncile account gets 20 free credits, with no credit card, which is enough for about ten licenses front and back through the API or the web app.
Sources
- Koncile documentation: file uploading, task retrieval and API status codes, read on 1 November 2026
- AAMVA: Driver's License Data Verification (DLDV) Service, read on 1 November 2026
- Incode: US driver's license verification is now powered by AAMVA DLDV 3.0, 24 September 2026
- DVLA: Access to Driver Data API guide
Try the API on your own licenses
Create a Koncile account, get an API key and send a few licenses, front and back. You get the fields, the confidence scores and the checks for each one.
Create a Koncile accountTalk to an expert
20 free credits, no credit card. Documents are deleted after analysis.