api.workflows

list()

api.workflows.list() → Promise<Workflow[]>

Every workflow of the account, each one ready to run, update or destroy.

GET /api/workflowsfreeWorkflow objects
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

const workflows = await api.workflows.list();

for (const workflow of workflows) {
  console.log(workflow.id, workflow.data.name, workflow.data.trigger.type);
}
workflows = api.workflows.list()

for workflow in workflows:
    print(workflow.id, workflow.data["name"], workflow.data["trigger"]["type"])

They are objects, not records

Each one is a Workflow with its methods — so listing and then running one needs no second fetch.

const [digest] = (await api.workflows.list()).filter((w) => w.data.name === "Weekly digest");
const run = await digest.run({ input: {} });
digest = next(w for w in api.workflows.list() if w.data["name"] == "Weekly digest")
run = digest.run(input={})

data holds the definition

name, trigger, steps, edges, and what the platform records about it. Reading data.steps is how an editor loads a workflow.

Runs are not in it

A listing carries definitions. For a workflow's runs, call runs(); for one you already have the identifier of, getRun().