Skip to main content
POST

Overview

Executes a workflow by running each step sequentially. Each step calls a Danube tool and template variables are resolved with results from previous steps. Returns the full execution result including all step outcomes. Auth: Accepts either JWT or API key (danube-api-key header). Public workflows can be executed by any authenticated user; private workflows require ownership.

Path Parameters

workflow_id
string
required
The workflow UUID to execute

Body Parameters

inputs
object
Input values referenced by {{inputs.field}} templates in the workflow steps

Response

id
string
Execution ID (use to poll status or retrieve results later)
workflow_id
string
The workflow that was executed
status
string
Execution status: pending, running, success, or failed
inputs
object
The inputs that were provided
step_results
array
Results from each step
error
string
Overall error message if the workflow failed
execution_time_ms
integer
Total execution time in milliseconds
started_at
string
ISO 8601 timestamp when execution began
completed_at
string
ISO 8601 timestamp when execution finished

Example

MCP Tool

This endpoint is also available as the execute_workflow MCP tool: