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

string
required
The workflow UUID to execute

Body Parameters

object
default:{}
Input values referenced by {{inputs.field}} templates in the workflow steps
string
Your own idempotency key for this run. Sending the same value again returns the existing execution instead of starting another.

Response

string
Execution ID (use to poll status or retrieve results later)
string
The workflow that was executed
string
Execution status: pending, running, success, or failed
object
The inputs that were provided
array
Results from each step
string
Overall error message if the workflow failed
integer
Total execution time in milliseconds
string
ISO 8601 timestamp when execution began
string
ISO 8601 timestamp when execution finished
string
For execution_mode: "instructions", the hosted model’s final answer; null for template workflows
string
manual, or schedule for a scheduled run
integer
On the free plan, hosted-AI workflow runs left after this one; null when the cap does not apply

Example

MCP Tool

This endpoint is also available as the execute_workflow MCP tool: