Skip to main content
POST
Read and verify an Aadhaar secure QR
Every Aadhaar card and e-Aadhaar carries a QR code. Newer cards carry a secure QR, signed by UIDAI, with the holder’s name, date of birth, gender, address and photo. Aadhaar QR reads that code and checks the signature, so you can tell a genuine card from an edited one without an OTP. Older cards carry an unsigned QR: it is read, but nothing can be verified. Send one of:
  • multipart/form-data with file: a photo or scan of the QR. Works for every account.
  • JSON with qr_data: the text you decoded from the QR yourself. If your account returns IDTO_001 for qr_data, send the image instead.

Environments

How to read the result

Every readable QR returns 200, status: "success", error_code: null, and is billed. Decide with data.authentic and data.is_signed:
  • dob is passed through as the QR holds it, not reformatted. An old QR may hold only the year of birth.
  • reference_id is the QR’s own reference. On an old QR it is the masked Aadhaar number (XXXXXXXX plus the last 4 digits).
  • address is one line built from the parts. extras carries the parts (care_of, house, street, location, vtc, district, state and so on), format (secure_qr or old_xml) and, on a secure QR, mobile_registered and email_registered.
  • Photo: send include_photo: true to get the holder’s photo as Base64 in photo with photo_mime: "image/png". Without it, photo is null and has_photo still tells you whether one exists. The decoded photo is not saved with the call record.
  • user_consent must be true ("true" or "1" in a form).
  • No readable QR in the image is a 422 IDTO_204 and is not billed.
Send an Idempotency-Key header. A retry with the same key and body returns the first response without a second charge. See Idempotency.

Errors

A missing or wrong X-Client-ID / X-API-Key pair returns 401 with a detail string and is not billed. The full code list is in v2 error codes.

Test scenarios

See the Aadhaar FAQ. Was this page helpful? Email us at tech@idto.ai with the page link.

Authorizations

X-Client-ID
string
header
default:<client-id>
required

The Client ID shown on the API Credentials page of the idto dashboard. It is not your account or customer ID, which returns 401. Send it on every server-to-server request together with X-API-Key. Staging and production client IDs are different.

X-API-Key
string
header
default:<api-key>
required

Your API key from the idto dashboard (API credentials). Keep it on your server; never ship it in a browser or mobile app. Send it on every server-to-server request together with X-Client-ID.

Headers

Idempotency-Key
string

Make retries of this exact request safe. If the same key is replayed with an identical request body, the original result is returned without re-running the verification or billing again. If the same key is replayed with a different body, the request is rejected with IDTO_010 (422). Omitting this header runs every request as new.

Maximum string length: 255

Body

Available options:
true,
1,
yes
file
file

An image of the Aadhaar QR code. Required if not sending qr_data.

include_photo
enum<string>
Available options:
true,
1,
yes

Response

The QR was read. All four outcomes are HTTP 200 and billed. Only authentic: true means the UIDAI signature was checked and matched.

status
enum<string>
required
Available options:
success
message
string
required
error_code
string | null
required

null on a full match, an IDTO_2xx code on a definitive no-record result. Both are billed.

data
object | null
required
billed
enum<boolean>
required
Available options:
true
tranx_id
string | null
timestamp
string<date-time> | null
Last modified on December 1, 2026