---
title: "Create Workflow Run"
method: POST
path: "/api/v1/workflow/{workflow_id}/runs"
tags: ["main"]
---

# Create Workflow Run

`POST /api/v1/workflow/{workflow_id}/runs`

Create a new workflow run when the user decides to execute the workflow via chat or voice

Args:
    workflow_id: The ID of the workflow to run
    request: The create workflow run request
    user: The user to create the workflow run for

## Path parameters

- `workflow_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- CreateWorkflowRunRequest
  - `mode` string, required
  - `name` string, required

## Response `200`

Successful Response

- CreateWorkflowRunResponse
  - `id` integer, required
  - `workflow_id` integer, required
  - `name` string, required
  - `mode` string, required
  - `created_at` string, date-time, required
  - `definition_id` integer, required
  - `initial_context` object, nullable

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/dograh/apis/dograh-api.md) · [All operations](https://skmtc.dev/dograh/apis/dograh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dograh/dograh-api/revisions/e7d045c0295a/schema)
