Skip to content
  • Auto
  • Light
  • Dark

List

List project branches
get/v0/projects/{project}/branches

List project branches

Path Parameters
projectstring
optional
Query Parameters
cursorstring
optional

Pagination cursor from a previous response

limitnumber
optional

Maximum number of items to return, defaults to 10 (maximum: 100)

exclusiveMinimum0
maximum100
Returns
dataarray of object
has_moreboolean
next_cursorstring
optional
curl https://api.stainless.com/v0/projects/$PROJECT/branches \
    -H "Authorization: Bearer $STAINLESS_API_KEY"
200 Example
{
  "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"
}