Skip to content

List models

GET
/models
curl --request GET \
--url https://api.modeldesk.io/models \
--header 'Authorization: Bearer <token>'

List the models the caller may read, with the caller’s own drafts among them beside the items (drafts).

ownerId
string format: uuid
metamodel
string format: uuid

OK

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
metamodel
required

The metamodel the model is written in; its id is the model’s metamodel id.

object
id
required
string format: uuid
name
required
string
fullName
string
description
string
abstract

True when a model can be created on the metamodel only together with an extension that concretizes it.

boolean
kind

Absent on an ordinary information metamodel. DATA_SCHEMA marks one whose models the platform derives for datasets: it is never offered where models are created, imported or picked.

string
Allowed values: DATA_SCHEMA
completionLabel
string
towerName

The display name of the tower this metamodel is the root of. Authored on the root only. Presentation data: it changes no resolution, validation or dependency behavior.

string
towerDescription

One line describing the tower, authored on its root beside towerName.

string
purpose

The metamodel’s task line, what a user makes with a model of it.

string
layerOnly

True when the metamodel exists only for other metamodels to build on, so no one creates or imports a model on it directly. Absent means false.

boolean
contentLanguage

The language tag of the language the metamodel’s standard is written in, in lower case. Authored on a base metamodel only; omitted when the standard declares none.

string
standardVersion

The version of the standard the metamodel implements. A release is named after it, or 1.0.0 when the metamodel declares none.

string
profilesMetamodel

The declared base metamodel that application profiles of this metamodel are built to profile, propagated from a family extension’s binding. Absent on a base metamodel and on any metamodel carrying no family binding.

string format: uuid
builtInElementModelIds
Array<string>
addOn

True when the metamodel is an add-on: a model adds its profiles on top of its own metamodel, so no one creates or imports a model on it directly. Absent means false.

boolean
name
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
owner
required
object
id
required
string format: uuid
type
required

USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.

string
Allowed values: USER ORGANIZATION SYSTEM MACHINE
name

The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.

string
accessMode

Who inside the owning organization may reach a model. Optional on creation and update: a creation that omits it takes the owner organization’s default access mode (falling back to SHARED).

string
Allowed values: SHARED INDIVIDUAL
createdBy
object
id
required
string format: uuid
name
string
createdVia

Present only on a model an agent acting for a person created, which createdBy names: the AI platform the agent ran on and the label of its client, both as the agent’s token named them. No request sets it.

object
platform
required

The platform’s host, such as claude.ai, or loopback for an app on the person’s computer.

string
client
required

The client’s name for itself, such as Claude.

string
drafts

The caller’s own drafts among the listed models, each with how many changes it holds. Another user’s draft is never listed. Left out when the caller holds none, and always left out for a machine principal.

Array<object>

One of the caller’s own drafts, as the model list reports it beside the models.

object
modelId
required

The model the draft belongs to.

string format: uuid
draftId
required

The draft’s ref id, which is also what ?ref= takes on the read routes.

string format: uuid
changeCount
required

How many changes are staged: the length of the draft’s chain from its head down to its baseline, as Draft.changeCount counts it. 0 on a draft nothing has been staged into.

integer
handedOffAt

When the draft was last handed off for review, the at of its Draft.handoff. Absent on a draft never handed off. The summary stays off the list; it is read from the draft.

string format: date-time

Example

{
"items": [
{
"metamodel": {
"kind": "DATA_SCHEMA"
},
"owner": {
"type": "USER"
},
"accessMode": "SHARED"
}
]
}

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}