Skip to content
GitmoapAPIBeta
Schema

ListBranchesResponse

Shape

  • itemsarray of RepositoryBranch
    • The RepositoryBranch schema
    • aheadinteger · int320–∞
    • behindinteger · int320–∞
    • branch_nameBranchName (string)
    • commitCommit
      • The Commit schema
      • author_emailEmail (string)
      • author_namestring
      • authored_atstring
      • commit_shaCommitHash (string)
      • committed_atstring
      • committer_emailEmail (string)
      • committer_namestring
      • repository_idRepositoryId (string · uuid)
      • short_shaShortCommitHash (string)
      • titlestring
      • author_avatar_urlstring or nulloptional
      • committer_avatar_urlstring or nulloptional
      • messagestring or nulloptional
      • parent_shasarray of CommitHash (string)optional
      • tagsarray of TagName (string)optional
    • open_merge_requestsarray of BranchMergeRequestRefThe open merge requests proposing this branch — one per target branch at most. A commit to the branch updates each of them.
      • The BranchMergeRequestRef schema
      • iidMergeRequestId (integer · int64)The merge request's number in its repository.
      • target_branchBranchName (string)Where it proposes to merge the branch.
    • protectedbooleanA branch rule protects this branch.
    • repository_idRepositoryId (string · uuid)
    • viewer_can_pushbooleanWhether the caller may push to this branch — the same verdict a git push or a commit written in the browser gets. false for someone not signed in.
    • push_refusalstring or nulloptionalWhy the caller may not push here, in a sentence to show them. Absent when they may.
  • next_tokenstring or nulloptional

Example

Synthesized example
{
"items": [
{
"ahead": 2,
"behind": 3,
"branch_name": "feat/run-header-stream",
"commit": {
"author_email": "mara@acme.example",
"author_name": "Mara Okafor",
"authored_at": "2026-10-14T03:36:17Z",
"commit_sha": "952b34e26907bc62675fa010f666bcaebd7b0a12",
"committed_at": "2026-10-11T12:21:16Z",
"committer_email": "mara@acme.example",
"committer_name": "payments-api",
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"short_sha": "cfc2c70dcb0725ecedda466edcf09cacbc073c7c",
"title": "Label every synthesized example"
},
"open_merge_requests": [],
"protected": false,
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"viewer_can_push": false
}
],
"next_token": "next-token-ea69"
}

Graph

Used inside

No schema contains this one.

Used by

Sent by 0 operations

No operation takes it as a request body.