List commits
Read the history of a branch. Instruction optimization checkpoints, configuration updates, and rollbacks are all commits, so this is how you find the SHA of the version you want to tag, pin, or restore. Repository read access is required.
GET
/v1/models/{workspace}/{model}/commitsAuthorization
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.
Query Parameters
branchstring
Branch to read. Defaults to the default branch.
Response
commitsCommit[]required
Newest first. Each commit has sha, parentShas, message,
authorName, authorEmail, and createdAt. Optimization commits carry the
job's message; configuration updates carry the message sent with
the update, or Update model configuration.
Was this page helpful?