---
title: "Create Branch"
method: POST
path: "/api/v2/branch"
tags: ["Branches"]
---

# Create Branch

`POST /api/v2/branch`

Create a new branch for the organization.

If a branch with the same name already exists, returns the existing branch.

## Request body

- CreateBranchRequest
  - `name` string, required — Branch name. Must be unique within the organization.

## Response `200`

Successful Response

- BranchItem
  - `id` string, uuid4
  - `name` string
  - `user_count` integer, nullable
  - `created_at` string, date-time

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/streampay/apis/stream-app.md) · [All operations](https://skmtc.dev/streampay/apis/stream-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/streampay/stream-app/revisions/515eeea7d260/schema)
