curl -X POST 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/run/' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: 7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f' \
-d '{"metadata": {"site_name": "Mataro Parc", "start_date": "2026-07-28", "crew": [{"trade": "Electrician", "head_count": 3}]}}'
import os
from anyformat.sdk import Client
client = Client(api_key=os.environ["ANYFORMAT_API_KEY"])
run = client.run_workflow(
"0686bb97-8c30-70f0-8000-97669e000eb8",
{"site_name": "Mataro Parc", "start_date": "2026-07-28", "crew": [{"trade": "Electrician", "head_count": 3}]},
)
result = run.wait()
print(result.reports)
import { Anyformat } from "@anyformat/sdk";
const af = new Anyformat({ apiKey: process.env.ANYFORMAT_API_KEY! });
const run = await af.runWorkflow("0686bb97-8c30-70f0-8000-97669e000eb8", {
site_name: "Mataro Parc",
start_date: "2026-07-28",
crew: [{ trade: "Electrician", head_count: 3 }],
});
const result = await run.wait();
{
"run_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"status": "queued"
}
Upload
Run on Values
Start a run from values alone, for a workflow that begins at an Input node
POST
/
v3
/
workflows
/
{workflow_id}
/
run
/
curl -X POST 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/run/' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: 7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f' \
-d '{"metadata": {"site_name": "Mataro Parc", "start_date": "2026-07-28", "crew": [{"trade": "Electrician", "head_count": 3}]}}'
import os
from anyformat.sdk import Client
client = Client(api_key=os.environ["ANYFORMAT_API_KEY"])
run = client.run_workflow(
"0686bb97-8c30-70f0-8000-97669e000eb8",
{"site_name": "Mataro Parc", "start_date": "2026-07-28", "crew": [{"trade": "Electrician", "head_count": 3}]},
)
result = run.wait()
print(result.reports)
import { Anyformat } from "@anyformat/sdk";
const af = new Anyformat({ apiKey: process.env.ANYFORMAT_API_KEY! });
const run = await af.runWorkflow("0686bb97-8c30-70f0-8000-97669e000eb8", {
site_name: "Mataro Parc",
start_date: "2026-07-28",
crew: [{ trade: "Electrician", head_count: 3 }],
});
const result = await run.wait();
{
"run_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"status": "queued"
}
Rate limit tier: submission, 60 requests/min. See Rate limits.
Starts a run of a workflow that begins at an Input node. The body carries the values in
metadata; no file is sent. The Input node is in alpha and enabled per organization.
The 202 response returns the new run_id. Poll GET /v3/runs/{run_id}/ until status is terminal.
The values become a document packet of their own. They are stored as its metadata, and as its one file, input-<id>.json, so the packet reads like any other. GET /v3/document-packets/{document_packet_id}/ returns both.
Each field takes the value under its result key. A value has to be what its field takes: a string, a number, YYYY-MM-DD for a date, an option name for an enum, a list of option names for a multi-select, a list of objects for a table. A field left out is empty, and a key no field declares is ignored. The full table is on the Input page.
A workflow that starts at a document is refused with 400 and error_code: "INVALID_VALUE", before anything is stored. Send its document to POST /v3/workflows/{workflow_id}/upload/run/ instead.
A value of the wrong type refuses the run with 422 and error_code: "INPUT_VALUES_REFUSED". params.keys names each key and params.expected, at the same position, says what it takes. Nothing runs and nothing is billed.
A Word template that reads an unknown field refuses the run with 422 and error_code: "REPORT_TEMPLATE_UNFILLABLE". params.placeholders names the keys the template reads that the Input node does not declare.
Run a chosen version with workflow_version_id. It takes a version_id from GET /v3/workflows/{workflow_id}/versions/. Without it, the latest version runs.
Retries are safe with Idempotency-Key. Retrying with the same key replays the original packet and run. See Idempotency.
curl -X POST 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/run/' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: 7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f' \
-d '{"metadata": {"site_name": "Mataro Parc", "start_date": "2026-07-28", "crew": [{"trade": "Electrician", "head_count": 3}]}}'
import os
from anyformat.sdk import Client
client = Client(api_key=os.environ["ANYFORMAT_API_KEY"])
run = client.run_workflow(
"0686bb97-8c30-70f0-8000-97669e000eb8",
{"site_name": "Mataro Parc", "start_date": "2026-07-28", "crew": [{"trade": "Electrician", "head_count": 3}]},
)
result = run.wait()
print(result.reports)
import { Anyformat } from "@anyformat/sdk";
const af = new Anyformat({ apiKey: process.env.ANYFORMAT_API_KEY! });
const run = await af.runWorkflow("0686bb97-8c30-70f0-8000-97669e000eb8", {
site_name: "Mataro Parc",
start_date: "2026-07-28",
crew: [{ trade: "Electrician", head_count: 3 }],
});
const result = await run.wait();
{
"run_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4f9",
"document_packet_id": "069dcc2c-e14c-7606-8000-2ee4fb17b4e1",
"workflow_id": "0686bb97-8c30-70f0-8000-97669e000eb8",
"workflow_version_id": "FGaV4I2JAA",
"status": "queued"
}
Authorizations
Headers
Body
application/json
Body of the run trigger for a workflow that reads no document.
The values of the workflow's input node, keyed by each field's result key. A string field takes a string, a number field a number, a date field YYYY-MM-DD, an enum one of its option names, a multi-select a list of option names, and a table a list of objects keyed by column.
Example:
{
"crew": [{ "head_count": 3, "trade": "Electrician" }],
"floors": 2,
"site_name": "Mataro Parc"
}
Response
Successful Response
202 response for the two workflow run triggers: the run, and the version it runs on.

