Skip to main content
POST
Create a branch
Omni’s MCP server also offers this endpoint as the createOrgBranch tool. The tool checks listOrgBranches for a name collision first, and the ID it returns is the org-wide branch ID getOrgBranch takes, not a per-model branch ID.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Query Parameters

userId
string<uuid>

Organization API key required. The membership ID of the user to act as.

Body

application/json
name
string
required

Branch name, unique among the organization's live branches. Letters, numbers, hyphens, underscores, and forward slashes only.

Minimum string length: 1
Example:

"feature/new-metrics"

description
string

Branch description.

Maximum string length: 1024

Response

The branch was created.

branch
object
required
success
boolean
required

Whether the operation succeeded.