Compliance · Privacy
Automatically detect and redact Aadhaar numbers across documents, images and PDFs — reducing the identity data you hold in the clear, in line with UIDAI guidance.
Overview
What the Aadhaar Masking API does
FinHub's Aadhaar Masking API finds Aadhaar numbers wherever they appear — in scanned documents, images, PDFs and forms — and masks all but the last four digits. Run it in real time at onboarding or in bulk across archived records, so a leaked document never exposes a full identifier. It supports the DPDP principle of data minimisation and UIDAI masking guidance, with an audit log of every masking operation.
Inputs
- Document, image or PDF
- Optional: bulk file batch
Returns
- Masked document (last 4 digits visible)
- Detected-number locations
- Masking audit record
POST /v1/documents/aadhaar/mask
How it works
Three steps to a verified result
Submit the document
Send a document, image or PDF at onboarding, or a bulk batch of archived files.
We detect and mask
FinHub locates Aadhaar numbers and redacts all but the last four digits, wherever they appear.
Get the masked output
Receive the masked document plus an audit record — via real-time API or bulk file processing.
Use cases
Where teams use Aadhaar Masking
- Masking Aadhaar during digital onboarding
- Bulk redaction of archived loan and KYC files
- Reducing breach liability and regulatory exposure
- Meeting DPDP data-minimisation obligations
FAQ
Aadhaar Masking API — FAQs
Common questions about FinHub's Aadhaar Masking API.
All but the last four digits are redacted (for example XXXX XXXX 1234), which is enough to reference a record without exposing the full identifier, in line with UIDAI masking guidance.
More verification APIs
Explore related APIs
Ready to add Aadhaar Masking to your flow?
Book a demo and see the API return a verified result on your own test data in minutes.