Saltar al contenido principal

/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:

ParameterType (Content)RequiredDescription
imageBufferString (Base64)YesBase64 encoded image of the user's face. Supported formats are JPEG and PNG.

Response fields:

IdentifierTypeDescription
serviceResultCodeIntegerCode indicating the overall result of the service execution. See Table 1 - Service Result Code
serviceTimeStringTotal response time (milliseconds).
serviceLivenessResultIntegerCode indicating the result of the passive liveness test evaluation. See Table 3 - Service Liveness Result
serviceResultLogStringDescriptive field of the service execution result. Includes details when there is an error or exception.
serviceTransactionIdStringTransaction 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
}