> 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/connect/available-resources/synchronous-services/document-integrity.md).

# Document Integrity

{% hint style="info" %}
**Authentication Requirements:**

* Regular endpoints use `OAuth2` authentication with base URL: `https://api.us.prd.caf.io`
* For enhanced security, some endpoints may also support `mTLS` authentication with base URL: `https://mtls.us.prd.caf.io`
* For information on implementing `mTLS`, access [Using mTLS](/caf-api/connect/authentication/using-mtls.md)
  {% endhint %}

Evaluates each image for quality issues (blur, glare, low resolution), physical damage, tampering, flash, and obstruction, plus a capture completeness check for the transaction, communicated through `reasonCodes`.

* **OCR completeness**: completeness score of the fields extracted by OCR Sync, returned in the `ocrCompletenessScore` field.

Supported file formats: **JPG, JPEG, PNG, BMP, PDF, HEIC**. PDF and HEIC files are converted before processing.

Only signed URLs are accepted. Binary or base64 payloads are not supported. The host of the file URL must be previously approved by the Certta team.

Front and back images are required. This version accepts RG and CNH documents only.

{% openapi src="/files/xPUFeGYSrQ1XtMxVtyTH" path="/" method="post" %}
[document-integrity.yaml](https://3218940882-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/connect/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.
