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 | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| voice_token | Boolean | No | Voice Token |
| eye_bling | Boolean | No | Eye Bling |
| eye_blink | Boolean | No | Eye Blink |
| assist_voice | Boolean | No | Assist Voice |
| location_check | Boolean | No | Location Check |
| movement_check | Boolean | No | Movement Check |
| step_duration | Integer | No | Step Duration |
| frame_size | String | No | Frame Size |
| head_movement_attempts | Integer | No | Head Movement Attempts |
| token_expiry | Integer | No | Token Expiry |
| reference_id | String | No | Reference Id |
| disable_audio | Boolean | No | Disable Audio |
| smile_check | Boolean | No | Smile Check |
| redirect_url | String | No | Redirect Url |
{
"eye_blink": true,
"head_movement_attempts": 4,
"frame_size": "medium"
}| Parameter | Type | Description |
|---|---|---|
| data | Object | Contains the client_id and token required for subsequent API calls |
| data.client_id | String | Unique identifier for the liveness session |
| data.token | String | JWT token for authenticating subsequent requests in this session |
| status_code | Integer | HTTP status code indicating the result of the request |
| success | Boolean | Indicates whether the request was successful |
| message | String or null | Additional information about the response (null if successful) |
| message_code | String | Code indicating the status of the operation |
{
"data": {
"client_id": "liveness_sdk_onadfasvadbnadtUbTANnMbBxZ",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTadfasdfadsgsadcadsgasvsagahrnyfjsfbdfdbavarvaS_M"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}{
"data": null,
"status_code": 401,
"success": false,
"message": "Invalid authentication token",
"message_code": "authentication_error"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/liveness-sdk/init' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"eye_blink": true,
"head_movement_attempts": 4,
"frame_size": "medium"
}'{
"data": {
"client_id": "liveness_sdk_onadfasvadbnadtUbTANnMbBxZ",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTadfasdfadsgsadcadsgasvsagahrnyfjsfbdfdbavarvaS_M"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}