Home / Documents / Aadhaar card

KYC

Aadhaar card OCR API

Read the front and back of an Aadhaar card. The Aadhaar number is validated with its Verhoeff checksum and always returned masked (XXXX XXXX 1234), as UIDAI requires. The 16-digit VID is never mistaken for it.

Sample Aadhaar card (synthetic specimen)
Synthetic specimen. No real person's data.

Real response for this sample

FieldValueConfidence
aadhaar numberXXXX XXXX 012498%
dob1990-04-12100%
nameRAVI KUMAR100%
gendermale100%

No review needed. Read in 132 ms.

Fields returned

FieldWhat it is
aadhaar_numberAlways masked: XXXX XXXX 1234
nameCard holder's name
dob / year_of_birthDate or year of birth
gendermale, female or transgender
address, pincodeFrom the back side
relative_nameS/O, D/O, W/O or C/O name from the address

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

Checks

  • Verhoeff checksum on the 12-digit number
  • Never returns the full number
  • Date of birth is real; holder is an adult

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

Used for

  • Address proof
  • Identity verification
  • Co-applicant KYC

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=aadhaar

Authentication, errors, batch uploads and webhooks →

Questions about the aadhaar card API

Is it allowed to read Aadhaar with OCR?

Lenders may collect Aadhaar for KYC within UIDAI's rules, which require the number to be masked when stored or shown. LendOCR always returns it masked (XXXX XXXX 1234) and does not store the document.

Can it read the back side with the address?

Yes. Send the front, the back, or both; the response says which side was found and returns the address, pincode and S/O, D/O or W/O name from the back.

Can I send a phone photo of a aadhaar card?

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 aadhaar card 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.