> 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/caf-api/caf-api-pt-br/conectar/available-resources/synchronous-services/document-integrity.md).

# Integridade documental

{% hint style="info" %}
**Requisitos de autenticação:**

* Os endpoints padrão usam `OAuth2` autenticação com URL base: `https://api.us.prd.caf.io`
* Para maior segurança, alguns endpoints também podem oferecer suporte a `mTLS` autenticação com URL base: `https://mtls.us.prd.caf.io`
* Para obter informações sobre a implementação de `mTLS`, acesse [Usando mTLS](/caf-api/caf-api-pt-br/conectar/authentication/using-mtls.md)
  {% endhint %}

Avalia cada imagem quanto a problemas de qualidade (borrão, reflexo, baixa resolução), dano físico, adulteração, flash e obstrução, além de uma verificação de completude da captura para a transação, comunicada por meio de `reasonCodes`.

* **Completude de OCR**: pontuação de completude dos campos extraídos pelo OCR Sync, retornada no `ocrCompletenessScore` campo.

Formatos de arquivo compatíveis: **JPG, JPEG, PNG, BMP, PDF, HEIC**. Arquivos PDF e HEIC são convertidos antes do processamento.

Somente URLs assinadas são aceitas. Payloads binários ou em base64 não são suportados. O host da URL do arquivo deve ser previamente aprovado pela equipe da Certta.

Imagens da frente e do verso são obrigatórias. Esta versão aceita apenas documentos de RG e CNH.

{% openapi src="/files/21bc71979607d26945d86efb68c6f7b71a3f04df" path="/" method="post" %}
[document-integrity.yaml](https://262277803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbVxCOSyBojfSIE5fcpfH%2Fuploads%2Fgit-blob-f8a8288a256a1a77ec24cd998e50ae6538006480%2Fdocument-integrity.yaml?alt=media)
{% endopenapi %}


---

# 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/caf-api/caf-api-pt-br/conectar/available-resources/synchronous-services/document-integrity.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.
