A repository's branches, through one of the team's Git connections.
API key access: read.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
team*stringThe team's id.
connection*stringThe Git connection's id.
repo*stringThe repository: its path ("group/project") or URL.
search?stringOnly branches whose name contains this.
branches: each with name, commit, default and protected.
application/jsoncurl -X GET 'https://your-pyo.example.com/api/v1/git/branches?team=string&connection=string&repo=string'{}