Skip to content

Get a public model at a release

GET
/public/models/{modelId}
curl --request GET \
--url https://api.modeldesk.io/public/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

The model replayed at its latest released commit, never its head: elements and element index, the published diagrams, and its dependencies, beside the metadata record as it stands at head. A diagram held back from publication is absent from elements and diagrams alike. A dependency that is itself public, or a managed one, travels with the snapshot the model pins; any other is a stub carrying its name. Needs no sign-in. The public contract is checked on every request, including conditional ones, so a 304 is only sent while the model is public.

modelId
required
string format: uuid
If-None-Match
string

An entity tag from an earlier response.

version
string

The snapshot of the model to serve, URL-encoded: the name of one of its releases, or @working (exactly, case-sensitive) for its working version, the head of its main branch, when its owner publishes it. Absent, its default snapshot: the latest release, or the working version for a model without a release that publishes it. A pin that matches nothing the model offers answers the same 404 as a model that is not publicly visible. On the resolve operation it names a snapshot the hit’s model has to offer, while the hit itself is found at the latest release.

The model. Carries Cache-Control: public, max-age=300 (max-age=60 when the snapshot served is the working version) and a strong ETag over what the body holds: the served commit, the head commit for the working version, the model’s and its organization’s names, the head metadata record and which dependencies travel in full. An edit of the record, or a dependency that stops being public, gives a new tag without a new release.

Media typeapplication/json

A public model at the snapshot it is served at, a release or the working version. The resolved metamodel is served apart, by GET /public/models/{modelId}/metamodel.

object
id
required
string format: uuid
name
required
string
organization
required

An organization as the public catalog names it. The slug is its address on the shared catalog host; the hosting and namespaces are the inputs of its address map, from which a page turns an element’s IRI into the address the organization serves it at.

object
id
required
string format: uuid
slug
required
string
name
required
string
hosting
required

Where an organization’s catalog is served: {"shared": true} on the shared catalog host, or {"shared": false, "primaryDomain": ..., "domains": [...]} on the organization’s own domains.

object
shared
required
boolean
primaryDomain

The active domain that carries the organization page; absent when shared.

string
domains

Every active domain, the primary among them; absent when shared.

Array<string>
namespaces
required

The namespaces the organization publishes under, oldest first; empty when it registered none.

Array<object>

A namespace an organization publishes under.

object
iriPrefix
required

An absolute http(s) IRI prefix ending in /, as the administrator registered it.

string
isDefault
required

Whether this namespace’s candidate wins a cross-namespace ambiguity at resolve time.

boolean
served
required

The snapshot a public model read serves.

object
version
required

The release’s name, or @working for the working version: what ?version= names to pin the same snapshot.

string
at
required

When the release was cut, or when the working version’s head commit was made.

string format: date-time
working
required

Whether the snapshot is the working version.

boolean
isDefault
required

Whether the snapshot is the model’s default, the one its plain address serves.

boolean
metadata
required

The descriptive, DCAT-aligned record a model carries about itself, versioned with the model. The closed lists — status, license, themes — take the platform-shipped values: the ADMS status names, licence IRIs, and EU data-theme IRIs. A record that says nothing has every list empty, classification: DATA_MODEL and public: false.

object
id

The stored record’s id; null while the model has none, ignored in a request.

string format: uuid
nullable
descriptions
required

The model-wide description, one text per language.

Array<object>

One language-tagged text; lang is null for a text without a language.

object
lang

A language tag such as nl or en.

string
nullable
value
required
string
keywords
required

Free-text tags; a keyword may repeat a language or carry none.

Array<object>

One language-tagged text; lang is null for a text without a language.

object
lang

A language tag such as nl or en.

string
nullable
value
required
string
themes
required

EU data-theme IRIs from the shipped list.

Array<string>
status
string
nullable
Allowed values: UnderDevelopment Completed Deprecated Withdrawn
license

A licence IRI from the shipped list.

string format: uri
nullable
classification
required
string
Allowed values: DATA_MODEL REFERENCE_DATASET CONTROLLED_VOCABULARY
public
required

Whether the owner wants the model publicly visible. Read at the head of the main branch by the public surfaces, which serve its releases, and its working version when publicWorkingVersion is set too; inert until a version is released or the working version is published, and refused on a model only its creator can see.

boolean
publicWorkingVersion

Whether the owner also publishes the working version, the head of the main branch, beside the releases; for a model without a release it is what the public page shows. Refused while public is false.

boolean
landingPage
string format: uri
nullable
identifier

The resource’s stable external identifier.

string
nullable
canonicalIri

The resource’s stable identity, used as the subject of its DCAT record and the target its IRI dereferences to. Optional even for a public model.

