Evaluate Passive Liveness
This service performs a liveness check using the selfie image provided by the user.
Endpoint
POST /services/evaluatePassiveLivenessHeaders
x-api-key
string
Yes
Access authorization API Key.
family
string
No
Value: Onboarding. Required with the tracking service.
Request body
Content-Type: application/json
Parameters
imageBuffer
string
Yes
Image encoded in Base64 of the user's face. The supported formats are JPEG and PNG.
tracking
object
No
Object representing the necessary tracking information.
tracking.extraData
string
No
Token generated by the SDK Mobile/Web. Contains tokenized tracking information with the Platform.
tracking.operationId
string
No
Operation identifier generated by the SDK Mobile/Web.
Request example
{
"imageBuffer": "iVBORw0KGgoAAAANSUhEUgAAAAE...",
"tracking": {
"extraData": "BQABAQG2gBNjuHN4kLmPqYf7R...",
"operationId": "123e4567-e89b-12d3-a456-426614174000"
}
}Responses
200 Success
Response parameters
serviceResultCode
integer
Code that indicates the overall result of the service execution. See Service Result Code
serviceResultLog
string
Descriptive field for the result of the service execution. Includes details when there is an error or exception.
serviceTime
string
Total response time (milliseconds).
serviceTransactionId
string
Transaction identifier associated with the request processed by the API.
serviceLivenessResult
integer
Code that indicates the result of the passive liveness check. See Service Liveness Result
Service Result Code
The serviceResultCode indicates the overall result of the service execution:
0
The service execution was successful, the module processed the request correctly.
200
Service Liveness Result
The serviceLivenessResult indicates the result of the passive liveness check evaluation:
0
None
The liveness check could not be evaluated.
1
Spoof
DEPRECATED. Use 'NoLive' instead.
2
Uncertain
DEPRECATED
3
Live
The subject is assumed to be alive.
4
NoneBecauseBadQuality
The liveness check could not be evaluated due to poor image quality.
5
NoneBecauseFaceTooClose
The liveness check could not be evaluated because the detected faces are too close to the edges.
6
NoneBecauseFaceNotFound
The liveness check could not be evaluated because no faces were detected.
7
NoneBecauseFaceTooSmall
The liveness check could not be evaluated because the detected faces are too small.
8
NoneBecauseAngleTooLarge
The liveness check could not be evaluated because the angle between faces exceeds the permitted limit.
9
NoneBecauseImageDataError
The liveness check could not be evaluated due to errors in the image format.
10
NoneBecauseInternalError
The liveness check could not be evaluated due to an internal error.
11
NoneBecauseImagePreprocessError
The liveness check could not be evaluated due to an error in image preprocessing.
12
NoneBecauseTooManyFaces
The liveness check could not be evaluated because too many faces were detected in the image.
13
NoneBecauseFaceTooCloseToBorder
The liveness check could not be evaluated because the face is too close to the edge.
14
NoneBecauseFaceCropped
The liveness check could not be evaluated because the face is cropped.
15
NoneBecauseLicenseError
The liveness check could not be evaluated due to a license error.
16
NoneBecauseFaceOccluded
The liveness check could not be evaluated because the face is occluded.
17
NoLive
No liveness detected.
18
NoneBecauseEyesClosed
The liveness check could not be evaluated because the person's eyes are closed.
Response example: Live
Response example: NoLive
400 Bad Request
401 Unauthorized
403 Forbidden
502 Bad Gateway
504 Gateway Timeout
Last updated