Retrieve processing results for a file, or poll for processing status
Retrieve processing results for a file collection. Returns results from all configured workflow nodes (parse, extraction, classification, etc.) in a flat dictionary keyed by node category.Documentation Index
Fetch the complete documentation index at: https://docs.anyformat.ai/llms.txt
Use this file to discover all available pages before exploring further.
collection_id in the URL is the id returned by POST /v2/workflows/{workflow_id}/files/ or POST /v2/workflows/{workflow_id}/run/.error_code| HTTP | error_code | Meaning | Retry the GET? |
|---|---|---|---|
| 200 | — | Results available | — |
| 412 | PRECONDITION_FAILED | Still processing (pending, queued, in_progress) | Yes, with backoff |
| 422 | EXTRACTION_FAILED | Job did not complete successfully | No — polling will not change the state. Possible next steps: review the document, retry the upload, or open the collection in the AnyFormat dashboard. |
| 422 | EXTRACTION_CANCELLED | Job was cancelled | No. Possible next steps: review the document, retry the upload, or open the collection in the AnyFormat dashboard. |
extraction and parse keys are always present in the success response — they are explicitly null when the corresponding node didn’t run. See Response Formats for the canonical shape with field-by-field documentation.API key issued from app.anyformat.ai/settings. Send as Authorization: Bearer <key>.
Successful Response
Canonical response shape for the file-collection results endpoint.
Returned with HTTP 200 once processing completes. Returns 412 while processing is in progress; poll until 200, or use webhooks.
The file collection's UUID. Same value as the id returned by POST /v2/workflows/{wid}/run/.
Link to the AnyFormat dashboard for human review of this collection's results. null if the dashboard URL cannot be constructed (e.g. no files in the collection, or the deployment has no frontend URL configured).
Parse-node output (rendered markdown). null when the workflow has no parse node. Always present in the response.
Per-classifier-node verdicts. Empty when the workflow has no classifier.
Splitter output: category-level geometry with optional partitions. Empty when the workflow has no splitter.
Flat list of extraction datapoints. Linear workflows produce one entry with split_name=null and partition=null. Split workflows produce one entry per (split, partition). Empty when no extraction has run yet.
Deprecated — use extractions instead. Extracted fields keyed by field name, populated only for linear workflows (single extract node, no splitter). null for split workflows; read extractions[] instead.