Get a public model at a release
const url = 'https://api.modeldesk.io/public/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.modeldesk.io/public/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0The 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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”An entity tag from an earlier response.
Query Parameters
Section titled “Query Parameters”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.
Responses
Section titled “Responses”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.
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
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
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
The active domain that carries the organization page; absent when shared.
Every active domain, the primary among them; absent when shared.
The namespaces the organization publishes under, oldest first; empty when it registered none.
A namespace an organization publishes under.
object
An absolute http(s) IRI prefix ending in /, as the administrator registered it.
Whether this namespace’s candidate wins a cross-namespace ambiguity at resolve time.
The snapshot a public model read serves.
object
The release’s name, or @working for the working version: what ?version= names to pin the same snapshot.
When the release was cut, or when the working version’s head commit was made.
Whether the snapshot is the working version.
Whether the snapshot is the model’s default, the one its plain address serves.
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
The stored record’s id; null while the model has none, ignored in a request.
The model-wide description, one text per language.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
Free-text tags; a keyword may repeat a language or carry none.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
EU data-theme IRIs from the shipped list.
A licence IRI from the shipped list.
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.
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.
The resource’s stable external identifier.
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.
object
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.
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.
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
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.
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.
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
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.
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.
The authored contributors — agents the platform cannot see. Contributors known from the model’s history are derived by the catalog, never re-authored here.
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
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.
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.
Where a copy of the resource can be obtained.
object
The stored element’s id; null in a request, minted anew on every save.
The distribution’s format, such as a media type.
The metamodel a public model is written in, as a label.
object
Omitted when no release of the metamodel resolves.
The standard version the model’s release pins; omitted when the pin names none.
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.
The add-ons the model adds to its metamodel, in order. Omitted when it adds none.
The released state’s elements, held-back diagrams and everything they own removed.
object
object
object
object
object
object
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.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
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.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
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.
object
object
object
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.
The element index for the served elements and dependency snapshots.
object
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
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.
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.
Every element owning this one, each with the relation it is owned through. Usually one; empty for a root.
object
The elements that point at this one, keyed by relation name.
object
The published diagrams, custom diagrams first, then the template views.
object
What the diagram shows, one text per language and at most one without; empty when it has none. Only a custom diagram carries one.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
object
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
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.
object
object
object
object
object
object
object
object
object
object
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.
object
object
object
object
object
object
object
object
object
object
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.
object
object
object
object
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.
object
object
object
object
object
object
object
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.
How many siblings spread to the left of the root. Omitted, none.
How many siblings spread to the right of the root. Omitted, none.
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
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.
object
object
object
object
object
object
object
object
object
object
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.
object
object
object
object
object
object
object
object
object
object
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.
object
object
object
object
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.
object
object
object
object
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.
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
The dependency element’s id in the model’s state.
The dependency’s model; omitted for an external dependency.
Whether the dependency’s content travels with the model.
The pinned snapshot, only when public is true. Snapshots nested in it follow the same rule.
object
object
object
object
object
object
object
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.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
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.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
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.
object
object
object
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.
object
object
object
object
object
object
object
object
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.
The values the element holds that its type declares no property for; absent when none.
A value an element holds under no binding its type declares, kept so a round trip loses nothing.
object
object
object
object
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.
A structure the import holds without an element, kept with its own properties inside the layer of the element that refers to it. A node is held once; any other place that refers to it holds a reference to it instead.
object
The property that links the holding element or the enclosing node to this node; absent on a node no property links to.
The node’s global identity in the format’s own terms; absent on an anonymous node.
A label unique within the model, set only on an anonymous node that is referred to more than once.
Whether this entry only points at the node another entry holds under the same localId.
Whether the node is an ordered list, whose entries are its members in order.
Where an element was derived from: the source and rules models, and per property the source values it read.
object
object
object
object
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.
object
object
object
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.
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
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
The active domain that carries the organization page; absent when shared.
Every active domain, the primary among them; absent when shared.
The namespaces the organization publishes under, oldest first; empty when it registered none.
A namespace an organization publishes under.
object
An absolute http(s) IRI prefix ending in /, as the administrator registered it.
Whether this namespace’s candidate wins a cross-namespace ambiguity at resolve time.
Whether the owner has released past the pinned commit, so its address shows newer content than the snapshot.
The authored identity IRI of each element of state that has one, by element id; absent on a stub.
object
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" } ] } ] } } } } } ]}Headers
Section titled “Headers”The caller’s copy is current and the model is still public.
Headers
Section titled “Headers”The model is not publicly visible, or does not exist; the two are indistinguishable.
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}