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

# Create Workflow

`POST /preview/workflows/`

## Request body

- WorkflowCreateRequest
  - `workflow` WorkflowCreate, required
    - `folder_id` string, uuid, nullable
    - `flags` WorkflowFlags
      - `is_custom` boolean
      - `is_evaluator` boolean
      - `is_human` boolean
      - `is_chat` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `slug` string, nullable

## Response `200`

Successful Response

- WorkflowResponse
  - `count` integer
  - `workflow` Workflow
    - `folder_id` string, uuid, nullable
    - `flags` WorkflowFlags
      - `is_custom` boolean
      - `is_evaluator` boolean
      - `is_human` boolean
      - `is_chat` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 6 info
  - added the new optional request property `workflow/flags/anyOf[subschema #1: WorkflowFlags]/is_chat`
  - added the new optional request property `workflow/folder_id`
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
  - …2 more
- **2026-01-14** `53da4c9de2b7` — 4 breaking, 10 info
  - request property `workflow/flags/anyOf[subschema #1: WorkflowFlags]/is_custom` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `workflow/flags/anyOf[subschema #1: WorkflowFlags]/is_evaluator` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `workflow/flags/anyOf[subschema #1: WorkflowFlags]/is_human` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `workflow/tags/anyOf[subschema #1]/additionalProperties/` list-of-types was narrowed by removing types `integer, null and number` from media type `application/json`
  - …10 more
- **2025-11-05** `e62506c24377` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/preview/workflows/post.md)

---

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