Poll a Spec run
talonic_get_runPoll a running document extraction job for its status and progress, including per-phase details, and detect completion or failure.
Instructions
Poll a Spec run started by talonic_run_spec: normalised status plus document-level progress and, for pipelines, per-phase progress.
USE WHEN: waiting for a run to finish — poll every 5–10 s; stop on completed or failed.
NOT FOR: reading the structured rows (talonic_get_run_results) or starting a run (talonic_run_spec).
ARGS: exactly one of pipeline_id (run_kind 'pipeline') or run_id (run_kind 'run'), from the RunEnvelope.
RETURNS: { run_kind, run_id, pipeline_id, spec_id, status, raw_status, input_count?, progress { total_documents, completed_documents, error_documents, phases?[] }, documents?[], error_message?, created_at, updated_at }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | From a run_kind 'run' envelope (/v1/run). | |
| pipeline_id | No | From a run_kind 'pipeline' envelope (/v1/pipelines). |