---
title: "Create Workflow Version"
method: POST
path: "/workflow/workflows/{workflow_id}/versions"
tags: ["workflows"]
---

# Create Workflow Version

`POST /workflow/workflows/{workflow_id}/versions`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/workflow/workflows/{workflow_id}/versions`
- Auth: HTTP bearer

Create a new version for a specific workflow

## Path parameters

- `workflow_id` string, uuid, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- WorkflowVersionCreateSchema
  - `definition` WorkflowInput
  - `version` integer, required
  - `starting_step` string, nullable

## Response `200`

Successful Response

- WorkflowVersionSchema
  - `id` string, uuid, required
  - `workflow_id` string, uuid, required
  - `version` integer, required
  - `organization_id` string, required
  - `is_published` boolean, required
  - `is_live` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, nullable
  - `modified_by` string, nullable
  - `definition` WorkflowOutput, required
  - `starting_step` string, nullable, required

## Other responses

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

---

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