List repository branches
List the branches of a project repository, sorted by name and read from its remote with the git credential that covers it. The remote's list is cached for 15 minutes. Pass ?refresh=true to read the remote again; a list fetched less than 10 seconds ago is returned as it is. Pass ?q= to return only the branches whose name contains that text.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Organization name
^[a-z0-9][a-z0-9-]*[a-z0-9]$2 <= length <= 64Project name
^[a-z0-9][a-z0-9-]*[a-z0-9]$2 <= length <= 64Repository ID
uuidQuery Parameters
If true, read the branches from the remote, not from the cache
Return only branches whose name contains this text, ignoring case
length <= 255Opaque pagination cursor from a previous response
Maximum number of branches to return (1–1000)
int321 <= value <= 1000100Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/orgs/string/projects/string/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches"{ "fetched_at": "string", "items": [ { "name": "string" } ], "pagination": { "has_more": true, "next_cursor": "string", "total_count": 0 }}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}List project repositories GET
List repositories attached to a project. Pass ?default=true to limit the result to the default repo set.
Replace a project repository PUT
Full-replacement update for a project repository. Note: is_default is append-only — use DELETE to remove a repository from the default set.