action contract_p_get_document_text_resource { label: "Get the document text" description: "Return the optimal text for the document; will either be the OCR text, the native text,\nthe raw text or a translated version.\n\nTo ease the data volume from the DB, we lazy load only the relevant text for the document.\n\n**Permission required:** review" provider: contract_p method: GET path: "/documents/{document_id}/text" encoding: json output: { type: "object" additionalProperties: true } }