Skip to main content
POST
/
projects
/
{project_reference}
/
branches
Create Branch
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/branches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "feature-new-header",
  "base_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "base_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "<string>",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "merged_at": "<string>",
  "merged_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

Project ID or slug

Example:

"my-project"

Body

application/json
name
string
required

Branch name

Required string length: 1 - 255
Example:

"feature-new-header"

base_branch_id
string<uuid> | null

Base branch ID to create from (null for main branch)

Response

Branch created successfully

id
string<uuid>
required
name
string
required
project_id
string<uuid>
required
base_branch_id
string<uuid> | null
created_at
string | null
created_by
string<uuid> | null
merged_at
string | null
merged_by
string<uuid> | null