string format: uri
nullable
publisher
object
id

The stored element’s id on a model’s record; null in a request, minted anew on every save. Always null on a dataset’s record, which keeps an agent by its fields alone.

string format: uuid
nullable
name
required
string
iri
string format: uri
nullable
email

The agent’s e-mail address. The anonymous public model read serves it on contact points only, and leaves it out for the publisher, maintainers and contributors.

string
nullable
maintainers
required
Array<object>

A person or organization the metadata names. Which role it plays is the list it is in; the same agent named as publisher and as maintainer is two entries.

object
id

The stored element’s id on a model’s record; null in a request, minted anew on every save. Always null on a dataset’s record, which keeps an agent by its fields alone.

string format: uuid
nullable
name
required
string
iri
string format: uri
nullable
email

The agent’s e-mail address. The anonymous public model read serves it on contact points only, and leaves it out for the publisher, maintainers and contributors.

string
nullable
contactPoints
required
Array<object>

A person or organization the metadata names. Which role it plays is the list it is in; the same agent named as publisher and as maintainer is two entries.

object
id

The stored element’s id on a model’s record; null in a request, minted anew on every save. Always null on a dataset’s record, which keeps an agent by its fields alone.

string format: uuid
nullable
name
required
string
iri
string format: uri
nullable
email

The agent’s e-mail address. The anonymous public model read serves it on contact points only, and leaves it out for the publisher, maintainers and contributors.

string
nullable
contributors
required

The authored contributors — agents the platform cannot see. Contributors known from the model’s history are derived by the catalog, never re-authored here.

Array<object>

A person or organization the metadata names. Which role it plays is the list it is in; the same agent named as publisher and as maintainer is two entries.

object
id

The stored element’s id on a model’s record; null in a request, minted anew on every save. Always null on a dataset’s record, which keeps an agent by its fields alone.

string format: uuid
nullable
name
required
string
iri
string format: uri
nullable
email

The agent’s e-mail address. The anonymous public model read serves it on contact points only, and leaves it out for the publisher, maintainers and contributors.

string
nullable
distributions
required
Array<object>

Where a copy of the resource can be obtained.

object
id

The stored element’s id; null in a request, minted anew on every save.

string format: uuid
nullable
accessUrl
required
string format: uri
format

The distribution’s format, such as a media type.

string
nullable
metamodel
required

The metamodel a public model is written in, as a label.

object
id
required
string format: uuid
name

Omitted when no release of the metamodel resolves.

string
standardVersion

The standard version the model’s release pins; omitted when the pin names none.

string
language

The language tag of the language the standard declares it is written in, as of the standard’s current release, not the one the model pins; omitted when the standard declares none.

string
extensionIds
required
Array<string>
addOnIds

The add-ons the model adds to its metamodel, in order. Omitted when it adds none.

Array<string>
rootElementId
required
string format: uuid
elements
required

The released state’s elements, held-back diagrams and everything they own removed.

object
key
additional properties
object
id
required
string format: uuid
type
required
string
external
boolean
attributes
object
key
additional properties
array
relations
object
key
additional properties
object
key
additional properties
Array<object>
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
extensionLayer

The values the element holds that its type declares no property for; absent when none.

Array

A value an element holds under no binding its type declares, kept so a round trip loses nothing.

One of: discriminator: kind
attribute
object
kind
required
string
Allowed value: attribute
key
string
lexicalValue
string
typeIdentifier
string
qualifiers
object
key
additional properties
string
lineage

Where an element was derived from: the source and rules models, and per property the source values it read.

object
sourceModels
Array<object>
object
modelId
string format: uuid
commitId
string format: uuid
rulesModels
Array<object>
object
modelId
string format: uuid
commitId
string format: uuid
generatedBy
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
properties
Array<object>
object
propertyName
string
propertyType
string
Allowed values: ATTRIBUTE RELATION
sources
Array<object>
object
sourceModelId
string format: uuid
sourceElementId
string format: uuid
sourceProperty
string
propertyType
string
Allowed values: ATTRIBUTE RELATION
role
string
Allowed values: PRIMARY VALUE_READ
usedRule
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
elementIndexEntries

The element index for the served elements and dependency snapshots.

object
key
additional properties

What the server derived about one element: who owns it, where it comes from, and what points at it. Empty members are left out.

object
iri

The element’s authored identity IRI, on a public read: what the published-IRI index holds for the latest release, or what the served release declares when it is an older one. Absent when the element has none or the index lacks it.

string
iriServed

Present exactly when iri is: whether the catalog serves iri as an address of this element. Always true at the latest release; at an older one, true only where the latest release gives this same element the same IRI.

