> ## Documentation Index
> Fetch the complete documentation index at: https://docs.danubeai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Workflow Execution

> Retrieve the result of a workflow execution

## Overview

Retrieves the full result of a workflow execution including the status and output of each step. Use this to check on a previously triggered execution.

**Auth:** Accepts either JWT or API key (`danube-api-key` header). Only the user who triggered the execution can retrieve it.

## Path Parameters

<ParamField path="execution_id" type="string" required>
  The execution UUID returned when the workflow was executed
</ParamField>

## Response

Returns a `WorkflowExecutionResponse` object. See [Execute Workflow](/api-reference/endpoint/execute_workflow) for the full response shape.

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.danubeai.com/v1/workflows/executions/exec_xyz789" \
    -H "danube-api-key: YOUR_API_KEY"
  ```

  ```python Python SDK theme={null}
  from danube import DanubeClient

  with DanubeClient(api_key="dk_...") as client:
      execution = client.workflows.get_execution("exec_xyz789")
      print(f"Status: {execution.status}")
      if execution.error:
          print(f"Error: {execution.error}")
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "id": "exec_xyz789",
    "workflow_id": "wf_abc123",
    "user_id": "user_456",
    "status": "success",
    "inputs": {
      "city": "San Francisco"
    },
    "step_results": [
      {
        "step_number": 1,
        "tool_id": "tool_001",
        "tool_name": "Weather - Get Forecast",
        "status": "success",
        "result": {"forecast": "Sunny, 22C"},
        "error": null,
        "execution_time_ms": 280
      }
    ],
    "error": null,
    "execution_time_ms": 280,
    "started_at": "2026-02-16T12:00:00Z",
    "completed_at": "2026-02-16T12:00:01Z",
    "created_at": "2026-02-16T12:00:00Z"
  }
  ```
</ResponseExample>

## MCP Tool

This endpoint is also available as the `get_workflow_execution` MCP tool:

```python theme={null}
result = await mcp.call_tool("get_workflow_execution", {
    "execution_id": "exec_xyz789"
})
```
