/evaluatePassiveLiveness
Description
This service performs a liveness check using provided user's selfie image.
Request:
curl --location '{IDENTITY_API_BASE_URL}/services/evaluatePassiveLiveness' \
--header 'x-api-key: {API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"imageBuffer": "BASE64_IMAGE"
}'
Request parameters:
| Parameter | Type (Content) | Required | Description |
|---|---|---|---|
| imageBuffer | String (Base64) | Yes | Base64 encoded image of the user's face. Supported formats are JPEG and PNG. |
Response fields:
| Identifier | Type | Description |
|---|---|---|
| serviceResultCode | Integer | Code indicating the overall result of the service execution. See Table 1 - Service Result Code |
| serviceTime | String | Total response time (milliseconds). |
| serviceLivenessResult | Integer | Code indicating the result of the passive liveness test evaluation. See Table 3 - Service Liveness Result |
| serviceResultLog | String | Descriptive field of the service execution result. Includes details when there is an error or exception. |
| serviceTransactionId | String | Transaction identifier associated with the request processed by the API. |
Example Response:
{
"serviceResultCode": 0,
"serviceResultLog": "Live",
"serviceTime": "799",
"serviceTransactionId": "35d93da8-b843-4033-8e78-c0aabedcef8b",
"serviceLivenessResult": 3
}