Search Modaic documentation

Find a Modaic guide or API reference

Reference›API›models

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}/commits

Authorization

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?