---
title: "Get the document text"
method: GET
path: "/documents/{document_id}/text"
tags: ["documents"]
---

# Get the document text

`GET /documents/{document_id}/text`

Return the optimal text for the document; will either be the OCR text, the native text,
the raw text or a translated version.

To ease the data volume from the DB, we lazy load only the relevant text for the document.

**Permission required:** review

## Other responses

- `403` — Permission insufficient

---

[API](https://skmtc.net/contractp/apis/contract-p.md) · [All operations](https://skmtc.net/contractp/apis/contract-p/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contractp/contract-p/versions/8ce53ebd6bd3/schema)
