---
title: "Create Workflow"
method: POST
path: "/workflow/workflows"
tags: ["workflows"]
---

# Create Workflow

`POST /workflow/workflows`

## 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`
- Auth: HTTP bearer

## Headers

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

## Request body

- WorkflowCreateRequestSchema
  - `name` string, required
  - `description` string, nullable
  - `is_public` boolean

## Response `200`

Successful Response

- WorkflowCreateResponseSchema
  - `id` string, uuid, required
  - `name` string, required
  - `organization_id` string, required
  - `description` string, nullable
  - `is_public` boolean
  - `versions` SimpleWorkflowVersionResponse[], nullable
    - `id` string, required
    - `version` integer, 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
  - `total_runs` integer, nullable
  - `today_runs` integer, nullable
  - `daily_run_counts` integer[], nullable
  - `last_run_date` string, nullable
  - `step_count` integer, nullable
  - `has_trigger` boolean, nullable
  - `trigger_status` string, nullable
  - `labels` object
  - `version` WorkflowVersionSchema, required
    - `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)
