Skip to main content

talonic_get_run

Poll a Spec run started by talonic_run_spec: a normalized status, document-level progress, and — for pipeline runs — per-phase progress. Pass exactly one of run_id or pipeline_id — poll with pipeline_id when run_kind is pipeline, or with run_id when it is run.

When to use

  • You just called talonic_run_spec and need to track progress.
  • You want to know when a run finished, or whether any documents errored.
  • Poll every 5–10 seconds; stop as soon as status is completed or failed.

When not to use

  • Starting a run — use talonic_run_spec.
  • Reading the structured rows once a run is complete — use talonic_get_run_results.

Parameters

ParameterTypeDescription
run_idstringFrom a `run_kind: 'run'` envelope (`/v1/run`). Provide exactly one of `run_id` or `pipeline_id`.
pipeline_idstringFrom a `run_kind: 'pipeline'` envelope (`/v1/pipelines`). Provide exactly one of `run_id` or `pipeline_id`.

Response shape

Fields

ParameterTypeDescription
statusstring`processing`, `completed` or `failed`, normalized across both backends.
raw_statusstring|nullThe backend's own status string, unnormalized.
progress.total_documentsnumber|nullTotal documents in the run.
progress.completed_documentsnumber|nullDocuments finished successfully.
progress.error_documentsnumber|nullDocuments that errored.
progress.phases[]arrayPer-phase progress for pipeline runs — phase id, name, type, and completed/running/error counts.
documents[]arrayPer-document detail, when present.
error_messagestring|nullTop-level error, when `status` is `failed`.

Frequently asked questions

How long does a run take?+
Seconds per document for the extraction stage, plus whatever validation, resolution, assembly or delivery stages the Spec's rail contains; poll every 5–10 seconds and stop on completed or failed.