Poll a Run
Poll a /v1/run request by id: run status folded with live pipeline progress, per-document completion counts, and the echoed batch_id and metadata tags.
The Poll a Run endpoint, GET /v1/run/:id, reads a /v1/run request by the run_id returned on submission. The response folds the request row together with the compiled pipeline's live progress. The public status vocabulary is three states: processing covers both ingestion/OCR (before a pipeline exists) and the compiled pipeline actually executing, ending at completed or failed.
Once the pipeline exists, pipeline_id is set and a progress object reports per-document counts — how many documents finished, and how many errored. A run reports failed only when every document errored (no usable output); a run where some documents succeeded and some errored completes with the error count visible in progress.error_documents.
The response also echoes documents[] — the same array returned at submission, each entry augmented with a per-document status (processing, completed, or failed) so you can tell which specific inputs are still in flight without waiting for the whole run to finish. documents[] is omitted for runs submitted before this field existed.
/v1/run/:idPath parameters
curl
Response
Response fields
Response (completed)
{
"run_id": "a8716d18-978d-4d19-8ca5-8b3784ca857c",
"spec_id": "1fc7807e-e1aa-4504-b796-5709986e78ed",
"status": "completed",
"pipeline_id": "1a0c681d-ea20-4bb4-8892-01a6d7f834da",
"input_count": 1,
"batch_id": "ERP-2026-07-14-001",
"metadata": { "source_system": "sap", "priority": 1 },
"progress": {
"total_documents": 1,
"completed_documents": 1,
"error_documents": 0
},
"documents": [
{
"document_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"filename": "invoice-0847.pdf",
"size_bytes": 184320,
"source": "file",
"deduplicated": false,
"metadata": { "source_system": "sap", "priority": 1, "cost_center": "AP-14" },
"status": "completed"
}
],
"created_at": "2026-07-14T21:04:11.312Z",
"updated_at": "2026-07-14T21:06:48.977Z"
}Errors
Error responses