DocumentAadhaar Masking

Aadhaar Masking API — Redact Aadhaar Numbers

Automatically mask Aadhaar numbers in document images to comply with UIDAI guidelines. Upload an image and get a redacted version back.

curl -X POST "https://production.deepvue.tech/v1/documents/aadhaar-masking" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "document": "example_string",
  "consent": "example_string"
}'
{
  "code": 200,
  "timestamp": null,
  "transaction_id": "string",
  "sub_code": "SUCCESS",
  "message": "Document Masked Successfully",
  "data": {
    "masked_document": "string"
  }
}
POST
/v1/documents/aadhaar-masking
POST
Bearer Token (JWT)
Bearer Tokenstring
Required

ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .

ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .
API Key (header: x-api-key)
x-api-keystring
Required

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). ACCESS_TOKEN generated from the authorize endpoint. Should be included in the header as Bearer .

header
x-api-keystring
Required

API Key for authentication. The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

Responses

codeinteger
timestampinteger
transaction_idstring
sub_codestring
messagestring
dataobject

Overview

The Aadhaar Masking API conceals sensitive information on Aadhaar documents by obscuring the QR code and the first 8 digits of the Aadhaar number. This enables verifications while limiting access to personal information, ensuring privacy and data security.

The API accepts either base64-encoded images or publicly accessible URLs of Aadhaar documents as input and returns the masked version in response.

Service providers shall not share, publish, or display Share Codes, XML files, or their contents, as per UIDAI regulations. Non-compliance may trigger legal action under multiple sections of The Aadhaar Act, 2016 and related regulations. Consent documentation should be mandatorily stored at the company end before proceeding with verification workflows.