Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | JWT Bearer token for authentication (format: Bearer YOUR_JWT_TOKEN ) |
Content-Type | Yes | Must be set to multipart/form-data for file upload |
Parameter | Type | Required | Description |
---|---|---|---|
File | Image | Yes | The image file containing a face. Supported formats include JPG, JPEG, and PNG. |
link | String | No | Image Link |
face_crop | Boolean | No | Face Crop For Passport Size Photo |
Parameter | Type | Description |
---|---|---|
data | Object | Contains the result data |
data.client_id | String | Unique identifier for the request/client |
data.image_url | String | URL to access the processed image with background removed |
face_crop | Boolean | Face Crop For Passport Size Photo |
status_code | Integer | HTTP status code (200 for success) |
success | Boolean | Indicates if the operation was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"client_id": "face_background_remover_MzERcZdynEfGggqKtnWz",
"image_url": "https://aadhaar-kyc-docs.s3.amazonaws.com/vishal.rathore/face/face_background_remover_MzERcZdynEfGggqKtnWz/face_extract_1707307524537731.jpg?X-Amz-Algorithm=AWS4-",
"face_crop": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 401,
"success": false,
"message": "Unauthorized access",
"message_code": "unauthorized"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/face/face-background-remover' \
--header 'Authorization: Bearer TOKEN' \
--form 'file=@""'
{
"data": {
"client_id": "face_background_remover_MzERcZdynEfGggqKtnWz",
"image_url": "https://aadhaar-kyc-docs.s3.amazonaws.com/vishal.rathore/face/face_background_remover_MzERcZdynEfGggqKtnWz/face_extract_1707307524537731.jpg?X-Amz-Algorithm=AWS4-"
},
"face_crop": true,
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}