Evaluate liveness
Verifies liveness on an encrypted biometric capture and exposes a public Facephi result. The multipart request field name must be capture; the legacy file field is not accepted.
Successful HTTP 200 responses return the public fields diagnostic, reason, probability, score, sdkDuration and queueDuration.
If the experimental replay attack mitigation is enabled at deployment time, captures older than the configured validity window are rejected with HTTP 400 and the message Replay attack detected.
Binary data buffer, typically biometric capture data (images, video frames, etc.).
Public liveness result
Public liveness response exposed by the Facephi API.
Public liveness reason.
Possible values:
None: the capture was accepted asLive.Unknown: the service could not map the response to a documented public rejection reason.UntrustedEnvironment: the execution environment is not considered trustworthy.SuspiciousActivity: the device showed activity patterns associated with an attack.UntrustedDevice: the device could not be trusted to be what it claims to be.SdkIntegrityViolation: the capture SDK or its libraries appear to have been tampered with.UntrustedCorruptedPayload: the payload appears to be corrupted or tampered with.UntrustedContent: an injection attack was detected.UntrustedContentLowConfidence: signs of an injection attack were detected with lower confidence and the capture must still be treated as rejected.
UntrustedContentPossible values: 110.9969123Request validation error or capture validity validation error.
Capture validation errors are normalized in the public message field.
An error occurred in the backend.
POST /api/v1/iad/liveness/evaluate HTTP/1.1
Host: 127.0.0.1:6982/
Content-Type: multipart/form-data
Accept: */*
Content-Length: 20
{
"capture": "binary"
}{
"diagnostic": "Live",
"reason": "None",
"probability": 1,
"score": 1,
"sdkDuration": 12,
"queueDuration": 3
}Last updated