GET
/projects/{project_id}/branches/countRetrieve number of branchesRetrieves the total number of branches in the specified project. Supports an optional search parameter to count branches matching a name filter.
Parameters
project_idstringpathrequiredThe Neon project ID
searchstringqueryCount branches matching the `name` in search query
Responses
value
allOf · 1 option
Option 1objectBranchesCountResponse
countinteger · intrequiredTotal number of branches in the project.
{
"count": 0
}objectGeneralError
codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}