Skip to main content
In plain terms: use these calls to steer a run while it is happening: pause, resume, skip a step, send an approval. Every command is checked by any supervisors you run and written to an audit log.
Control endpoints send a command to a live execution or to one of its nodes. Each command is reviewed by any configured supervisors and recorded in the audit log. These endpoints also cover the control bus, the live command path to individual nodes. Start, stop and restart are on the Workflows and Executions pages. All responses use the envelope. An unknown execution, or one of another session, answers 404. A command that a supervisor refuses answers 403 with the reason. sessionId is required on the /api/control/workflows/... call, because workflow ids are only unique within a session. Give executionId too when the session has several live runs of the workflow; without it such a call answers 409, and 404 when the session has no live run of it. Every execution and node control call, except retry, returns data.executionId, the id of the execution it acted on.

Pause and resume a run

POST /api/executions/{executionId}/pause POST /api/executions/{executionId}/resume Pausing applies backpressure to the whole run, so nodes stop taking new work until you resume. The run’s controlState becomes PAUSED, then RESUMED. A run that waits on a sub-workflow only holds its own nodes: the child keeps running. Add ?tree=true to pause or resume the run and every unfinished run it started, at any depth. The run itself goes first and its failure is the answer; a run below that already ended, or refuses, is skipped.

Pause and resume a node

POST /api/executions/{executionId}/nodes/{nodeId}/pause POST /api/executions/{executionId}/nodes/{nodeId}/resume Pauses or resumes one node; the rest of the run keeps going. Errors: 404 if the node does not exist or cannot be paused.

Stop a node

POST /api/executions/{executionId}/nodes/{nodeId}/stop Errors: 404 if the node does not exist or cannot be stopped.

Skip or unskip a node

POST /api/executions/{executionId}/nodes/{nodeId}/skip A skipped node passes its input through unchanged instead of running its plugin. Only processor nodes can be skipped. Errors: 400 if the node is not a processor, 404 if the node does not exist.

Step through a node

POST /api/executions/{executionId}/nodes/{nodeId}/step/enable POST /api/executions/{executionId}/nodes/{nodeId}/step/disable POST /api/executions/{executionId}/nodes/{nodeId}/step Step mode makes a node hold its input so you can watch it one element at a time. Enable it, call step once per element to let exactly one through, and disable it to return to normal flow.

Retry a failed node

POST /api/executions/{executionId}/nodes/{nodeId}/retry Starts a new run from a node that ended FAILURE or TIMED_OUT. The nodes before it replay their recorded output; the node and everything behind it run again. The original run is left as it was. Response data: executionId of the new run. Errors: 404 if the run or node is unknown, 400 if the node did not fail.

Set and clear a breakpoint

POST /api/executions/{executionId}/nodes/{nodeId}/breakpoint DELETE /api/executions/{executionId}/nodes/{nodeId}/breakpoint A breakpoint holds a node before the first element whose field equals a value. Resume the node to continue. DELETE takes no parameters. Errors: 404 if the node does not exist or cannot hold a breakpoint.

Control states

The controlState of an execution status reports the latest operator command. Its values are PAUSED, RESUMED, NODE_PAUSED, NODE_RESUMED, NODE_STEPPED, NODE_STOPPED, NODE_SKIPPED, NODE_UNSKIPPED, STEP_MODE_ENABLED, STEP_MODE_DISABLED and STOPPING. It is separate from the run status and never ends a run by itself.

Send a command to a node

POST /api/control/workflows/{workflowId}/nodes/{nodeId}/command Sends an administrative command to a node through the control bus and returns the node’s answer. The body is a bare JSON object with 1 to 100 entries. Which commands a node understands depends on its plugin. Answers to input requests cannot be sent this way and are refused with 403; use the input requests. Response data: payload, what the node answered.

List control commands

GET /api/control/audit Lists the newest control commands recorded in the execution log, whether applied or refused, with who sent them. Newest first. Response data: an array of entries.

Next steps

Run controls

Pause, resume, step, set breakpoints, skip, stop, restart and retry a live execution through one ordered, audited command path.

Supervisors

Programs that watch every execution and steer it, or veto commands before they run: a rule engine, an AI agent or your own code.

Streams API

Follow a run live over server-sent events: status, logs, results and the server-wide event feed.