boolean
owners

Every element owning this one, each with the relation it is owned through. Usually one; empty for a root.

Array<object>
object
id
required
string format: uuid
relation
required
string
metamodelId
string format: uuid
dependencyId
string format: uuid
incomingRelations

The elements that point at this one, keyed by relation name.

object
key
additional properties
Array<string>
diagrams
required

The published diagrams, custom diagrams first, then the template views.

Array<object>
object
id
required
string format: uuid
name
string
description
required

What the diagram shows, one text per language and at most one without; empty when it has none. Only a custom diagram carries one.

Array<object>

One language-tagged text; lang is null for a text without a language.

object
lang

A language tag such as nl or en.

string
nullable
value
required
string
contextElementId
string format: uuid
layoutType
string
Allowed values: LAYERED
diagramTypeId
string format: uuid
templateId
string format: uuid
rootElementId
string format: uuid
orientation
string
Allowed values: TOP_TO_BOTTOM BOTTOM_TO_TOP
hierarchyOrientation
string
Allowed values: TOP_TO_BOTTOM BOTTOM_TO_TOP
elementSets
Array<object>
object
id
required
string format: uuid
elementIds
required
Array<string>
filter

Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.

object
>= 1 properties
@path

Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.

One of:
Path expression
string
@root
boolean
@attr
One of:
string
@type
One of:
string
@value
object
type
string
valueMapping
One of:
Constant
options
object
key
additional properties
any
@not
object recursive
@and
Array<object> recursive
@or
Array<object> recursive
@absent

Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.

One of:
Path expression
string
@present

Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.

One of:
Path expression
string
key
additional properties
any
layoutRules
Array
One of: discriminator: @type
LevelRule
object
@type
required
string
Allowed values: LevelRule
id
string format: uuid
element
required
string format: uuid
refElement
required
string format: uuid
type
required
string
Allowed values: SAME_LEVEL BELOW ABOVE
hierarchyGroups
Array<object>
object
id

Absent on a creation whose id the server is to mint, and on an update, whose target is named beside it. Always present on a group that exists.

string format: uuid
root
required
string format: uuid
maxLeft

How many siblings spread to the left of the root. Omitted, none.

integer
0
maxRight

How many siblings spread to the right of the root. Omitted, none.

integer
0
edgeCollapse

Optional per-diagram edge suppression: a reference whose target matches is not drawn as an edge, while both terms stay nodes and the reference reappears as a row naming its target. Distinct from the metamodel-declared collapse on a connection, which is fixed per diagram type and tests the edge element.

object
>= 1 properties
@path

Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.

One of:
Path expression
string
@root
boolean
@attr
One of:
string
@type
One of:
string
@value
object
type
string
valueMapping
One of:
Constant
options
object
key
additional properties
any
@not
object recursive
@and
Array<object> recursive
@or
Array<object> recursive
@absent

Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.

One of:
Path expression
string
@present

Condition under which the entry is offered, as a path expression evaluated against the element whose menu is opening. The frontend is the only evaluator; nothing on the backend reads the path beyond carrying it through compilation and conversion. null for an entry that states no condition, which is offered on every element of its type.

One of:
Path expression
string
key
additional properties
any
published

Whether this diagram leaves the model. Absent means published, so every diagram authored before the field existed is published. A diagram held back (false) is excluded from the content bundle, from the diagram ZIP and from the public catalog, and no generated Markdown references its image. It stays visible and editable in the application either way — publication is not visibility.

boolean
default: true
dependencies
required
Array<object>

One dependency of a public model. A dependency that is itself publicly visible, or a managed one, carries the snapshot the model pins; any other is its name and nothing more.

object
id
required

The dependency element’s id in the model’s state.

string format: uuid
modelId

The dependency’s model; omitted for an external dependency.

string format: uuid
name
required
string
public
required

Whether the dependency’s content travels with the model.

boolean
state

The pinned snapshot, only when public is true. Snapshots nested in it follow the same rule.

object
rootElementId
required
string format: uuid
elements
required
object
key
additional properties
object
id
required
string format: uuid
type
required
string
external
boolean
attributes
object
key
additional properties
array
relations
object
key
additional properties
object
key
additional properties
Array<object>
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
extensionLayer

The values the element holds that its type declares no property for; absent when none.

Array

A value an element holds under no binding its type declares, kept so a round trip loses nothing.

One of: discriminator: kind
attribute
object
kind
required
string
Allowed value: attribute
key
string
lexicalValue
string
typeIdentifier
string
qualifiers
object
key
additional properties
string
lineage

Where an element was derived from: the source and rules models, and per property the source values it read.

