Skip to content
Constaia

Is this a validdriver's license?

Constaia answers valid, invalid or review, with the reasons and the data on the document. Files are kept only when they need review.

POST /v1/analyzeexpect="us_driver_license"
Fictitious SPECIMEN driver license analyzed by Constaia: fields located and a valid verdict.
Valid
  • It's a US driver license
  • PDF417 barcode matches the front
  • Holder is 21 or older
  • Valid until 2030
Fictitious SPECIMEN driver license analyzed by Constaia: fields located and a valid verdict.

Built by the team behind Add On Sport, the registration and licensing software used by Spanish sports federations. We have validated those documents every season for years.

Try it with a document

Pick a fictitious sample or upload your own document and see the result in seconds. The full demo also shows the technical response and the code.

Sample documents

US driver's license (specimen)

The demo doesn't keep the document: it's deleted as soon as the analysis ends.

Preview of US driver's license (specimen)

Click "Analyze document" to see the verdict, the reasons and the extracted data.

See the full demo

Three possible answers. Always with reasons.

Your system doesn't have to interpret free text: it gets a clear answer and a list of reasons in your language.

  1. Valid

    The document is what you expected

    It's the right type and meets every rule you set: not expired, in the right person's name, old enough and recent enough.

    Right type · Not expired · 21 or older
  2. Invalid

    It will not do, and you know why

    It's a different document or a key rule fails: expired, in someone else's name, missing a signature, or a pay stub whose totals don't add up.

    Different document · Expired · Totals don't add up
  3. Review

    A person should look at it

    Confidence is low, the photo is poor or something looks off, such as a photo of a screen. It lands in your team's review queue.

    Low confidence · Blurry photo · Possible screen photo

From a single document to the whole process

Request documents with a link, group them by person, decide unclear cases as a team and handle privacy requests without extra work.

What we check, without guessing

AI reads and classifies. Then fixed rules check everything that can be calculated: barcodes, check digits, dates and totals.

PDF417 barcode (AAMVA)

We decode the PDF417 barcode on the back of US driver licenses and state IDs and compare every field with the printed front.

DAQS1234567
DCSSPECIMEN
DACJORDAN
DBB07041988
DBA07042030
DAJXX

ABA routing numbers

The official 3-7-1 checksum on direct deposit forms, voided checks and bank letters.

123456780: 3·7·1 checksum mod 10 = 0

Age checks

21 or older, or any minimum age, calculated from the date of birth on the date you choose.

birth_date 1988-07-04 → 38 ≥ 21

Expiration and recency

Not expired today or on the date you choose, and issued within the number of days you require.

expiry_date 2030-07-04 > 2026-09-29

SSN and EIN format

Structure rules for SSNs, ITINs and EINs. A format check, not an IRS TIN match.

EIN 12-3456789: valid prefix and length

Pay stub math

Gross pay, deductions, net pay and year-to-date amounts must add up. If they don't, the document is invalid.

gross 4,200.00 − 1,012.40 = net 3,187.60

Verify without keeping a copy

Every copy of an ID you keep is a copy you have to protect. With Constaia you check the document and, by default, the file is deleted as soon as the analysis ends unless it needs review.

Only what needs review is kept
By default, the file is deleted when the analysis ends. It's only kept, encrypted, if it needs review, and deleted once a decision is made. If you prefer, it's never kept.
Encrypted, hosted in the EU
Files travel encrypted. Our servers are in Spain and anything you choose to keep is stored in the EU, encrypted with AES-256 and a separate key for each account. The AI analysis runs on Cloudflare Workers AI, which doesn't keep documents or train on them.
Minimum data, no biometrics
We extract only the fields your rules need. No face matching, no selfies, no biometric identifiers.
Service provider terms
Our DPA includes CCPA/CPRA service provider terms and the list of subprocessors. We process documents only to deliver the service you asked for.
  1. 10:00:00.000Document received and encrypted
  2. 10:00:02.084Verdict and fields returned
  3. 10:00:02.091File deleted
  4. "storage": { "mode": "review", "kept": false, "file_deleted_at": "2026-09-29T10:00:02Z" }

