1. Home
  2. Checks
  3. Aadhaar verification

Aadhaar verification API: confirm an Aadhaar belongs to your customer

The holder proves it themselves, with a one-time code on their own phone. You get their name, date of birth and address. The full number stays hidden.

An Aadhaar verification API confirms that an Aadhaar number belongs to the person using it. The holder enters a one-time code that UIDAI sends to their registered mobile, or shares an offline Aadhaar file. In return you receive the name, date of birth, gender and address held on the Aadhaar.

Because the holder must take part, nobody can be verified without knowing about it.

What you send. What you get back.

You send

  • Aadhaar numberTyped by the holder, not by your staff.
  • One-time codeSent by UIDAI to the holder's registered mobile, entered by them.
  • Or an offline Aadhaar fileA signed file the holder downloads and shares, with its share code.
  • ConsentConfirmation that the holder agreed to be verified.

You get back

  • Confirmed identityProof that the holder completed the verification.
  • Name and date of birthAs printed on the Aadhaar.
  • AddressSplit into house, street, district, state and PIN code.
  • PhotoWhere the method used provides it.
  • Masked numberOnly the last four digits are shown.

Checked with: UIDAI, the authority that issues Aadhaar. ASP Associates is a private company and is not part of any government body.

How an Aadhaar check works

  1. 1. Your customer enters their Aadhaar number

    On their own phone or computer, inside your flow.

  2. 2. UIDAI sends them a one-time code

    It goes to the mobile number registered with their Aadhaar. They type it in.

  3. 3. You receive their details

    Name, date of birth and address arrive in your system, with the Aadhaar number masked.

Where it is used

Digital onboarding

Open an account or approve a loan without paper forms or a branch visit.

Address proof

Get a verified address in a clean, structured form instead of a blurry photo of a card.

Workforce onboarding

Confirm the identity of gig workers, delivery partners and field staff before day one.

Good to know.
  • Aadhaar has stricter rules than other documents. Which method you may use depends on the kind of business you are. Tell us and we will guide you.
  • If the holder's mobile is not linked to their Aadhaar, the one-time code cannot reach them. Offline Aadhaar is the alternative.
  • You should store the masked number, never the full Aadhaar number, unless the law specifically permits you to.

For developers

One POST request with the details and the person's consent. One JSON response. Every ASP Associates check follows the same shape.

  • Test first. Try it with sample data before going live.
  • Clear errors. If a check cannot run, the response says why.
  • Help from engineers. On WhatsApp, from the people who built it.
See how integration works
POST /v1/verify/aadhaar
Authorization: Bearer your-test-key
Content-Type: application/json

{
  "aadhaar_number": "XXXXXXXX1234",
  "otp": "482916",
  "consent": true
}
{
  "outcome": "SUCCESS",
  "request_id": "req_aadhaar_8f2a4b6c",
  "data": {
    "aadhaar_number": "XXXXXXXX1234",
    "name": "ANANYA SHARMA",
    "dob": "1994-08-14",
    "gender": "F",
    "split_address": {
      "district": "New Delhi",
      "state": "Delhi",
      "pincode": "110001"
    }
  },
  "consent_verified": true,
  "masked": true
}

Sample data, shortened for reading. The full reference comes with your test access.

Questions about Aadhaar verification

Can a private company ask for my Aadhaar?

A private company can accept Aadhaar as proof of identity if you offer it voluntarily, but it cannot insist on Aadhaar when another valid document would do. Certain regulated businesses, such as banks, are specifically allowed to verify Aadhaar. In every case the holder has to agree and take part.

What is the difference between Aadhaar OTP verification and offline Aadhaar?

With OTP verification, the holder types their Aadhaar number and a one-time code that UIDAI sends to their phone. With offline Aadhaar, the holder downloads a digitally signed file of their own details from UIDAI and shares it with you along with a share code. Both prove the Aadhaar is theirs.

What is a masked Aadhaar?

A masked Aadhaar shows only the last four digits of the 12-digit number and hides the first eight. It lets a business keep a record that a person was verified without holding their full Aadhaar number.

Why did the Aadhaar OTP not arrive?

The one-time code only goes to the mobile number registered with that Aadhaar. If the holder changed their number and never updated it with UIDAI, the code will not reach them. They can update their mobile at an Aadhaar centre, or use offline Aadhaar instead.

How can I check if an Aadhaar number is valid?

Every Aadhaar number ends in a check digit worked out from the other eleven, so a mistyped or invented number usually fails a simple test. Our free Aadhaar number validator runs that test in your browser. To confirm the number belongs to a real person, the holder has to verify with a one-time code.

Is it safe to verify Aadhaar online?

Yes, when it is done through UIDAI's own verification methods. The holder is always in control: nothing can be verified unless they enter the code sent to their phone or share their own offline file.