Search Modaic documentation

Find a Modaic guide or API reference

Reference›API›Models

List model files

List files in a model repository. Repository read access is required.

GET/v1/models/{workspace}/{model}/files

Authorization

Authorizationstringrequired

Send a Modaic bearer token in the Authorization header.

Path Parameters

workspacestringrequired
User or organization workspace slug.
modelstringrequired
Model repository slug.

Query Parameters

revisionstring
Commit SHA, branch, or tag. Defaults to the default branch.
pathstring
Optional repository-relative path at which to start.
recursivebooleandefault: false
Include descendants.

Response

filesRepositoryFile[]required

Each entry has path, type (blob, tree, symlink, or submodule), and Git file mode.

Was this page helpful?