For the complete documentation index, see llms.txt. This page is also available as Markdown.

Result Reference

This page describes the response of GET /v1/faces/liveness/attempts/{attemptId}/await. For how to call it, see Setup. For what to do with each result, see Failure Handling. For error responses, see Error Handling.

Response body

{
  "requestId": "string",
  "id": "string",
  "sessionId": "string",
  "status": "COMPLETED",
  "isAlive": true,
  "signals": {
    "isImageQualityOk": true,
    "isFaceConsistencyOk": true
  },
  "images": [
    { "type": "MAIN", "base64": "string" },
    { "type": "EXTRA", "order": 1, "base64": "string" }
  ],
  "createdAt": "string"
}

Fields

Field
Type
When present
Description

requestId

String

Always

Identifier of this request. Use it when you contact support.

id

String

Always

Attempt identifier. Same value as attemptId / livenessAttemptId.

sessionId

String

Always

Liveness session that produced this attempt.

status

String

Always

COMPLETED or FAILED. See Status.

isAlive

Boolean

COMPLETED only

true if the capture is a live face; false if it is not.

signals

Object

COMPLETED only, when available

Capture quality indicators. See Signals.

images

Array

COMPLETED only

Capture images in Base64. See Images.

createdAt

String

COMPLETED only

Creation date and time of the attempt (ISO 8601).

Status

Value
Meaning

COMPLETED

The attempt finished and a liveness verdict is available. Read isAlive.

FAILED

The attempt did not finish with a verdict. isAlive, signals and images are omitted.

Images

Field
Type
Description

type

String

MAIN for the primary capture image; EXTRA for additional frames.

order

Number

Sequence of the additional frame. Present on EXTRA images only.

base64

String

Image content encoded as Base64.

When a usable image was captured, images contains one MAIN image, which has no order. It may be followed by up to 3 EXTRA frames.

images is empty when no usable image was captured. In that case isAlive is false.

Signals

During the capture, the image quality (sharpness, lighting and face position) is assessed, and the capture is checked for a single, consistent face. The signals block reports these assessments:

Field
Type
Description

signals.isImageQualityOk

Boolean

true when the image has adequate sharpness, lighting and face position.

signals.isFaceConsistencyOk

Boolean

true when there was a single face, the same one, throughout the capture.

When signals is present, both fields are always present. A false value means that the check did not pass, or that it could not be measured.

signals can be missing, for example when status is FAILED. It is then omitted, with no null value and no empty object. Treat a missing block as "no quality information", not as false.

The signals are informative: they do not change isAlive. For how to use them, see Capture quality signals.

Examples

Completed, live

Completed, not live

Same shape as above, with "isAlive": false. When no usable image was captured, images is empty ([]).

Did not finish

Last updated