ClouisleClouisle

Workflow Execution API

Run workflows, trigger Webhooks, cancel runs, and subscribe to execution streams

Main Endpoints

MethodPathPurpose
POST/api/v1/workflows/{workflow_id}/runRun a published workflow
POST/api/v1/workflows/{workflow_id}/debugDebug with a draft
POST/api/v1/workflows/webhook/{webhook_token}Trigger asynchronously via Webhook
GET/api/v1/workflows/runs/{run_id}/streamSSE execution events
POST/api/v1/workflows/runs/{run_id}/cancelCancel a run
GET/api/v1/workflows/{workflow_id}/runs/mineQuery the current user's runs
GET/api/v1/workflows/{workflow_id}/runs/mine/{run_id}View run details
GET/api/v1/workflows/{workflow_id}/runs/mine/{run_id}/nodesView node execution

Run Request

{"inputs":{"query":"Check the order status"}}

inputs defaults to an empty object. Webhooks must carry an API Key, and the workflow must be published with Webhook enabled. The initial response contains run_id, status, and stream_url.

Run Stream

Connect to stream_url to get events such as node start, output, skipped, complete, and error. After a disconnect, continue from a known sequence number using from_sequence; do not re-run nodes with external side effects to "compensate" for a disconnect.

Publishing and Scope

The run API Key needs workflow:run, and the target workflow must satisfy team and visibility rules. Drafts can only run through the debug endpoint; public embedded pages render results according to the workflow's publishing configuration.

How is this guide?

On this page