---
title: "Create a new flow"
method: POST
path: "/api/workers/{workerId}/flows"
tags: ["Flows"]
---

# Create a new flow

`POST /api/workers/{workerId}/flows`

## Path parameters

- `workerId` string, required

## Request body

- object
  - `name` string, required
  - `label` string
  - `code` string

## Response `201`

Flow created

## Other responses

- `400` — Invalid request body
- `401` — Unauthorized

---

[API](https://skmtc.dev/brainbasehq/apis/brainbase-api.md) · [All operations](https://skmtc.dev/brainbasehq/apis/brainbase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brainbasehq/brainbase-api/revisions/0c00485d66a3/schema)
