Aadhaar UID Masking

Aadhaar Masking API is used to mask the first 8 digits of an Aadhaar Number. It is quite simple to use and returns the same Aadhaar image with Masked Aadhaar Number.

API Requirements

Supported Formats: This API supports a limited set of image extensions or file formats -

  • JPG
  • JPEG
  • PNG
  • PDF

Maximum File Size: This API supports an image with a max size of 6MB.

📘

Note

We will work on other formats in near future

Sample Request & Response

curl --location --request POST 'https://in.staging.decentro.tech/v2/kyc/identities/mask_aadhaar_uid' \
--header 'client_id: <your_client_id>' \
--header 'client_secret: <your_client_secret>' \
--header 'module_secret: <your_module_secret>' \
--form 'reference_id="Manish Gupta is Testing"' \
--form 'consent="Y"' \
--form 'consent_purpose="for bank account purpose only"' \
--form '[email protected]"/path/to/file"'
{
    "decentroTxnId": "DECXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "status": "SUCCESS",
    "responseCode": "S00000",
    "message": "Successfully completed Aadhaar UID Masking",
    "data": {
        "isMasked": true,
        "maskedImages": [
            "<Base64 Image>"
        ]
    }
}