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 for file uploads or application/json for base64/URL inputs |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | File | Yes | The image file containing the face to be analyzed |
| use_pdf | Boolean | No | Set to true if the uploaded file is a PDF (default: false) |
| Parameter | Type | Required | Description |
|---|---|---|---|
| base_64 | String | Yes | Base64 encoded string of the image containing the face |
| Parameter | Type | Required | Description |
|---|---|---|---|
| link | String | Yes | Public URL of the image containing the face |
{
"link": "https://example.com/face-image.jpg"
}| Parameter | Type | Description |
|---|---|---|
| data | Object | Contains the response data |
| data.client_id | String | Unique identifier for the request |
| data.model_output | Object | Contains the liveness detection results |
| data.model_output.pred_idx | String | Classification result: real (live face) or spoof (presentation attack) |
| data.model_output.prob_real | String | Probability score (0-1) indicating likelihood of the face being real |
| data.image_attributes | Object | Contains image and facial positioning metrics |
| data.image_attributes.yaw | String | Side angle the face makes with respect to the center vertical axis |
| data.image_attributes.bbox_to_img_ratio | String | Ratio of face bounding box area to total image area |
| status_code | Integer | HTTP status code |
| success | Boolean | Indicates if the API call was successful |
| message | String | Human-readable status message |
| message_code | String | Machine-readable status code |
{
"data": {
"client_id": "face_liveness_v3_gWUdURAoyqtVyFqDqxiE",
"model_output": {
"pred_idx": "spoof",
"prob_real": "0.016860956326127052"
},
"image_attributes": {
"yaw": "-1000",
"bbox_to_img_ratio": "0.0322921875"
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"detail": "Authentication credentials were not provided or are invalid",
"status_code": 401,
"success": false
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/face/face-liveness-v3' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""' \
--form 'use_pdf="false"'{
"data": {
"client_id": "face_liveness_v3_gWUdURAoyqtVyFqDqxiE",
"model_output": {
"pred_idx": "spoof",
"prob_real": "0.016860956326127052"
},
"image_attributes": {
"yaw": "-1000",
"bbox_to_img_ratio": "0.0322921875"
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}