
Real response for this sample
| Field | Value | Confidence |
|---|---|---|
| aadhaar number | XXXX XXXX 0124 | 98% |
| dob | 1990-04-12 | 100% |
| name | RAVI KUMAR | 100% |
| gender | male | 100% |
No review needed. Read in 132 ms.
Fields returned
| Field | What it is |
|---|---|
aadhaar_number | Always masked: XXXX XXXX 1234 |
name | Card holder's name |
dob / year_of_birth | Date or year of birth |
gender | male, female or transgender |
address, pincode | From the back side |
relative_name | S/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=aadhaarQuestions 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.