Skip to main content
GET
https://sandbox.getcollate.io/api
/
v1
/
mlmodels
GET /v1/mlmodels
from metadata.sdk import configure
from metadata.sdk.entities import MLModels

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# List first page
models = MLModels.list(limit=50)
for m in models.data:
    print(f"{m.fullyQualifiedName} ({m.algorithm})")

# List all with auto-pagination
for m in MLModels.list_all():
    print(f"{m.fullyQualifiedName}")

# Filter by service
models = MLModels.list(
    service="mlflow_svc",
    fields=["owners", "tags", "domains"],
    limit=50
)

for m in models.data:
    print(f"{m.fullyQualifiedName}")
    if m.owners:
        print(f"  Owners: {[o.name for o in m.owners]}")
    if m.tags:
        print(f"  Tags: {[t.tagFQN for t in m.tags]}")
{
  "data": [
    {
      "id": "6b04e1d8-b66d-4f78-ab21-beb5be2cf4f2",
      "name": "customer_segmentation",
      "fullyQualifiedName": "mlflow_svc.customer_segmentation",
      "displayName": "Customer Segmentation Model",
      "algorithm": "KMeans",
      "version": 0.1,
      "updatedAt": 1769982669247,
      "updatedBy": "admin",
      "service": {
        "id": "ca22d46e-81b9-4e48-85b5-0adc44980da9",
        "type": "mlmodelService",
        "name": "mlflow_svc",
        "fullyQualifiedName": "mlflow_svc",
        "deleted": false
      },
      "serviceType": "Mlflow",
      "href": "http://localhost:8585/api/v1/mlmodels/6b04e1d8-b66d-4f78-ab21-beb5be2cf4f2",
      "deleted": false,
      "owners": [],
      "tags": [],
      "followers": [],
      "votes": {
        "upVotes": 0,
        "downVotes": 0
      },
      "domains": []
    }
  ],
  "paging": {
    "after": "...",
    "total": 5
  }
}

List ML Models

List all ML models with optional filtering and pagination.

Query Parameters

service
string
Filter by ML model service fully qualified name.
limit
integer
default:"10"
Maximum number of results to return (max: 1000000).
before
string
Cursor for backward pagination.
after
string
Cursor for forward pagination.
fields
string
Comma-separated list of fields to include: owners, tags, followers, votes, extension, domains, sourceHash. See Supported Fields below.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
GET /v1/mlmodels
from metadata.sdk import configure
from metadata.sdk.entities import MLModels

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# List first page
models = MLModels.list(limit=50)
for m in models.data:
    print(f"{m.fullyQualifiedName} ({m.algorithm})")

# List all with auto-pagination
for m in MLModels.list_all():
    print(f"{m.fullyQualifiedName}")

# Filter by service
models = MLModels.list(
    service="mlflow_svc",
    fields=["owners", "tags", "domains"],
    limit=50
)

for m in models.data:
    print(f"{m.fullyQualifiedName}")
    if m.owners:
        print(f"  Owners: {[o.name for o in m.owners]}")
    if m.tags:
        print(f"  Tags: {[t.tagFQN for t in m.tags]}")
{
  "data": [
    {
      "id": "6b04e1d8-b66d-4f78-ab21-beb5be2cf4f2",
      "name": "customer_segmentation",
      "fullyQualifiedName": "mlflow_svc.customer_segmentation",
      "displayName": "Customer Segmentation Model",
      "algorithm": "KMeans",
      "version": 0.1,
      "updatedAt": 1769982669247,
      "updatedBy": "admin",
      "service": {
        "id": "ca22d46e-81b9-4e48-85b5-0adc44980da9",
        "type": "mlmodelService",
        "name": "mlflow_svc",
        "fullyQualifiedName": "mlflow_svc",
        "deleted": false
      },
      "serviceType": "Mlflow",
      "href": "http://localhost:8585/api/v1/mlmodels/6b04e1d8-b66d-4f78-ab21-beb5be2cf4f2",
      "deleted": false,
      "owners": [],
      "tags": [],
      "followers": [],
      "votes": {
        "upVotes": 0,
        "downVotes": 0
      },
      "domains": []
    }
  ],
  "paging": {
    "after": "...",
    "total": 5
  }
}

Returns

Returns a paginated list of ML model objects. By default, only basic fields are included. Use the fields parameter to request additional data.

Response

data
array
Array of ML model objects.
paging
object
Pagination information.

Supported Fields

The following fields can be requested via the fields query parameter:
FieldDescription
ownersOwner references (users and teams)
tagsClassification tags
followersUsers following the ML model
votesUser votes and ratings
extensionCustom property values
domainsDomain assignments for governance
sourceHashHash for change detection

Error Handling

CodeError TypeDescription
401UNAUTHORIZEDInvalid or missing authentication token
403FORBIDDENUser lacks permission to list ML models