object
sourceModels
Array<object>
object
modelId
string format: uuid
commitId
string format: uuid
rulesModels
Array<object>
object
modelId
string format: uuid
commitId
string format: uuid
generatedBy
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
properties
Array<object>
object
propertyName
string
propertyType
string
Allowed values: ATTRIBUTE RELATION
sources
Array<object>
object
sourceModelId
string format: uuid
sourceElementId
string format: uuid
sourceProperty
string
propertyType
string
Allowed values: ATTRIBUTE RELATION
role
string
Allowed values: PRIMARY VALUE_READ
usedRule
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
dependencyModels
object
key
additional properties
object
rootElementId
required
string format: uuid
elements
required
object
key
additional properties
object
id
required
string format: uuid
type
required
string
external
boolean
attributes
object
key
additional properties
array
relations
object
key
additional properties
object
key
additional properties
Array<object>
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
extensionLayer

The values the element holds that its type declares no property for; absent when none.

Array

A value an element holds under no binding its type declares, kept so a round trip loses nothing.

One of: discriminator: kind
attribute
object
kind
required
string
Allowed value: attribute
key
string
lexicalValue
string
typeIdentifier
string
qualifiers
object
key
additional properties
string
lineage

Where an element was derived from: the source and rules models, and per property the source values it read.

object
sourceModels
Array<object>
object
modelId
string format: uuid
commitId
string format: uuid
rulesModels
Array<object>
object
modelId
string format: uuid
commitId
string format: uuid
generatedBy
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
properties
Array<object>
object
propertyName
string
propertyType
string
Allowed values: ATTRIBUTE RELATION
sources
Array<object>
object
sourceModelId
string format: uuid
sourceElementId
string format: uuid
sourceProperty
string
propertyType
string
Allowed values: ATTRIBUTE RELATION
role
string
Allowed values: PRIMARY VALUE_READ
usedRule
object
id
required
string format: uuid
owned
required
boolean
modelId

Owning model of the referenced element when it differs from the containing model (cross-model reference, e.g. a lineage base element). Omitted for same-model references.

string format: uuid
dependencyModels
object recursive
organization

The organization that owns the dependency model, with its hosting and namespaces; absent on a stub and on a managed dependency, which is platform content.

object
id
required
string format: uuid
slug
required
string
name
required
string
hosting
required

Where an organization’s catalog is served: {"shared": true} on the shared catalog host, or {"shared": false, "primaryDomain": ..., "domains": [...]} on the organization’s own domains.

object
shared
required
boolean
primaryDomain

The active domain that carries the organization page; absent when shared.

string
domains

Every active domain, the primary among them; absent when shared.

Array<string>
namespaces
required

The namespaces the organization publishes under, oldest first; empty when it registered none.

Array<object>

A namespace an organization publishes under.

object
iriPrefix
required

An absolute http(s) IRI prefix ending in /, as the administrator registered it.

string
isDefault
required

Whether this namespace’s candidate wins a cross-namespace ambiguity at resolve time.

boolean
pinBehindLatest
required

Whether the owner has released past the pinned commit, so its address shows newer content than the snapshot.

boolean
elementIris

The authored identity IRI of each element of state that has one, by element id; absent on a stub.

object
key
additional properties
string

Example

{
"metadata": {
"status": "UnderDevelopment",
"classification": "DATA_MODEL"
},
"elements": {
"additionalProperty": {
"extensionLayer": [
{
"kind": "attribute"
}
],
"lineage": {
"properties": [
{
"propertyType": "ATTRIBUTE",
"sources": [
{
"propertyType": "ATTRIBUTE",
"role": "PRIMARY"
}
]
}
]
}
}
},
"diagrams": [
{
"layoutType": "LAYERED",
"orientation": "TOP_TO_BOTTOM",
"hierarchyOrientation": "TOP_TO_BOTTOM",
"layoutRules": [
{
"@type": "LevelRule",
"type": "SAME_LEVEL"
}
],
"hierarchyGroups": [
{
"maxLeft": 0,
"maxRight": 0
}
],
"published": true
}
],
"dependencies": [
{
"state": {
"elements": {
"additionalProperty": {
"extensionLayer": [
{
"kind": "attribute"
}
],
"lineage": {
"properties": [
{
"propertyType": "ATTRIBUTE",
"sources": [
{
"propertyType": "ATTRIBUTE",
"role": "PRIMARY"
}
]
}
]
}
}
}
}
}
]
}
ETag
string
Cache-Control
string

The caller’s copy is current and the model is still public.

ETag
string
Cache-Control
string

The model is not publicly visible, or does not exist; the two are indistinguishable.

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"
}
]
}

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"
}
]
}