v1
latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KBBranches
Create a branch
Create a new branch.
Branch project provisioning runs asynchronously, so the newly created branch is returned in a transitional state (typically creating_branch) and only reaches success once the underlying project has been set up. Poll the branch resource until its state becomes success before performing further operations on it.
Requires the Branching feature to be enabled on the account.
Note: Creating a new branch may take several minutes depending on the project size.
post/projects/{project_id}/branches
Path parameters
project_idstring required
Project ID
Headers
X-PhraseApp-OTPstring
Two-Factor-Authentication token (optional)
Request body
Example request
{
"name": "my-branch",
"base": "parent-branch"
}Response
Created
Example response
{
"name": "new-branch",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z",
"merged_at": "2015-01-28T09:52:53Z",
"merged_by": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"created_by": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"state": "success",
"child_branches": [
"feature_2",
"feature_3"
]
}