---
title: "Execute Workflow Via Api"
method: POST
path: "/workflow/{workflow_id}/api-execute"
tags: ["Workflow"]
---

# Execute Workflow Via Api

`POST /workflow/{workflow_id}/api-execute`

## Request

- Base URL: `https://api.muapi.ai`
- URL: `https://api.muapi.ai/workflow/{workflow_id}/api-execute`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (client credentials, token URL `https://api.muapi.ai/oauth/token`)

## Path parameters

- `workflow_id` string, required

## Query parameters

- `team_id` integer, nullable

## Headers

- `x-api-key` string
- `x-embed-code` string, nullable
- `x-agent-embed-code` string, nullable
- `x-whitelabel-studio` string, nullable
- `authorization` string, nullable

## Request body

- WorkflowAPIExecuteRequest: Request model for workflow execution via API
  - `inputs` object, required: Map of node IDs to their input parameters
  - `webhook_url` string, nullable: Optional webhook URL to receive completion/error notifications

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/muapi/apis/muapi-api.md) · [All operations](https://skmtc.dev/muapi/apis/muapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/muapi/apis/muapi-api/revisions/e4b7374381e5?raw)
