curl -X POST "https://api.nevia.cloud/v1/projects/01ck8y1dm5qqnf88mytnh4m0h4g/branch" \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: 8f1c2a7e-3b4d-4c5e-9f0a-1b2c3d4e5f60" \
-H "Content-Type: application/json" \
-d '{
"name": "agent-evals-try"
}'{
"project": {
"id": "01ck8y1dm5qqnf88mytnh4m0h4g",
"workspace": "01d4cnjjq40hnnh0nwmkg35nv2h",
"name": "agent-evals",
"created_at": "2026-09-10T12:34:56Z",
"updated_at": "2026-09-10T12:34:56Z"
},
"operations": [
"01d4cnjm89yk0r3xtv80dy0x7by"
]
}Authorization
bearerAuth Send the token in the Authorization: Bearer <token> header. See Authenticate.
In: header
Path Parameters
Project id: 27 lowercase letters and digits.
^[A-Za-z0-9_-]{1,64}$Header Parameters
Required for this non-idempotent request. Clients generate one key per action and preserve it across transport retries. Within the retained window, repeats return the recorded result and different input with the same key is 409. Keys expire 10 minutes after admission, or 120 seconds after success or terminal failure, whichever is earlier. Reusing an expired key can execute new work. The API tracks at most 100,000 requests across replicas. New keys at capacity receive 429 with Retry-After of 600–630 seconds.
1 <= length <= 255Request Body
application/json
Settings for a project branch
Behavior
Each member is branched as POST /v1/computers/{cmp}/branch or POST /v1/databases/{db}/branch would branch it. The source project and its members are untouched, and each branch's parent names its source.
The new project gets a copy of the source's grants, access keys included, as they are at the time of the branch. Without a name it takes the source's name and the next free number, like agent-evals-1.
Branching needs edit access to the project, not a workspace admin. It is the one way a project editor creates a project and copies grants, so a collaborator invited to one project can branch a temporary copy of it.
A branch that would take you past the computer and database limit is refused before anything is created. A member that cannot be branched right now fails with its own error while the others are branched. When every branch is ready the response is 201 with the new project. Otherwise it is 202 with a project.branch operation on the new project, which finishes when the members' own operations do, and ends failed with error.details.members holding each failed member's id and error if any failed.
Response
application/jsonThe new project, every branch ready.