List branches
Every model is a Git repository. Branches carry ongoing work; the default
branch is what decisions use when no revision is given. Repository read
access is required.
GET
/v1/models/{workspace}/{model}/branchesAuthorization
Authorizationstringrequired
Send a Modaic bearer token in the Authorization header.
Path Parameters
workspacestringrequired
User or organization workspace slug.
modelstringrequired
Model repository slug. The caller needs the route-specific repository access.
Response
branchesBranch[]required
Each branch has name, headSha, and createdAt. The default branch's
headSha is the value to pass as expectedHeadSha on an update,
sourceCommitSha on an instruction optimization job, or the target of a tag.
Was this page helpful?