> For the complete documentation index, see [llms.txt](https://docs.arcee.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arcee.ai/arcee-orchestra/workflows/api-invocation/workflow-diagram-api.md).

# Workflow Diagram API

**Description:** Returns the workflow diagram in Mermaid format.  This can be used to visualize your workflow using Mermaid.

**Try it out:** [Swagger Reference](https://arcee.portal.swaggerhub.com/orchestra/default/arcee-orchestra-v-1-0-0#/default/workflowDiagram)

### **Request Syntax:**

```
GET /workflows/{workflow_id}/diagram
Authentication: Bearer <Your API key>
```

### **Response Syntax:**

```json
{
    "diagram": ""
}
```

<details>

<summary>Retrieve Diagram Response Example</summary>

{% code overflow="wrap" %}

```json
{
    "diagram": "graph TD\n    model[\"model<br/>Model node\"]\n    slack_integration[\"slack_integration<br/>\"]\n    START((START))\n    END((END))\n    slack_integration --> END\n    START --> model\n    model --> slack_integration\n    style model fill:#bbf,stroke:#333,stroke-width:1px,color:#fff\n    style slack_integration fill:#bbf,stroke:#333,stroke-width:1px,color:#fff\n    style START fill:#9f9,stroke:#333,stroke-width:2px,color:#fff\n    style END fill:#f99,stroke:#333,stroke-width:2px,color:#fff"
}
```

{% endcode %}

</details>

### **Response Syntax Variables**

* **Diagram**: a breakdown of the workflow diagram in Mermaid format
