Mask sensitive information from Aadhaar card documents
| Option | Default | Description |
|---|---|---|
mask_qr | false | Mask the QR code on the Aadhaar card |
mask_all_digits | false | Mask all digits of the Aadhaar number |
extract_last_four_digits | false | Extract only last 4 digits (e.g., returns “6032”) |
extract_last_four_digits was enabledBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Publicly accessible URL of the Aadhaar document to be masked. Supports both images (JPG, PNG) and PDF documents.
10 - 2048"https://example.com/documents/aadhaar_card.jpg"
User consent for masking the document. Must be 'yes' to proceed with masking.
yes, no "yes"
Whether to mask the QR code on the Aadhaar card. Set to true to mask, false to keep visible.
true
Whether to mask all digits of the Aadhaar number. Set to true to mask all digits, false to keep visible.
true
Whether to extract and show only the last four digits of Aadhaar number. Set to true to extract last 4 digits (e.g., returns '6032' in id_number field), false to return null.
true
Aadhaar masked successfully
Overall status of the API
success, error HTTP status code
400
Description of the response or error
"Invalid request parameters"
Represents the total number of credits used in this request.
3
Represents the remaining credits available for use.
4040