Pipelines

Get a pipeline's structured results (poll-able)

The pipeline run's structured rows, poll-able as JSON — the same governed read (review holdback, demoted-field projection, __ diagnostics filtering, assembly awareness) that previously existed only as the run.completed webhook or a data-product CSV export. The default record shape mirrors the pipeline.capture webhook envelope: document_id, filename, run_id, pipeline_id, record_id, status, completed_at, optional metadata/batch_id, and clean fields. Held (pending_approval) values never leave this surface — fields serializes null for them.

view=composed (the default when the run has an assembly product set) returns one row per assembled group, the same rows the data product and CSV exports serve; view=documents returns one row per pipeline document from the main record set, including a document with no extracted value (empty fields) and a document that failed (status: "error"). A non-assembly run only has the documents view — view=composed degrades to it rather than erroring. An anchor-less composed row (the product record's anchor could not be resolved — a known per_group_jobs identity-stamp gap) serializes document_id/filename/run_id: null, status: "complete", and completed_at: null; such rows are excluded by any document_id, status, since, or until filter and appear only in unbounded reads.

since/until filter on completed_at, which tracks DOCUMENT PROCESSING completion, not value change: a later review promotion or assembly recompose never advances it, and a phase rerun NULLS the completion stamps for every affected document until it re-processes. Poll unbounded (or by document_id) to pick up review outcomes; pending_review_count on the page is the signal that held values are outstanding.

A field backed by a structured subschema is projected to its declared subfield types on this poll — in both the fields map and the ?include=cells cells[].value — matching the run.completed webhook; a number/boolean subfield parse-miss serializes null and an enum/date miss passes through raw (see the ResultsCell/ResultsRecord schemas and the Webhooks event catalog for the full per-type contract). The include=audit trail is the raw history view and is NOT type-projected.

include=cells,provenance,audit (comma-separated) add shape beyond fields. cells adds per-field { value, status, confidence, source, document_id, filename } — source is an opaque-but-stable vocabulary; new values may appear over time. provenance adds a stable projection of the cell's audit trail (kind one of span, assembly_override, auto_adjudication, human, derived, legacy, with an open derived_reason enum); a held cell's projection is kind-only — no displaced/previous values. audit adds the full cell-version trail, bounded to structure_pipeline.results_api.audit_max_records (default 20) records per page — a broader page 400s with audit_include_too_broad. For any field whose LATEST version is held, every version in its audit trail serializes value: null (the hold mechanism copies the value forward, so the prior version is an equal leak).

Pagination is house cursor pagination (pagination.next_cursor, keyed on record_id), never an invented page param. Per-record status folds ~10 internal states to four public values — complete, partial, and error pass through, everything else (queue/phase states, awaiting_ocr, …) folds to processing. This deliberately KEEPS partial, unlike GET /v1/run/{id}'s 3-state documents[] fold, because a partial row's held fields are the reason to keep polling. Poll this envelope's status until completed for a single-request pipeline; an append pipeline never settles at the pipeline level, so append consumers should loop on per-record status/completed_at or poll GET /v1/run/{id}/results instead, whose run-scoped status does settle. Preview pipelines are served. Requires read scope.

get/v1/pipelines/{id}/results

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Query parameters

document_id, string

Comma-separated document UUIDs (1-100). Composed rows match on the anchor document.

run_id, string uuid

Scope to one submission's own documents (implies view=documents): the run_id returned by POST /v1/pipelines, or a /v1/run request id. 404 when the run does not belong to this pipeline/organization; a 200 empty page with scope_note for a legacy /v1/run request that predates per-request document tracking.

since, string date-time

Only records whose completed_at is at or after this ISO timestamp. Records with a null completed_at (still processing, or anchor-less composed rows) are excluded once either bound is set.

until, string date-time

Only records whose completed_at is at or before this ISO timestamp.

status, string

Comma-separated subset of complete, partial, error, processing.

view, 'composed' | 'documents'

Defaults to composed when the run has an assembly product set, else documents. A non-assembly run ignores view=composed.

include, string

Comma-separated subset of cells, provenance, provenance.nested, audit. provenance returns one entry per field (kind, quote, match grade, confidence, path, markdown offsets) — see ResultsProvenance; provenance.nested adds one entry per scalar leaf of a structured (array/object) field, keyed by the escaped dot-path.

limit, integer

Maximum records per page (structure_pipeline.results_api — default 25, max 100).

cursor, string

Opaque pagination cursor from a previous response's pagination.next_cursor, keyed on record_id.

Response

The pipeline's results page.

PipelineResultsResponse required
pipeline_id, string uuid required
spec_id, string uuid required

pipeline.schema_id — the Spec this run compiled from.

status, string required

The pipeline's own lifecycle status. Never settles for an append pipeline that keeps receiving requests.

view, 'composed' | 'documents' required
generated_at, string date-time required
columns, ResultsColumn[] required
data, ResultsRecord[] required
pagination, ResultsPagination required
pending_review_count, integer required

Held cells in the current page's records only.

scope_note, string

Present only for the echo-less legacy run_id zero-state — a 200 empty page, never a guess.

links, object required

Changes

No recorded changes to this operation across all 32 revisions of this API.