GET
/v1/projects/{projectId}/branchesList branches in a project⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Returns the live Branches of a Project. Supports two mutually exclusive filters: ?gitName= (exact match — at most one row), ?gitNameContains= (case-sensitive substring). Soft-deleted Branches are not returned. Ordered by createdAt ascending.
Parameters
projectIdstringpathrequiredcursornull | stringqueryCursor for pagination
limitnumberqueryLimit for pagination
gitNamestringquerygitNameContainsstringqueryResponses
object
dataarray of objectrequiredShow child attributes
Show array items
createdAtstring · date-timerequiredgitNamestringrequiredidstringrequiredisDefaultbooleanrequiredprojectobjectrequiredThin reference to the parent Project. Member resources are intentionally NOT inlined — list /v1/databases?branchId=<br_xxx> or /v1/apps?branchId=<br_xxx> instead (see API design principles "Flat and Hierarchical Coexistence").
Show child attributes
idstringrequirednamestringrequiredurlstring · urirequiredrolestringrequiredtypestringrequiredupdatedAtstring · date-timerequiredurlstring · urirequiredpaginationobjectrequiredShow child attributes
hasMorebooleanrequirednextCursornull | stringrequired{
"data": [
{
"createdAt": "2026-06-09T00:00:00Z",
"gitName": "string",
"id": "string",
"isDefault": true,
"project": {
"id": "string",
"name": "string",
"url": "https://example.com"
},
"role": "preview",
"type": "branch",
"updatedAt": "2026-06-09T00:00:00Z",
"url": "https://example.com"
}
],
"pagination": {
"hasMore": true,
"nextCursor": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}