---
title: "Create Branch"
method: POST
path: "/organizations/{org_id}/branches"
tags: ["organizations"]
---

# Create Branch

`POST /organizations/{org_id}/branches`

## Request

- Base URL: `https://api.alpha-grid.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.alpha-grid.ai/organizations/{org_id}/branches`
- Auth: HTTP bearer

Create a new branch in an organization.

## Path parameters

- `org_id` integer, required

## Request body

- BranchCreate
  - `name` string, required
  - `code` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `country` string, nullable
  - `address` string, nullable
  - `contact_email` string, nullable
  - `contact_phone` string, nullable
  - `settings` object
  - `organization_id` integer, required

## Response `201`

Successful Response

- BranchOut
  - `name` string, required
  - `code` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `country` string, nullable
  - `address` string, nullable
  - `contact_email` string, nullable
  - `contact_phone` string, nullable
  - `settings` object
  - `id` integer, required
  - `organization_id` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev.md) - [All operations](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/llms.txt) - [OpenAPI document](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/revisions/13bab0bdd466?raw)
