Structured OCR File API

 

This API downloads OCR text files that preserve the original document layout and formatting. The Structured OCR maintains document integrity—including table organization and data relationships—enabling significantly more accurate AI analysis and processing.

 

API Request

Request Type: GET

API Endpoint: https://{customer}-api-{environment}.pramata.com/services/data/v1/documents/{pramata_number}/structured_ocr_file

Example: https://demos-api.pramata.com/services/data/v1/documents/29664/structured_ocr_file

 

API Response

HTTP status code 200

Structured OCR text document can be accessed after saving the file with relevant file name.

api structured ocr.png

 

HTTP status code 404

{
    "errors": [
        {
            "status": "404",
            "source": {
                "pointer": "https://demos.pramata.com/api/v1/contracts/10010/truedoc_text_download"
            },
            "title": "Record Not Found",
            "detail": "Structured ocr file not found for contract 10010"
        }
    ]
}