Skip to content

Automation (Flow)

Flows and runs

Build flows in the dashboard. Over the API you can list them, start a run by hand and follow runs. Scoped keys need the flow scope. The SDK has no typed Flow methods yet; use the raw ecod.request(), which keeps auth and retries.

GET/v1/api/product/flow/workflows

List your flows.

POST/v1/api/product/flow/workflows/:id/run

Start a run now. Drafts can be test-run; archived flows return 409.

GET/v1/api/product/flow/runs

List recent runs.

GET/v1/api/product/flow/runs/:runId

One run with its step status.

GET/v1/api/product/flow/runs/:runId/logs

Step-by-step log for debugging.

const { data: flows } = await ecod.request("GET", "/product/flow/workflows");
const { data: run } = await ecod.request("GET", `/product/flow/runs/${runId}`);