Skip to main content
POST
Create a branch

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Path Parameters

agentId
string
required
Required string length: 1 - 128

Body

application/json
name
string
required
Required string length: 1 - 140
description
string
Maximum string length: 4000
fromBranchId
string

The branch to start from. Main when left out.

Required string length: 1 - 128
versionId
string

A version to start from instead of a head.

Required string length: 1 - 128

Response

Created.

data
object
required