Skip to main content
GET
Rate limit tier: general, 600 requests/min. See Rate limits. Fetches a run by its run_id. The path is flat: no workflow id, and no /results/ sub-path. The response carries the run’s status and its results envelope together, so reading a completed run costs one round-trip.

Status model

The endpoint always returns 200 while the run exists. An extraction in flight raises no precondition error. workflow_version_id is the version that produced the run, the same value that GET /v3/workflows/{workflow_id}/versions/ lists as version_id. Use it to tie a run to the version or the eval behind it. The key is absent when the version is not known. Poll until status is terminal. A run that ended in error or cancelled stays readable with results: null. The results envelope carries the parse, classifications, splits, extractions, edits, reports and code_outputs sections. Each extractions entry carries its own validations[], and its id, node_id and split_id. usage gives the pages and credits the run was charged. This is the same envelope v2 returned from its /results/ route: only the read path changed. See Runs & results for what each section holds. Parse documents the parse section. Pass ?parse_format=blocks to get it as pages of blocks, each with its content, and no markdown; the default markdown keeps the anchored markdown beside its blocks. Pass ?parse_format=none to leave the parse out: parse is null, so the results no longer grow with the document. Very large extracted results can still come back through results_url. parse.format names the form served. The samples below shorten blocks[] to one block. Field values in extractions[] are strings on the wire. Results too large to carry inline come back as results_url, a presigned URL to the same JSON, with results set to null. Like an edit’s download_url, it is valid for 15 minutes, and every read mints a fresh one. The SDKs download it for you. When results is inline, the response has no results_url key. Pass ?delivery=url to get results_url at any size, so one code path handles every run. Call the API from your server, never from browser code: an API key in a web page is visible to every visitor. A browser cannot download results_url either, because the storage bucket does not accept requests from other websites. Results too large to carry inline come back inline anyway to SDK 1.x, which does not follow results_url, unless it passes delivery="url". When storage fails, the read answers 502 (OBJECT_STORAGE_UNAVAILABLE); when the results change during the read, it answers 409 (CONCURRENT_EDIT); when another read is still preparing the results after 30 seconds, it answers 504 (GATEWAY_TIMEOUT). Retry all three. ?parse_format=blocks on a file parsed before blocks were stored answers 400 (REPARSE_REQUIRED): re-parse the file to read it as blocks. An unknown id returns 404, as does a run belonging to another organization.

Extracted fields

Each entry in extractions[].fields maps a field name to its extracted value:

evidence entries

consolidation

A long document is extracted in parts. When the parts give answers for a field that cannot be combined, the field gets no value, and consolidation lists each answer so you can check the document and enter the right one.

Filled forms (edits[])

A workflow with an Edit node fills the blank form it was given and returns edits[] alongside the other sections. edits[] holds one entry per file the node processed. Each entry lists every form field detected in the document, the value written into it, and a link to the filled PDF. The key is always present, and is [] when the workflow has no edit node.

Reports (reports[])

A workflow with a report_generator node returns reports[] alongside the other sections. reports[] holds the reports of this run only, one entry per split the node ran for. A run you read later keeps its own reports, whatever newer runs of the packet produced. The key is always present, and is [] when the workflow has no report node. Each report written adds 25 credits to the run’s usage.credits; see How credits work. A report that is not written costs nothing. A run reaches processed only when each of its reports has finished. A report that cannot be generated ends the run in error. A report regenerated later in Studio changes status on a processed run.

Code outputs (code_outputs[])

Beta. A workflow with a function-mode code node returns code_outputs[] alongside the other sections: one entry per split the node ran for in this run. The key is always present, and is [] when the workflow has no such node.

Authorizations

Authorization
string
header
required

API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.

Path Parameters

run_id
string
required

Query Parameters

parse_format
enum<string>
default:markdown

The form results.parse takes. markdown: the anchored markdown beside its blocks. blocks: pages of blocks in reading order, each with its content, and no markdown. none: no parse, so results.parse is null and the results stay small at any document size. results.parse.format names the form served.

Available options:
markdown,
blocks,
none
delivery
enum<string>
default:inline

url returns the results as results_url at any size, for a client that wants one code path. With inline, the default, results above 6 MB still arrive as results_url.

Available options:
inline,
url

Response

Successful Response

Flat single-run read: lifecycle status plus results, inline or by URL.

id
string
required

Unique identifier of the run (hyphenated UUID).

Example:

"069dcc2c-e14c-7606-8000-2ee4fb17b4f9"

workflow_id
string
required

The workflow this run executed (hyphenated UUID).

Example:

"0686bb97-8c30-70f0-8000-97669e000eb8"

document_packet_id
string
required

The document packet the run executed on (hyphenated UUID).

Example:

"069dcc2c-e14c-7606-8000-2ee4fb17b4e1"

status
enum<string>
required

Execution status. Non-terminal: queued, in_progress. Terminal: processed (success), error, cancelled.

Available options:
queued,
in_progress,
processed,
error,
cancelled
Example:

"processed"

workflow_version_id
string | null

The version of the workflow that produced the run: a version_id from GET /v3/workflows/{workflow_id}/versions/. The key is absent when the version is not known.

Example:

"FGaV4I2JAA"

created_at
string<date-time> | null

Timestamp when the run was triggered (ISO 8601).

updated_at
string<date-time> | null

Timestamp of the run's last status change (ISO 8601).

results
ResultsResponseV3 · object | null

Extraction results envelope; null until status is processed, and while the results are served as results_url.

results_url
string | null

Presigned URL to the results envelope's JSON, valid for 15 minutes, when the results are not inline: above 6 MB, or with ?delivery=url. results is then null. The key is absent when results is inline.