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 for authentication. Format: Bearer YOUR_JWT_TOKEN |
| Content-Type | Yes | Must be set to application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | Image/Pdf | Yes | Image of face |
| link | String | No | Image link url |
| use_pdf | Boolean | No | Use PDF instead of image |
file=@"/path/to/file"| Parameter | Type | Description |
|---|---|---|
| data | Object | Contains the liveness detection results |
| data.confidence | Number | Confidence score (0-10) indicating the certainty of the liveness detection |
| data.live | Boolean | Indicates whether the face is determined to be live (true) or not (false) |
| message | String or null | Additional information about the response (null if no message) |
| success | Boolean | Indicates whether the API call was successful |
| status_code | Number | HTTP status code of the response |
| message_code | String | A code representing the status of the request |
{
"data": {
"confidence": 7,
"live": false
},
"message": null,
"success": true,
"status_code": 200,
"message_code": "success"
}{
"data": null,
"message": "Invalid or expired token",
"success": false,
"status_code": 401,
"message_code": "unauthorized"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/face/face-liveness' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"data": {
"confidence": 7,
"live": false
},
"message": null,
"success": true,
"status_code": 200,
"message_code": "success"
}