Aadhaar and PAN verification API
Catch made-up Aadhaar and PAN numbers at onboarding using the check digits built into them. Then match the photo on the card to a live selfie.
A genuine number always passes its own check digits. A failed checksum is proof. How identity checks work
Fake numbers, caught by arithmetic
Each check names the field it tested and the reason.
Aadhaar Verhoeff checksum
We test the 12-digit number against its Verhoeff check digit. A valid number never starts with 0 or 1.
PAN structure
We test the PAN against the AAAAA9999A format and its fourth letter, which marks the holder type. Made-up and mistyped numbers fail.
Selfie to ID face match
We match the live selfie to the photo on the card. This catches a real card used by someone else.
One call for the card and the selfie
Send the ID image and a selfie to POST /v1/verify. You get the checksum and format results, the face match and any deepfake signal on the selfie. If a number cannot be read cleanly, the check goes to review.
Request
curl https://truesecurix.com/v1/verify \ -H "X-API-Key: $TRUESECURIX_API_KEY" \ -F "selfie=@selfie.jpg" \ -F "document=@aadhaar.jpg" \ -F "reference=kyc-48211"
Part of the response
{
"decision": "pass",
"risk_score": 4.8,
"face_match": { "is_match": true, "verdict": "face_match", ... },
"document": { "deterministic": {
"doc_type": "aadhaar",
"checks": [{ "field": "aadhaar", "valid": true,
"reason": "Verhoeff checksum valid (self-verifying read)" }] } }
}
Common questions
Do you connect to UIDAI or the Income Tax database?
No. We check the number's own checksum and format and match the ID photo to the selfie. We do not look up UIDAI or Income Tax records.
Can a valid Aadhaar be wrongly flagged?
No. A genuine Aadhaar always passes the Verhoeff checksum. Only a number that fails it is flagged. If we cannot read the number cleanly, the check goes to review.
Do you store or return the full Aadhaar or PAN number?
No. Evidence shows a masked value. We keep only the image's SHA-256 fingerprint and the result.
What does a check cost?
One credit per check. New accounts get 100 free checks. After that it is Rs 5 a check, or less on a monthly plan. See pricing.
Validate Aadhaar and PAN at onboarding
100 checks free on sign-up, no card needed. Try it on your own KYC documents.