List commits
Read the history of a branch. Alignment 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/{modelId}/commitsAuthorization
Authorizationstringrequired
Send a Modaic bearer token in the Authorization header.
Parameters
modelIdUUIDrequired
Model repository ID.
branchstring
Branch to read. Defaults to the default branch.
Response
commitsCommit[]required
Newest first. Each commit has sha, parentShas, message,
authorName, authorEmail, and createdAt. Alignment commits carry the
alignment's message; configuration updates carry the message sent with
the update, or Update model configuration.
Was this page helpful?