Run workflow
run_workflowTrigger a workflow immediately to execute its steps, then get the terminal result or a running status to poll for completion.
Instructions
Run a workflow now — a real execution with real side effects, billed like any run (a flat per-execution fee plus model usage). Waits briefly and returns the execution: terminal if it finished, else status "running" to poll with get_workflow_execution. The workflow must already have steps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | The workflow's UUID (from list_workflows or create_workflow). | |
| trigger_payload | No | Optional sample input to hand the trigger (useful for a webhook workflow: run it with a sample body). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| error | No | Arbitrary JSON owned by the producing engine. | |
| fault | Yes | Why a non-succeeded execution ended. User means the workflow's own steps or limits. A platform fault is never billed. This field is null when the execution succeeded. | |
| steps | No | Arbitrary JSON owned by the producing engine. | |
| billed | Yes | The billing flag. True only for a user-fault succeeded, failed, or timed-out execution. | |
| status | Yes | ||
| credits | Yes | ||
| ended_at | Yes | ||
| created_at | Yes | ||
| started_at | Yes | ||
| step_stats | No | Arbitrary JSON owned by the producing engine. | |
| duration_ms | Yes | ||
| workflow_id | Yes | ||
| trigger_source | Yes |