List project branches
/v0/projects/{project}/branches
Retrieve a project branch by name.
Path Parameters
project: optional string
Query Parameters
Returns
has_more: boolean
next_cursor: optional string
List project branches
curl https://api.stainless.com/v0/projects/$PROJECT/branches \
-H "Authorization: Bearer $STAINLESS_API_KEY"
{
"data": [
{
"branch": "branch",
"config_commit": {
"repo": {
"branch": "branch",
"name": "name",
"owner": "owner"
},
"sha": "sha"
},
"latest_build_id": "latest_build_id",
"object": "project_branch",
"org": "org",
"project": "project"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}
Returns Examples
{
"data": [
{
"branch": "branch",
"config_commit": {
"repo": {
"branch": "branch",
"name": "name",
"owner": "owner"
},
"sha": "sha"
},
"latest_build_id": "latest_build_id",
"object": "project_branch",
"org": "org",
"project": "project"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}