Result object
The result is one JSON object. Which top-level fields are present depends on the output, tables, bbox, fields and schema options; fields that do not apply are omitted rather than set to null.
{ "id": "job_01JE4K9QW2M3N4P5Q6R7S8T9V0", "status": "completed", "pages": 2, "markdown": "…", "text": "…", "blocks": [ … ], "tables": [ … ], "fields": { … }, "page_results": [ … ], "usage": { … }, "warnings": [ … ]}Top level
Section titled “Top level”| Field | Type | Present when | Description |
|---|---|---|---|
id |
string | always | The job id. Also usable with GET /v1/jobs/{id} |
status |
string | always | Always "completed" on a result |
pages |
integer | always | Number of pages in the result (attachments included for email) |
markdown |
string | output=markdown or json |
Whole document as Markdown. Pages are separated by \n\n---\n\n; tables are pipe tables; PPTX speaker notes appear as > Speaker notes: … |
text |
string | output=text or json |
Plain text, pages separated by blank lines; table cells separated by tabs |
blocks |
Block[] | output=json or bbox=true |
Typed content regions in reading order across all pages |
tables |
Table[] | tables=true (default) |
Every table in the document |
fields |
object | fields=true or schema set |
Extracted key-value fields or schema-shaped object |
page_results |
PageResult[] | always | Per-page engine, confidence and cost |
usage |
object | always | Totals for the request |
warnings |
string[] | always | Human-readable notes; empty when nothing noteworthy happened |
{ "type": "heading", "page": 1, "text": "Invoice 2026-0193", "bbox": [0.071, 0.062, 0.52, 0.097], "level": 1, "confidence": 1.0, "meta": {}}| Field | Type | Description |
|---|---|---|
type |
string | heading, paragraph, list_item, table, figure, caption, header, footer, formula, code, checkbox, key_value, other |
page |
integer | 1-based page number |
text |
string | The block’s text. Empty for table blocks (the content is in tables[]) and figure blocks |
bbox |
number[4] | null | [x0, y0, x1, y1] normalised to 0–1 of the page, origin top-left. Only populated when bbox=true; null when the source has no geometry (DOCX, XLSX, email, text) |
level |
integer | null | Heading level 1–6 for heading blocks |
confidence |
number | null | 0–1. 1.0 for text-layer and Office content; the engine’s estimate for OCR’d pages |
meta |
object | Engine-specific extras. table_index on table blocks points into that page’s tables; bbox_source: "vlm-approx" marks approximate boxes on scanned pages; attachment: "<file name>" on blocks that came from an email attachment |
{ "page": 1, "bbox": [0.071, 0.182, 0.929, 0.33], "n_rows": 4, "n_cols": 3, "rows": [["Item", "Qty", "Amount"], ["Design work", "12 h", "1,440.00"], ["Hosting", "1", "49.00"], ["Total", "", "1,489.00"]], "csv": "Item,Qty,Amount\nDesign work,12 h,\"1,440.00\"\nHosting,1,49.00\nTotal,,\"1,489.00\"", "markdown": "| Item | Qty | Amount |\n|---|---|---|\n| Design work | 12 h | 1,440.00 |\n| Hosting | 1 | 49.00 |\n| Total | | 1,489.00 |"}| Field | Type | Description |
|---|---|---|
page |
integer | Page the table starts on. A table joined across pages keeps its first page |
bbox |
number[4] | null | Normalised box, or null without geometry |
n_rows, n_cols |
integer | Grid dimensions |
rows |
string[][] | Row-major grid of cell text. Spanned cells occupy their top-left position; covered cells are "" |
csv |
string | CSV with quoting for commas, quotes and newlines |
markdown |
string | GitHub-flavoured pipe table, first row as header |
See the Tables guide for detection and cross-page merging.
Fields
Section titled “Fields”With fields=true the object has the generic shape (document_type, title, date, parties, identifiers[], total_amount, currency, key_values[]). With schema=<name> it follows that schema. Details and examples in Key-value fields and schemas.
PageResult
Section titled “PageResult”{ "page": 2, "kind": "scanned", "engine": "deskew-ocr", "confidence": 0.94, "quality_score": 0.81, "language": "en", "duration_ms": 3860, "credits": 1, "low_confidence": false}| Field | Type | Description |
|---|---|---|
page |
integer | 1-based page number |
kind |
string | digital, scanned, sheet, slide, email, text |
engine |
string | text-layer, office, email, text, deskew-ocr, premium |
confidence |
number | null | 0–1 engine confidence; 1.0 for parsed (non-OCR) pages |
quality_score |
number | null | 0–1 image quality (resolution, blur, contrast, skew) for scanned pages; null otherwise |
language |
string | null | Detected language code when the engine reports one |
duration_ms |
integer | Wall time for this page |
credits |
integer | Credits charged for this page, before fields/schema surcharges |
low_confidence |
boolean | true when OCR validation still failed after retry and escalation. Review the page by hand |
Pages that failed entirely are absent from page_results; the job object’s pages.failed counts them.
{ "pages": 48, "credits": 61, "premium_credits": 8, "engines": { "text-layer": 41, "deskew-ocr": 6, "premium": 1 }, "mode": "test"}| Field | Type | Description |
|---|---|---|
pages |
integer | Pages processed |
credits |
integer | Total credits charged, including fields/schema surcharges |
premium_credits |
integer | The part of credits attributable to the premium engine, handwriting, fields and schema |
engines |
object | Page count per engine name |
mode |
string | "test" on results produced with a test key; absent on live results |
Warnings
Section titled “Warnings”Free-text strings. Page-level warnings are prefixed with the page number. Examples you will see:
| Warning | Meaning |
|---|---|
2 table(s) joined across pages |
Cross-page table merge happened |
page 7: first pass flagged: repetition_loop |
OCR output failed validation and the page was retried |
page 7: escalated to premium engine |
The retry still failed and the page went to tier 2 |
page 7: low_confidence: empty_output |
The page is returned but should be reviewed |
page 3: premium engine unavailable (engine_unavailable); used tier-1 engine |
Fallback happened |
only the first 200 frames are processed |
Multi-frame image truncated |
sheet truncated to 20000 rows |
Spreadsheet truncated |
attachment skipped (unsupported): archive.zip |
Email attachment not processed |
premium field extraction unavailable (…); used tier-1 model |
Fields came from the fallback model |
field extraction failed: … |
No fields in the result |