Skip to main content
POST
/
aadhaar-masking
Aadhaar Masking
curl --request POST \
  --url https://sandbox.cashfree.com/verification/aadhaar-masking \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --form image=@example-file \
  --form verification_id=testverificationid
{
"image_link": "https://image.url.link",
"reference_id": 354768,
"verification_id": "testverificationid",
"status": "VALID"
}

Authorizations

x-client-id
string
header
required

Your unique client identifier issued by Cashfree. You can find this in your Merchant Dashboard.

x-client-secret
string
header
required

The secret key associated with your client ID. Use this to authenticate your API requests. You can find this in your Merchant Dashboard.

Headers

x-cf-signature
string

Send the signature if two-factor authentication is selected as Public Key. More details

Body

multipart/form-data

Find the request parameters to mask aadhaar number

image
file
required

It is the image file of the aadhaar card that needs masking. Accepted formats - short, long, and PVC. Allowed file type - JPEG/JPG/PNG. The maximum file size should be 10 MB.

verification_id
string
default:testverificationid
required

It is the unique ID you create to identify the verification request. The maximum character limit is 50. Only alphanumeric, period (.), hyphen (-), and underscore ( _ ) are allowed.

Example:

"testverificationid"

Response

Success response for masking aadhaar number

status
string

It displays the status of the aadhaar information.

Example:

"VALID"

reference_id
integer

It displays the unique ID created by Cashfree Payments for reference purposes. format: int64

Example:

35476

verification_id
string

It displays the unique ID you created to identify the verification request

Example:

"testverificationid"

It displays the URL of the image.

Example:

"https://image.url.here"