> For the complete documentation index, see [llms.txt](https://docs.caf.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.caf.io/sdk-lite/sdk-lite-english-pt-br/configuracao/backend/result-reference.md).

# Referência de resultado

Esta página descreve a resposta de `GET /v1/faces/liveness/attempts/{attemptId}/await`. Para saber como chamá-lo, veja [Configuração](/sdk-lite/sdk-lite-english-pt-br/configuracao/backend/setup.md). Para respostas de erro, veja [Tratamento de Erros.](/sdk-lite/sdk-lite-english-pt-br/tratamento-de-erros/backend/handling-errors.md)

## Corpo da resposta

```json
{
  "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"
}
```

## Campos

| Campo       | Tipo    | Quando presente                        | Descrição                                                                      |
| ----------- | ------- | -------------------------------------- | ------------------------------------------------------------------------------ |
| `requestId` | String  | Sempre                                 | Identificador desta solicitação. Use-o quando contatar o suporte.              |
| `id`        | String  | Sempre                                 | Identificador da tentativa. Mesmo valor que `attemptId` / `livenessAttemptId`. |
| `sessionId` | String  | Sempre                                 | Sessão de liveness que gerou esta tentativa.                                   |
| `status`    | String  | Sempre                                 | `COMPLETED` ou `FAILED`. Veja [Status](#status).                               |
| `isAlive`   | Boolean | `COMPLETED` somente                    | `true` se a captura for um rosto vivo; `false` se não for.                     |
| `sinais`    | Objeto  | `COMPLETED` somente, quando disponível | Indicadores de qualidade da captura. Veja [Sinais](#signals).                  |
| `imagens`   | Array   | `COMPLETED` somente                    | Imagens da captura em Base64. Veja [Imagens](#images).                         |
| `createdAt` | String  | `COMPLETED` somente                    | Data e hora de criação da tentativa (ISO 8601).                                |

### Status

| Valor       | Significado                                                                                  |
| ----------- | -------------------------------------------------------------------------------------------- |
| `COMPLETED` | A tentativa foi concluída e um veredito de liveness está disponível. Leia `isAlive`.         |
| `FAILED`    | A tentativa não foi concluída com um veredito. `isAlive`, `sinais` e `imagens` são omitidos. |

{% hint style="info" %}
`COMPLETED` com `isAlive: false` é uma verificação concluída: o rosto não é vivo. Não é o mesmo que `FAILED`. Veja [Tratamento de falhas](/sdk-lite/sdk-lite-english-pt-br/tratamento-de-falhas/backend/handling-failures.md).
{% endhint %}

### Imagens

| Campo       | Tipo   | Descrição                                                                   |
| ----------- | ------ | --------------------------------------------------------------------------- |
| `parâmetro` | String | `MAIN` para a imagem principal da captura; `EXTRA` para quadros adicionais. |
| `ordem`     | Número | Sequência do quadro adicional. Presente apenas em `EXTRA` somente imagens.  |
| `base64`    | String | Conteúdo da imagem codificado em Base64.                                    |

`imagens` sempre contém uma `MAIN` imagem, que não possui `ordem`. Pode ser seguida por até 3 `EXTRA` quadros.

### Sinais

Durante a captura, a qualidade da imagem (nitidez, iluminação e posição do rosto) é avaliada, e a captura é verificada quanto a um único rosto consistente. O `sinais` bloco informa essas avaliações:

| Campo                         | Tipo    | Descrição                                                                    |
| ----------------------------- | ------- | ---------------------------------------------------------------------------- |
| `signals.isImageQualityOk`    | Boolean | `true` quando a imagem tem nitidez, iluminação e posição do rosto adequadas. |
| `signals.isFaceConsistencyOk` | Boolean | `true` quando houve um único rosto, o mesmo, durante toda a captura.         |

Quando `sinais` está presente, ambos os campos estão sempre presentes.

{% hint style="info" %}
Os sinais são **informativos**. Eles não mudam `isAlive`. Eles ajudam você a decidir, por exemplo, se deve solicitar uma nova selfie antes de armazenar a imagem como referência para autenticação facial posterior. Veja [Tratamento de falhas](/sdk-lite/sdk-lite-english-pt-br/tratamento-de-falhas/backend/handling-failures.md).
{% endhint %}

`sinais` é omitido — sem `null` valor e sem objeto vazio — quando:

* `status` é `FAILED`.
* A tentativa foi capturada antes de os sinais estarem disponíveis. Tentativas mais antigas não são reprocessadas.

## Exemplos

### Concluída, viva

```json
{
  "requestId": "bb1ce1fd-5d0d-42af-bb0e-16f56b230a20",
  "id": "01K1XDD6W98M5QM9B8EAZZDV49",
  "sessionId": "01K1XDD6W98M5QM9B8EAZZSESS",
  "status": "COMPLETED",
  "isAlive": true,
  "signals": {
    "isImageQualityOk": true,
    "isFaceConsistencyOk": true
  },
  "images": [
    { "type": "MAIN", "base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/..." },
    { "type": "EXTRA", "order": 1, "base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/..." }
  ],
  "createdAt": "2026-09-08T08:30:00.000Z"
}
```

### Concluída, não viva

Mesmo formato que acima, com `"isAlive": false`.

### Não concluiu

```json
{
  "requestId": "bb1ce1fd-5d0d-42af-bb0e-16f56b230a20",
  "id": "01K1XDD6W98M5QM9B8EAZZDV49",
  "sessionId": "01K1XDD6W98M5QM9B8EAZZSESS",
  "status": "FAILED"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.caf.io/sdk-lite/sdk-lite-english-pt-br/configuracao/backend/result-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
