curl -X GET 'https://api.anyformat.ai/v3/runs/069dcc2c-e14c-7606-8000-2ee4fb17b4f9/' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
import time
run_id = "069dcc2c-e14c-7606-8000-2ee4fb17b4f9"
url = f"https://api.anyformat.ai/v3/runs/{run_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
for _ in range(100):
run = requests.get(url, headers=headers).json()
if run["status"] == "processed":
print(run["results"])
break
if run["status"] in ("error", "cancelled"):
print(f"Terminal: {run['status']}")
break
time.sleep(3)
interface RunDetail {
id: string;
workflow_id: string;
workflow_version_id?: string;
document_packet_id: string;
status: 'queued' | 'in_progress' | 'processed' | 'error' | 'cancelled';
created_at: string | null;
updated_at: string | null;
results: Record<string, unknown> | null;
}
const runId = '069dcc2c-e14c-7606-8000-2ee4fb17b4f9';
const response = await fetch(`https://api.anyformat.ai/v3/runs/${runId}/`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
});
if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}
const run: RunDetail = await response.json();
if (run.status === 'processed') {
console.log(run.results);
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": {
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"usage": { "pages": 1, "credits": 25 },
"verification_url": "https://app.anyformat.ai/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/files/069dcc2c-e14c-7606-8000-2ee4fb17b4e3?versionId=FGaV4I2JAA",
"parse": {
"markdown": "<a id=\"p1_b0\"></a>\n\n# INVOICE\n\n<a id=\"p1_b1\"></a>\n\nInvoice #: INV-001 \nIssue date: 2026-02-20\n\n<a id=\"p1_b5\"></a>\n\n<table>...</table>",
"text": "# INVOICE\n\nInvoice #: INV-001 ...",
"parse_confidence": 91,
"layout_confidence": 70,
"blocks": [
{
"id": "p1_b1",
"type": "text",
"page": 1,
"bbox": { "x0": 0.114, "y0": 0.132, "x1": 0.322, "y1": 0.210 },
"parse_confidence": 97,
"layout_confidence": 96,
"content": "Invoice #: INV-001 \nIssue date: 2026-02-20",
"hyperlinks": [],
"rows": null,
"image_base64": null
}
]
},
"classifications": [],
"splits": [],
"extractions": [
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"node_id": "extract_1",
"split_name": null,
"partition": null,
"fields": {
"invoice_number": {
"value": "INV-001",
"value_override": null,
"verification_status": "not_verified",
"confidence": 95,
"evidence": [
{
"text": "Invoice #INV-001",
"page_number": 1,
"bbox": { "x0": 0.61, "y0": 0.08, "x1": 0.88, "y1": 0.11 },
"block_id": "p1_b1"
}
]
}
}
}
],
"edits": [],
"reports": [],
"code_outputs": []
}
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": {
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"verification_url": "https://app.anyformat.ai/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/files/069dcc2c-e14c-7606-8000-2ee4fb17b4e3?versionId=FGaV4I2JAA",
"parse": {
"markdown": "<a id=\"p1_b0\"></a>\n\n# INVOICE\n\n<a id=\"p1_b1\"></a>\n\nInvoice #: ONB-001 \nIssue date: 2026-02-20\n\n<a id=\"p1_b5\"></a>\n\n<table>...</table>",
"text": "# INVOICE\n\nInvoice #: ONB-001 ...",
"parse_confidence": 91,
"layout_confidence": 70,
"blocks": [
{
"id": "p1_b1",
"type": "text",
"page": 1,
"bbox": { "x0": 0.114, "y0": 0.132, "x1": 0.322, "y1": 0.210 },
"parse_confidence": 97,
"layout_confidence": 96,
"content": "Invoice #: ONB-001 \nIssue date: 2026-02-20",
"hyperlinks": [],
"rows": null,
"image_base64": null
}
]
},
"classifications": [],
"splits": [],
"extractions": [],
"edits": [
{
"file_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e3",
"file_name": "onboarding-form.pdf",
"fields": [
{
"form_field_id": "p1_f0",
"label": "Full name",
"kind": "text",
"state": "empty",
"page": 1,
"bbox": { "x0": 0.1, "y0": 0.1, "x1": 0.5, "y1": 0.16 },
"value": "ACME SL",
"confidence": 95
},
{
"form_field_id": "p1_f1",
"label": "Form reference",
"kind": "text",
"state": "prefilled",
"page": 1,
"bbox": { "x0": 0.6, "y0": 0.1, "x1": 0.9, "y1": 0.16 },
"value": null,
"confidence": null
}
],
"unmatched_instructions": [],
"download_url": "https://storage.anyformat.ai/filled/onboarding-form.pdf?X-Amz-Signature=..."
}
],
"reports": [],
"code_outputs": []
}
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "in_progress",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:00:15.000Z",
"results": null
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "error",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": null
}
Runs
Get Run
Fetch a single run flat: lifecycle status plus the results envelope inline
GET
/
v3
/
runs
/
{run_id}
/
curl -X GET 'https://api.anyformat.ai/v3/runs/069dcc2c-e14c-7606-8000-2ee4fb17b4f9/' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
import time
run_id = "069dcc2c-e14c-7606-8000-2ee4fb17b4f9"
url = f"https://api.anyformat.ai/v3/runs/{run_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
for _ in range(100):
run = requests.get(url, headers=headers).json()
if run["status"] == "processed":
print(run["results"])
break
if run["status"] in ("error", "cancelled"):
print(f"Terminal: {run['status']}")
break
time.sleep(3)
interface RunDetail {
id: string;
workflow_id: string;
workflow_version_id?: string;
document_packet_id: string;
status: 'queued' | 'in_progress' | 'processed' | 'error' | 'cancelled';
created_at: string | null;
updated_at: string | null;
results: Record<string, unknown> | null;
}
const runId = '069dcc2c-e14c-7606-8000-2ee4fb17b4f9';
const response = await fetch(`https://api.anyformat.ai/v3/runs/${runId}/`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
});
if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}
const run: RunDetail = await response.json();
if (run.status === 'processed') {
console.log(run.results);
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": {
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"usage": { "pages": 1, "credits": 25 },
"verification_url": "https://app.anyformat.ai/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/files/069dcc2c-e14c-7606-8000-2ee4fb17b4e3?versionId=FGaV4I2JAA",
"parse": {
"markdown": "<a id=\"p1_b0\"></a>\n\n# INVOICE\n\n<a id=\"p1_b1\"></a>\n\nInvoice #: INV-001 \nIssue date: 2026-02-20\n\n<a id=\"p1_b5\"></a>\n\n<table>...</table>",
"text": "# INVOICE\n\nInvoice #: INV-001 ...",
"parse_confidence": 91,
"layout_confidence": 70,
"blocks": [
{
"id": "p1_b1",
"type": "text",
"page": 1,
"bbox": { "x0": 0.114, "y0": 0.132, "x1": 0.322, "y1": 0.210 },
"parse_confidence": 97,
"layout_confidence": 96,
"content": "Invoice #: INV-001 \nIssue date: 2026-02-20",
"hyperlinks": [],
"rows": null,
"image_base64": null
}
]
},
"classifications": [],
"splits": [],
"extractions": [
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"node_id": "extract_1",
"split_name": null,
"partition": null,
"fields": {
"invoice_number": {
"value": "INV-001",
"value_override": null,
"verification_status": "not_verified",
"confidence": 95,
"evidence": [
{
"text": "Invoice #INV-001",
"page_number": 1,
"bbox": { "x0": 0.61, "y0": 0.08, "x1": 0.88, "y1": 0.11 },
"block_id": "p1_b1"
}
]
}
}
}
],
"edits": [],
"reports": [],
"code_outputs": []
}
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": {
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"verification_url": "https://app.anyformat.ai/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/files/069dcc2c-e14c-7606-8000-2ee4fb17b4e3?versionId=FGaV4I2JAA",
"parse": {
"markdown": "<a id=\"p1_b0\"></a>\n\n# INVOICE\n\n<a id=\"p1_b1\"></a>\n\nInvoice #: ONB-001 \nIssue date: 2026-02-20\n\n<a id=\"p1_b5\"></a>\n\n<table>...</table>",
"text": "# INVOICE\n\nInvoice #: ONB-001 ...",
"parse_confidence": 91,
"layout_confidence": 70,
"blocks": [
{
"id": "p1_b1",
"type": "text",
"page": 1,
"bbox": { "x0": 0.114, "y0": 0.132, "x1": 0.322, "y1": 0.210 },
"parse_confidence": 97,
"layout_confidence": 96,
"content": "Invoice #: ONB-001 \nIssue date: 2026-02-20",
"hyperlinks": [],
"rows": null,
"image_base64": null
}
]
},
"classifications": [],
"splits": [],
"extractions": [],
"edits": [
{
"file_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e3",
"file_name": "onboarding-form.pdf",
"fields": [
{
"form_field_id": "p1_f0",
"label": "Full name",
"kind": "text",
"state": "empty",
"page": 1,
"bbox": { "x0": 0.1, "y0": 0.1, "x1": 0.5, "y1": 0.16 },
"value": "ACME SL",
"confidence": 95
},
{
"form_field_id": "p1_f1",
"label": "Form reference",
"kind": "text",
"state": "prefilled",
"page": 1,
"bbox": { "x0": 0.6, "y0": 0.1, "x1": 0.9, "y1": 0.16 },
"value": null,
"confidence": null
}
],
"unmatched_instructions": [],
"download_url": "https://storage.anyformat.ai/filled/onboarding-form.pdf?X-Amz-Signature=..."
}
],
"reports": [],
"code_outputs": []
}
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "in_progress",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:00:15.000Z",
"results": null
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "error",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": null
}
Rate limit tier: general, 600 requests/min. See Rate limits.
Fetches a run by its
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
Filled forms (
A workflow with an Edit node fills the blank form it was given and returns
Reports (
A workflow with a
Each report written adds 25 credits to the run’s Code outputs (
Beta. A workflow with a function-mode
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 returns200 while the run exists. An extraction in flight raises no precondition error.
status | Meaning | results |
|---|---|---|
queued | Waiting for a processing slot | null |
in_progress | Extraction actively running | null |
processed | Terminal. Every node has finished, a report_generator node’s report included | the results envelope |
error | Terminal. The extraction failed | null |
cancelled | Terminal. The extraction was cancelled | null |
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 inextractions[].fields maps a field name to its extracted value:
| Field | Type | Description |
|---|---|---|
value | string | null | The extracted value, always as a string. A field declared integer returns "3", not 3. The data_type governs how the field is extracted and validated, not the JSON type you get back, so parse the string yourself. A document may write a number as 1.026,00. It is null when the extraction found no value. |
value_override | string | null | Human-supplied override of the extracted value, set during verification. It is null when no override exists. To pick the most-trusted value, test explicitly for null, as the reading pattern below does. Never use an or or ?? truthy fallback: a legitimate override of "" is falsy and would be discarded. |
verification_status | string | null | Review state for this datapoint: not_verified by default, human_verified once a reviewer confirmed it, or human_edited once a reviewer corrected it. It is null before review. |
confidence | integer | null | Model confidence, a whole number from 0 to 100. Higher means more certain. It is null when no model produced the value, as with a manual entry. |
evidence | array | Source-text snippets the model used to derive this value. May be empty. |
value_source | string | Smart-lookup fields only: document or lookup, where the value came from. Omitted for other fields. |
lookup_check | string | Smart-lookup fields only: confirmed when the lookup agreed with the document value, conflict when it disagreed and the document value was kept. Omitted when no lookup compared the two. |
consolidation | object | Present only when a long document’s parts gave answers that could not be combined. value is then null. See below. |
evidence entries
| Field | Type | Description |
|---|---|---|
text | string | The exact source-text snippet that supports the extracted value. |
page_number | integer | 1-indexed page where the snippet was found, counted across the packet’s files in upload order. For a packet of one file it is the page of that file. |
file_id | string | Packets of several files only: the file the snippet was found in, the same id that GET /v3/document-packets/{id} lists in files[]. Omitted for a packet of one file, for a value taken from the packet’s metadata, for evidence that names no file, and for evidence that cites a page the packet does not hold. |
file_name | string | The name of that file, as files[].name. It tells files apart for a person; file_id tells apart files with one name. Omitted with file_id. |
file_page | integer | 1-indexed page inside that file. Omitted with file_id. |
bbox | object | Where on the page the snippet was found: x0, y0, x1 and y1, each between 0 and 1 as a fraction of the page’s width or height, measured from the page’s top-left corner, so y grows down the page. x0, y0 is the box’s top-left corner and x1, y1 its bottom-right. It is the box of the snippet itself, of its row for a value read from a table, or of the parse block that holds it when the snippet could not be matched more precisely. Omitted when no box was found. |
block_id | string | The id of the parse block the snippet was read from, one of parse.blocks[].id, or of a block in parse.pages[].blocks with ?parse_format=blocks. It is numbered by the packet page, like the block ids in the parse of the same response, and block ids are stable within one response. A value that cites two blocks has two evidence entries. Do not read a page, an order or a file out of the id: use page_number, file_id and file_page. Omitted for a value taken from the packet’s metadata, for a run made before block ids were kept, and when the snippet’s block is not one the packet’s parse holds, such as a block of a file whose stored parse cannot be read. With ?parse_format=none no parse is read, so the key stays for such a file. |
cell_ids | array | The table cells of block_id the value was read from, each as <block_id>.r<row>c<col>, such as p3_b0.r1c2: the block’s id and a cell_id as its rows name it with ?parse_format=blocks. It names the one cell the value came from when the run knows it, and otherwise every cell the snippet cites, which can be its whole row. The ids are the extraction’s citation and are not checked against the block’s table. bbox is usually the box of the cited row, but can be another row’s when the cited row did not hold the value. Omitted when the snippet cites no cell, when block_id is omitted, and for a run made before cell ids were kept that named no single cell. |
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.
| Field | Type | Description |
|---|---|---|
status | string | Always unresolved. |
candidates | array | One entry per answer: value, value_unit (or null), and evidence (the snippets that part cited, possibly empty). |
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.
| Field | Meaning |
|---|---|
download_url | Presigned link to the filled PDF, valid for 15 minutes from the moment the API built the response. Every read mints a fresh link, so re-request the run rather than storing the URL. It is null when the run stored no filled PDF. |
fields[].value | The value written into the field, or the literal string true or false for a checkbox. It is null when no instruction addressed the field. Every state: "prefilled" field is null, because the node never overwrites one. |
fields[].confidence | A raw, uncalibrated 0-100 match score for pairing an instruction with the field. It grades how surely the instruction addresses the field, not whether the written value is correct, and it is not a probability. |
unmatched_instructions | Instruction fragments, quoted verbatim, that matched no field in this document. |
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.
| Field | Meaning |
|---|---|
node_id | The id of the report_generator node. |
split_id | The split the report was filled for, or null when the node ran outside a split. |
status | pending while the report is generated, then succeeded or failed. A report that is regenerated shows pending again. |
download_url | Presigned link to the Markdown report, valid for 15 minutes from the moment the API built the response. Re-request the run for a fresh link. It is null when the run stored no report. After a regeneration, pending and failed keep the link to the last succeeded report. |
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.
| Field | Meaning |
|---|---|
node_id | The id of the code node. |
split_id | The split the function ran for, or null when the node ran outside a split. |
status | succeeded. A function that fails ends the run in error and a failed run has no results, so the value is always succeeded. |
output | The JSON object the function returned, shaped by the node’s output_schema. null when its stored output is no longer available. |
curl -X GET 'https://api.anyformat.ai/v3/runs/069dcc2c-e14c-7606-8000-2ee4fb17b4f9/' \
-H 'Authorization: Bearer YOUR_API_KEY'
import requests
import time
run_id = "069dcc2c-e14c-7606-8000-2ee4fb17b4f9"
url = f"https://api.anyformat.ai/v3/runs/{run_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
for _ in range(100):
run = requests.get(url, headers=headers).json()
if run["status"] == "processed":
print(run["results"])
break
if run["status"] in ("error", "cancelled"):
print(f"Terminal: {run['status']}")
break
time.sleep(3)
interface RunDetail {
id: string;
workflow_id: string;
workflow_version_id?: string;
document_packet_id: string;
status: 'queued' | 'in_progress' | 'processed' | 'error' | 'cancelled';
created_at: string | null;
updated_at: string | null;
results: Record<string, unknown> | null;
}
const runId = '069dcc2c-e14c-7606-8000-2ee4fb17b4f9';
const response = await fetch(`https://api.anyformat.ai/v3/runs/${runId}/`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' },
});
if (!response.ok) {
throw new Error(`API error: ${response.status}`);
}
const run: RunDetail = await response.json();
if (run.status === 'processed') {
console.log(run.results);
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": {
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"usage": { "pages": 1, "credits": 25 },
"verification_url": "https://app.anyformat.ai/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/files/069dcc2c-e14c-7606-8000-2ee4fb17b4e3?versionId=FGaV4I2JAA",
"parse": {
"markdown": "<a id=\"p1_b0\"></a>\n\n# INVOICE\n\n<a id=\"p1_b1\"></a>\n\nInvoice #: INV-001 \nIssue date: 2026-02-20\n\n<a id=\"p1_b5\"></a>\n\n<table>...</table>",
"text": "# INVOICE\n\nInvoice #: INV-001 ...",
"parse_confidence": 91,
"layout_confidence": 70,
"blocks": [
{
"id": "p1_b1",
"type": "text",
"page": 1,
"bbox": { "x0": 0.114, "y0": 0.132, "x1": 0.322, "y1": 0.210 },
"parse_confidence": 97,
"layout_confidence": 96,
"content": "Invoice #: INV-001 \nIssue date: 2026-02-20",
"hyperlinks": [],
"rows": null,
"image_base64": null
}
]
},
"classifications": [],
"splits": [],
"extractions": [
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"node_id": "extract_1",
"split_name": null,
"partition": null,
"fields": {
"invoice_number": {
"value": "INV-001",
"value_override": null,
"verification_status": "not_verified",
"confidence": 95,
"evidence": [
{
"text": "Invoice #INV-001",
"page_number": 1,
"bbox": { "x0": 0.61, "y0": 0.08, "x1": 0.88, "y1": 0.11 },
"block_id": "p1_b1"
}
]
}
}
}
],
"edits": [],
"reports": [],
"code_outputs": []
}
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "processed",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": {
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"verification_url": "https://app.anyformat.ai/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/files/069dcc2c-e14c-7606-8000-2ee4fb17b4e3?versionId=FGaV4I2JAA",
"parse": {
"markdown": "<a id=\"p1_b0\"></a>\n\n# INVOICE\n\n<a id=\"p1_b1\"></a>\n\nInvoice #: ONB-001 \nIssue date: 2026-02-20\n\n<a id=\"p1_b5\"></a>\n\n<table>...</table>",
"text": "# INVOICE\n\nInvoice #: ONB-001 ...",
"parse_confidence": 91,
"layout_confidence": 70,
"blocks": [
{
"id": "p1_b1",
"type": "text",
"page": 1,
"bbox": { "x0": 0.114, "y0": 0.132, "x1": 0.322, "y1": 0.210 },
"parse_confidence": 97,
"layout_confidence": 96,
"content": "Invoice #: ONB-001 \nIssue date: 2026-02-20",
"hyperlinks": [],
"rows": null,
"image_base64": null
}
]
},
"classifications": [],
"splits": [],
"extractions": [],
"edits": [
{
"file_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e3",
"file_name": "onboarding-form.pdf",
"fields": [
{
"form_field_id": "p1_f0",
"label": "Full name",
"kind": "text",
"state": "empty",
"page": 1,
"bbox": { "x0": 0.1, "y0": 0.1, "x1": 0.5, "y1": 0.16 },
"value": "ACME SL",
"confidence": 95
},
{
"form_field_id": "p1_f1",
"label": "Form reference",
"kind": "text",
"state": "prefilled",
"page": 1,
"bbox": { "x0": 0.6, "y0": 0.1, "x1": 0.9, "y1": 0.16 },
"value": null,
"confidence": null
}
],
"unmatched_instructions": [],
"download_url": "https://storage.anyformat.ai/filled/onboarding-form.pdf?X-Amz-Signature=..."
}
],
"reports": [],
"code_outputs": []
}
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "in_progress",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:00:15.000Z",
"results": null
}
{
"id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"status": "error",
"created_at": "2026-07-01T12:00:00.000Z",
"updated_at": "2026-07-01T12:02:30.000Z",
"results": null
}
Authorizations
Query Parameters
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 Response
Successful Response
Flat single-run read: lifecycle status plus results, inline or by URL.

