Saltar al contenido principal

/evaluatePassiveLivenessToken

Description

This service performs a liveness check using the best tokenized image obtained during the user's selfie capture. To generate the tokenized image, the native function of the Selphi widget is used, with the bestImage parameter (open image) generated by the widget.

Integration

Requires the implementation of Selphi Mobile or Selphi Web widget.

Request:

curl --location '{IDENTITY_API_BASE_URL}/services/evaluatePassiveLivenessToken' \
--header 'x-api-key: {API_KEY}' \
--header 'Content-Type: application/json' \
--data '{
"imageBuffer": "BAMBAQLNHJoWGPjfeuDIzDXdZuP/…",
"tracking": {
"extraData": "BQABAQG2gBNjuHN...",
"operationId": "xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"
}
}'

Request parameters:

ParameterType (Content)RequiredDescription
imageBufferString (Base64)YesBestImage property generated by the Selphi widget and tokenized using the widget's native function.
trackingJSON ObjectNoObject that represents necessary tracking information.
extraDataString (Base64)NoToken generated by Mobile/Web SDK. Contains tokenized tracking information with Platform.
operationIdString (Base64)NoOperation identifier generated by Mobile/Web SDK.

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
}