FastKYC
Vision APIs

Aadhaar Masking API

Mask the first eight digits of an Aadhaar number in a document image, returning a redacted copy that is compliant to store.

Category
Vision APIs
Built for
Aadhaar Masking illustration

What the Aadhaar Masking API does

Aadhaar Masking takes an image containing an Aadhaar number and returns the same image with the first eight digits obscured, leaving only the last four visible.

UIDAI guidance and data protection practice both discourage storing full Aadhaar numbers without a specific lawful basis. Masking at the point of capture means your archive never holds the full number, which is a far stronger position than deleting it later.

Where teams use the Aadhaar Masking API

  1. Redacting Aadhaar copies before storing them

  2. Meeting UIDAI expectations on Aadhaar handling

  3. Sharing identity documents with third parties safely

  4. Retrofitting masking across an existing document archive

Frequently Asked Questions (FAQs)

Which digits remain visible?

The last four, which is the standard masked form and enough to reference the document without exposing the full number.

Can the masking be reversed?

No. The returned image is redacted, not overlaid, so the original digits are not recoverable from it.

Should I mask before or after extraction?

Extract first if you need the number for verification, then store only the masked copy. Never persist the unmasked image without a lawful basis.

Start verifying with the Aadhaar Masking API

Book a walkthrough and we will show the call, the response and how it fits your onboarding flow.

  • One API key for every check
  • Verified against official Indian records
  • Built for onboarding at scale
FastKYC

Book a demo

See FastKYC on the checks you run

KYC, KYB, Verification APIs, OCR, SMS, WhatsApp & Custom solutions

Tell us what you need to verify and we will get back to you.

APIs
170+
Verifications
1.2M+
Checks a day
5000+