Skip to main content

Field States & Cell History

Read the state of every field of one run document, and the full value history of a run's cells: each value a cell held, where it came from, and its version.

Two read routes explain how a run arrived at its values. GET /v1/pipelines/{id}/documents/{docId}/field-states returns, for one run document, where each field stands: still being filled, waiting for review, resolved, or delivered, with the review trigger and any correction that is open. docId is the run document id (id in GET /v1/pipelines/{id}/documents), not the document id.

GET /v1/pipelines/{id}/cell-history returns the revision history of the run's cells: every value a cell held, in version order, with the source that set it (read from the document, a reviewer, a rule), its confidence and status. Pass document_ids as a comma list of run document ids to read only those rows; without it you get the whole run, which can be large. For an assembled run, values carried over from another document appear on the group's base document.

Both routes need the read scope (or runs:read), and any member of the workspace may call them. Rows the key's person cannot see are left out. Use them to build an audit view, to show a reviewer why a value changed, or to check that a correction landed.

GET/v1/pipelines/{id}/documents/{docId}/field-states

Response fields (data[])

fieldKeystringThe field.
statusstringWhere the field stands.
currentPhaseId / blockedAtStageId / blockedByFieldstring | nullWhich step the field is at, and what it waits on, when it is blocked.
reviewTrigger / reviewRouting / reviewRequestedAtobject | string | nullWhy and when the field went to review.
resolveAction / resolvedAtstring | nullHow and when review settled it.
deliveredAtstring | nullWhen the value was delivered.
correctionProposalobject | nullA correction proposed for this field, while one is open.
GET/v1/pipelines/{id}/cell-history

Query parameters

document_idsstringComma list of run document ids to narrow the history to.

Entry fields

valueanyThe value the cell held at this version.
sourcestringWhat set it.
confidencenumber | nullConfidence of the value.
versionintegerCell version, ascending.
statusstringCell status at this version.
change / auditRefobject / stringPresent when a rule changed the value, or when a review decision or match set it.
Resolving one field from the API is not available yet; Talonic does it for now. Settle review items with the Field Reviews routes instead.

Frequently asked questions

Which id do I pass as docId?+
The run document id: the id field of a row in GET /v1/pipelines/{id}/documents, or documents[].id from the attach call. The document id itself answers 404.
Why is the cell history so large?+
Without document_ids it covers every cell of the run. Pass the run document ids you show on screen as a comma list to read only those rows.
Can I resolve a field through the API?+
Not one field directly; that is done by Talonic for now. Review items can be settled with the Field Reviews routes.