Mask Aadhaar, PAN and other sensitive data in documents.
A hosted data masking API that automatically detects sensitive PII — Aadhaar numbers, PAN and other identifiers — and redacts them while preserving document layout exactly. Returns a masked document plus an audit-ready count of every redaction, for fintech KYC, banking, insurance, and any workflow that archives or shares sensitive documents.
Compliance-grade PII redaction
- ✓ Detects Aadhaar numbers, PAN, and other sensitive fields
- ✓ Handles Aadhaar QR codes and barcode regions
- ✓ Layout-preserving output, only detected regions redacted
- ✓ Works on scanned cards, eKYC PDFs, KYC bundles
- ✓ Multi-page documents, every page processed
- ✓ Audit-ready: count of redactions per document returned
result = client.data_masking.redact( file="customer_kyc_pack.pdf" ) print(result.masked_pdf_url) print(result.redactions_count) # 7 sensitive fields redacted across 4 pages
Sensitive fields, found and masked automatically
Aadhaar numbers
12-digit Aadhaar number patterns detected and masked so stored copies don't expose the number.
PAN
Permanent Account Number fields detected and masked wherever they appear in the document.
QR codes & barcodes
Aadhaar QR code and barcode regions redacted so the number can't leak through a machine-readable code.
Other sensitive fields
Additional sensitive identifiers detected and masked, leaving the name, photo, and layout intact.
Where teams use Data Masking
CKYC archive
Redact sensitive fields before archiving customer KYC bundles for compliance retention.
Loan + onboarding workflows
Fintech and lending, mask Aadhaar and PAN in stored KYC files while keeping document evidence intact.
Insurance claim archives
Mask sensitive data in claim documentation packages before sharing with auditors or TPAs.
Customer support evidence
Show customer KYC documents in support tickets with sensitive fields masked.
Data-sharing with partners
Share verified KYC documents with partners or aggregators without exposing Aadhaar or PAN.
Training data preparation
Strip sensitive identifiers from documents before using them as training data for downstream models.
Common questions
Explore the rest of the Document AI API
One wallet, every capability — take this and you also get all of these.