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

# Run a Workflow

### Description

This endpoint allows you to run a workflow by providing a deployment ID and optional input parameters.

### Request Body

**Content-Type**: `application/json`

```json theme={null}
{
  "deployment_id": "string",  // The ID of the deployment to run (required)
  "inputs": {  // Optional inputs for the workflow
    "key": "string or number"
  }
}`
```

### Responses

#### 200 OK

```json theme={null}

`{
  "run_id": "string"  // The ID of the run that has been queued
}`
```

#### 401 Invalid or Expired Token

```json theme={null}
`Invalid or expired token`
```

#### 500 Error Creating Run

```json theme={null}

`{
  "error": "string"  // Error message detailing why the run creation failed
}`
```
