Aadhaar Masking

The aadhaar masking service 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 a 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.



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="ABCDEF12345"' \
--form 'consent="Y"' \
--form 'consent_purpose="for bank account purpose only"' \
--form 'image=@"/path/to/file"'
    "status": "SUCCESS",
    "responseCode": "S00000",
    "message": "Successfully completed Aadhaar UID Masking",
    "data": {
        "isMasked": true,
        "maskedImages": [
            "<Base64 Image>"
    "responseKey": "success_aadhaar_masking"