Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token authentication using JWT |
| Content-Type | Yes | multipart/form-data |
| Parameter | Type | Description |
|---|---|---|
| file | Image | Upload Cheque Image |
| use_pdf | Boolean | If the file type is PDF, set this to true |
| Parameter | Type | Description |
|---|---|---|
| base_64 | String | Cheque Image in Base64 format |
| Parameter | Type | Description |
|---|---|---|
| link | String | Cheque Image Link/URL |
| Parameter | Type | Description |
|---|---|---|
| data | Object | Contains the response data |
| data.client_id | String | Unique identifier for the client request |
| data.masked_image | String | URL to download the masked Aadhaar image |
| status_code | Integer | HTTP status code of the response |
| success | Boolean | Indicates if the request was successful |
| message | String or null | Additional information about the response |
| message_code | String | Code indicating the status of the request |
{
"data": {
"client_id": "aadhaar_masking_tldsfdgdfgsdfhdkTadgsKnMhePiDB",
"masked_image": "https://aadhaar-kyc-docs.s3.amazonaws.com/link"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}{
"error": null,
"message": "Your token is invalid. Please ensure that correct token is being used.",
"status_code": 401,
"success": false,
"message_code": "invalid_token"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/mask-aadhaar' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"data": {
"client_id": "aadhaar_masking_tldsfdgdfgsdfhdkTadgsKnMhePiDB",
"masked_image": "https://aadhaar-kyc-docs.s3.amazonaws.com/link"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}