What we don't do: Constaia is not biometric identity verification and does not prove that a document is authentic. A matching barcode or valid check digits don't prove it either. We are not a consumer reporting agency and don't provide consumer reports under the FCRA. Driver license data is covered by the DPPA and state law, so use it only for a permitted purpose. Warnings are signals for you to decide on.

Integrate it in an afternoon

A simple API with libraries for JavaScript, PHP and Python, a free test mode and examples for your framework.

5-minute quickstartOr add it to your website only, with the widget
curl https://api.constaia.com/v1/analyze \
  -H "Authorization: Bearer $CONSTAIA_API_KEY" \
  -F "file=@us_driver_license_specimen.png" \
  -F 'options={
    "expect": "us_driver_license",
    "checks": {
      "not_expired": true,
      "min_age_years": 21
    },
    "storage": "none"
  }'

Built for teams that collect documents every day

Onboarding and Form I-9 prep, age checks, rentals, gig platforms, insurance, clinics and events: anywhere a document decides whether someone can go ahead.

See all

Frequently asked questions

Does Constaia verify that a driver license is authentic?

No. We check that the document is the type you expect, that its data is consistent (the PDF417 barcode matches the front, the dates make sense) and that it meets your rules. That doesn't prove authenticity: fake IDs with consistent data exist. We flag signals such as a possible photo of a screen or a possible edit. If you need identity verification with selfies and liveness checks, use a biometric identity verification provider.

Do you store documents?

By default, only the ones that need human review: they're kept encrypted until someone decides and deleted 24 hours later (configurable), or after 30 days if nobody decides. Everything else is deleted as soon as the analysis ends. You can also choose never to keep the file, to keep it for a few hours, until you delete it, or only as a redacted copy, and even not to keep the extracted data.

Where is the data processed, and how is it protected?

Our servers are in Spain (IONOS) and any data you choose to keep is stored in the European Union. By default, the AI analysis runs on Cloudflare Workers AI on its network, called only from our servers, without keeping documents or using them for training. If you need the analysis done only with European providers, you can turn on the sovereign profile. The full list of subprocessors is in the DPA. By default, files are stored only when they need review, and we never collect selfies or biometric data.

How much does it cost?

One credit per document of up to two pages (a driver license, front and back, counts as one). You get 150 free credits a month, plans from $32 a month with 1,000 credits, and top-ups from $11. We don't charge for analyses that fail on our side or for documents rejected for poor image quality.

Can I try it without paying?

Yes. Test mode is free and unlimited, so you can build your integration at your own pace, and this page has a live demo with 5 real analyses a day. The Free plan also includes 150 real documents every month.

What happens when the result is "review"?

It means something is unclear: low reading confidence or unusual signals. The document goes to your team's review queue, where someone approves or rejects it in one click, and your system is notified.

Can I collect documents without writing any code?

Yes. With verification links you send a link or a QR code, the person uploads their documents from their phone and you see the results in your dashboard.

Can I use it for Form I-9?

Constaia can help you check the documents new hires present: document type, expiration and name match. It does not replace the employer's Form I-9 obligations, the physical or remote document examination the rules require, or E-Verify.

What about the DPPA and CCPA?

Driver license data is protected by the federal Driver's Privacy Protection Act and by state laws, so use it only for a permitted purpose. We act as your service provider: our DPA includes CCPA/CPRA service provider terms, and by default we keep the file only when it needs human review, deleting it once a decision is made. This is not legal advice.

Who is behind Constaia?

Add On Dev Solutions S.L., the company behind Add On Sport, which builds registration and licensing software for sports organizations in Spain. Constaia grew out of validating those documents every day.

And for the record…

Create your free account and validate your first document in five minutes. No credit card required.