---
title: "Create Flow"
method: POST
path: "/api/flows/"
tags: ["Flows"]
---

# Create Flow

`POST /api/flows/`

Gracefully creates a new flow from the provided schema. If a flow with the
same name already exists, the existing flow is returned.

## Headers

- `x-prefect-api-version` string

## Request body

- FlowCreate — Data used by the Prefect REST API to create a flow.
  - `name` string, required — The name of the flow
  - `tags` string[] — A list of flow tags

## Response `200`

Successful Response

- Flow — An ORM representation of flow data.
  - `id` string, uuid
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required — The name of the flow
  - `tags` string[] — A list of flow tags

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/prefecthq/apis/untitled-api-2.md) · [All operations](https://skmtc.net/prefecthq/apis/untitled-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prefecthq/untitled-api-2/revisions/29ba6c4f8837/schema)
