const workflow = await api.workflows.get(id);
console.log(workflow.data.name);
console.log(workflow.data.steps.map((s) => `${s.id} (${s.type})`));
const run = await workflow.run({ input: { since: "2026-10-01" } });workflow = api.workflows.get(workflow_id)
print(workflow.data["name"])
print([f"{s['id']} ({s['type']})" for s in workflow.data["steps"]])
run = workflow.run(input={"since": "2026-10-01"})Ce que contiennent les données
namestringSon nom.
triggerobject{ type: "manual" | "cron" | "webhook" | "mail", … }.
stepsarrayChaque pas avec id, type, name et config.
edgesarray{ from, to, branch }. __trigger C'est le début.
Lecture avant changement
const workflow = await api.workflows.get(id);
await workflow.update({
steps: workflow.data.steps.map((step) =>
step.id === "write" ? { ...step, config: { ...step.config, model: "gemini-3.1-pro" } } : step),
});workflow = api.workflows.get(workflow_id)
workflow.update(steps=[
{**step, "config": {**step["config"], "model": "gemini-3.1-pro"}} if step["id"] == "write" else step
for step in workflow.data["steps"]
])update() valide à nouveau toute la définition, donc envoyer les pas en arrière changés est la forme sûre — il n'y a pas de patch d'une seule étape.
Erreurs
Un identifiant inconnu répond 404. Un workflow appartient à son compte et rien d'autre ne peut l'atteindre.