# Create workflow

```http
POST /projects/{project_reference}/workflows
```

Create a workflow source file in the project source or a preview branch when a new multi-step process must be runnable or schedulable; returns the workflow source document. Requires project.runs.write.

## Parameters

| Name                 | In    | Required | Description                                                |
| -------------------- | ----- | -------- | ---------------------------------------------------------- |
| `project_reference`  | path  | Yes      | Project slug, UUID, or domain that identifies the project. |
| `source_target_kind` | query |          |                                                            |
| `target_branch_id`   | query |          |                                                            |

## Request body

| Field         | Type        | Required | Description                                                |
| ------------- | ----------- | -------- | ---------------------------------------------------------- |
| `id`          | string      | Yes      | Stable workflow identifier used in MCP and project source. |
| `description` | string,null |          | Optional short description of what the workflow does.      |
| `version`     | string,null |          | Optional workflow version string.                          |
| `schedulable` | boolean     |          | Whether the workflow can be triggered by schedulers.       |

## Responses

| Status | Description               |
| ------ | ------------------------- |
| 201    | Created workflow document |
| 400    | Bad request               |
| 401    | Unauthorized              |
| 403    | Forbidden                 |
| 409    | Conflict                  |
