cURL
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" }
Create a new branch from an existing branch or main
Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.
Project ID or slug
"my-project"
Branch name
1 - 255
"feature-new-header"
Base branch ID to create from (null for main branch)
Branch created successfully