Paginated List Responses
Endpoints that return multiple items use a paginated wrapper:| Field | Description |
|---|---|
count | Total number of items matching the query, across all pages. |
page | Current page number (1-indexed). |
page_size | Number of items per page. Maximum is 100; requests above are silently capped. |
results | Array of items for the current page. |
File-Collection Results
The shape returned byGET /v2/workflows/{workflow_id}/files/{collection_id}/results/ once processing completes (HTTP 200). While processing is still in progress the endpoint returns 412 Precondition Failed — see Error Handling for the polling pattern.
Top-level fields
| Field | Type | Description |
|---|---|---|
collection_id | string (UUID) | Identifier of the file collection. Same value as the id returned by POST /v2/workflows/{wid}/run/. |
verification_url | string | Link to the AnyFormat dashboard for human review of the results. |
parse | object | null | Output of the parse node. null if the workflow has no parse node. |
extraction | object | null | Deprecated — use extractions instead. Mirrors extractions[0].fields for linear (non-split) workflows; null for parse-only or split workflows. Will be removed in a future major version. |
classifications | array | Per-classifier-node verdicts. Each entry has category, confidence, evidence. Empty when the workflow has no classifier. |
splits | array | Splitter output: category-level geometry with optional partitions. Each entry has name, files[], confidence, partitions[]. Empty when the workflow has no splitter. |
extractions | array | Flat list of extraction datapoints, one entry per (split_name, partition) pair. Linear workflows produce a single untagged entry (split_name=null, partition=null). Empty when no extraction has run yet. |
parse and extraction are always present — they are explicitly null when the corresponding node didn’t produce results. New code should read extractions[] instead; extraction is retained for back-compat but will be removed.
parse object
| Field | Type | Description |
|---|---|---|
markdown | string | null | Document content rendered as structured markdown. Tables become <table> elements; figures become base64-encoded <img> tags; each page is wrapped in <DOCUMENT> / <section> blocks with bounding-box coordinates. |
extraction object — ExtractedField shape
The extraction object is keyed by field name. Each value is an ExtractedField:
| Field | Type | Description |
|---|---|---|
value | varies | null | The extracted value. The runtime type depends on the field’s data_type — string, number for integer/float, ISO-format string for date/datetime, etc. null when no value could be extracted. |
value_override | varies | null | Human-supplied override of the extracted value, if one was set during verification. null when no override exists. To pick the most-trusted value, check explicitly for null — see the reading pattern below. Don’t use or/?? truthy fallback: a legitimate override of 0, False, or "" is falsy and would be silently discarded. |
verification_status | string | null | Verification state for this datapoint. Common values: not_verified (default), verified. null when not yet reviewed. |
confidence | number | Model confidence on a 0–100 scale. Higher means more certain. |
evidence | array | Source-text snippets the model used to derive this value. May be empty. |
evidence entries
| Field | Type | Description |
|---|---|---|
text | string | The exact source-text snippet that supports the extracted value. |
page_number | integer | 1-indexed page number where the snippet was found. |
Reading results — recommended pattern
Run Response
POST /v2/workflows/{wid}/run/ returns this shape on 202 Accepted:
status is the initial run state — the run was accepted and enqueued, not that extraction is complete. Poll the results endpoint or wait for the webhook before reading results.
The id field is the collection_id — pass it as {collection_id} to the results endpoint. Keep this consistent in your client code.
Error Responses
All error responses share a single shape:Identifier Format
All UUIDs in the API are hyphenated UUIDv7 (RFC 4122 form:8-4-4-4-12):
Supported Endpoints
| Endpoint | Returns |
|---|---|
GET /v2/workflows/{workflow_id}/files/{collection_id}/results/ | File-collection results (this page’s shape) |
GET /v2/workflows/ | Paginated list response |
GET /v2/workflows/{workflow_id}/runs/ | Paginated list response |
GET /v2/workflows/{workflow_id}/files/ | Paginated list response |
