Metadata API
The metadata branch (/metadata/{tenant}) serves the resolved presentation metadata for a tenant — the dashboards, layouts, and per-class descriptions that tell a client how to render objects. Unlike the data branch it returns shape and configuration, not object values.
Classes are named by their plural REST names, as everywhere in the API. Where an endpoint takes several classes (?classes=clients,companies), they are the classes of one object — the combination listed in its _classes; the object's _links._metadata, _links._relatedDataObject and _links._form hold these URLs ready-made.
| Method | Path | Returns |
|---|---|---|
GET | navigationPane | The navigation layout. |
GET | dashboard | The general dashboard. ?name= selects a named dashboard. |
GET | dashboard/{classes} | The class dashboard of one class (plural REST name). |
GET | dataObject?classes= | The object dashboard for an object with these classes. |
GET | relatedDataObject?classes= | The compact panel shown for such an object as a related item. |
GET | form?classes= | The form for such an object. ?newClass= is the class of an object being created, ?referenceClass= the class of the object it is created under, ?mode= CREATE or MODIFY. |
GET | classes | The tenant's classes; ?kind= limits them to one kind. |
GET | classes/{pluralName} | The merged definition of one class: fields and relations, including inherited ones and related lists, with descriptions. ?language= adds labels. |
GET | lists | The standard lists, with translated item labels. |
GET | modules | The activated modules; ?available=true for the modules that can be activated. |
POST | modules | Activate a module. |
GET | migrationDefinition | The migration definition (beta). |
The dashboard endpoints accept ?language= (e.g. nl) for the labels, and ?name= for a named layout variant.
The data model's status, a reload and the upgrade download are model maintenance, under the Admin API.
Classes
GET /metadata/{tenant}/classes?kind=BASIC
[
{
"name": "company",
"pluralName": "companies",
"kind": "BASIC",
"inherits": "entities",
"fields": [
{ "name": "registrationNumber", "dataType": "TEXT", "required": false }
],
"relations": [
{ "name": "country", "multiple": false, "required": false }
]
}
]
| Property | Description |
|---|---|
name, pluralName | The class's singular and plural REST names. |
kind | BASIC, ABSTRACT, EXTENSION or CONFIG. |
inherits | Plural REST name of the class it inherits from. |
fields | The class's own enabled fields, with their data type. |
relations | The class's own relations, by REST name. |
Inherited fields and relations are listed on the class that declares them. For one class with everything merged, use the class definition.
Class definition
GET /metadata/{tenant}/classes/{pluralName}
Returns the merged definition of one BASIC or ABSTRACT class as a flat list of fields and relations, including those it inherits. An unknown name, or a class without objects (CONFIG, EXTENSION), is a 404. Use it to discover which fields an object has, what they mean, which are computed, and which related lists exist.
?language= (e.g. nl) adds a label to the classes, fields and relations, and to the list items, from the translations of that language. Without it there are no labels. The description is always English, and absent when the model gives none.
{
"name": "dossier",
"pluralName": "dossiers",
"kind": "BASIC",
"classes": [
{ "name": "dossiers", "description": "A case file that groups documents, notes and parties.", "label": "Dossiers" },
{ "name": "items", "description": "Root of the class tree: everything with a name." }
],
"optionalClasses": [
{ "name": "clients", "description": "Role of a party that has dossiers with us." }
],
"fields": [
{ "name": "title", "dataType": "TEXT", "required": true, "multiple": false, "declaringClass": "dossiers", "label": "Titel" },
{ "name": "status", "dataType": "LIST", "required": false, "multiple": false, "list": "dossierStatus", "declaringClass": "dossiers", "description": "Where the dossier is in its handling. Set by the user; CLOSED dossiers are read-only." },
{ "name": "createdAt", "dataType": "DATETIME", "required": false, "multiple": false, "declaringClass": "items", "computed": "WHEN_MISSING" }
],
"relations": [
{ "name": "client", "class": "companies", "multiple": false, "required": false, "declaringClass": "dossiers", "direction": "OUTGOING", "description": "The company the dossier is handled for." },
{ "name": "memoes", "class": "memoes", "multiple": true, "required": false, "declaringClass": "memoes", "direction": "INCOMING" }
]
}
| Property | Description |
|---|---|
classes | The classes every object of this class has: the class itself and its ancestors. Each is an object with the plural REST name, an optional description and, with ?language=, a label. |
optionalClasses | The classes an object can carry as well, such as roles, in the same shape as classes. A company is not automatically every role. Empty for an ABSTRACT class. |
fields | The enabled, visible fields of classes and optionalClasses. Disabled and hidden fields are left out. |
relations | The relations of classes and optionalClasses, in both directions. |
lists | The standard lists the fields use, with their items. Each item has its key, an optional description and, with ?language=, a label. |
Each entry in fields:
| Property | Description |
|---|---|
name | The field name. |
dataType | The data type. |
required, multiple | Whether a value is required, and whether the field holds several values. |
list | The name of the standard list a LIST field uses, as lists publishes it. Absent otherwise. |
declaringClass | The class that introduced the field. |
description | What the field means, from the most specific declaration with a description: a subclass or an extension can override it. Absent when none declares one. |
label | The field's translated label. Only with ?language=. |
computed | Absent for a regular field. ALWAYS: a formula calculates the value, so don't write it. WHEN_MISSING: a formula fills it only when no value is given, so it is still writable (for example createdAt). The formula text itself is not published. |
Each entry in relations:
| Property | Description |
|---|---|
name | The relation's REST name. |
class | The plural REST name of the target class. |
multiple, required | Whether the relation holds several objects, and whether it is required. |
declaringClass | The class the relation is declared on. |
description | What the relation means. The same text on both sides of the relation. Absent when the model gives none. |
label | The relation's translated label. Only with ?language=. |
direction | OUTGOING: the object holds the reference. INCOMING: declared on the other side, so it is a related list of the objects that refer to this one. |
An INCOMING relation is named by its plural, for example memoes on a dossier. Its class is the class of the objects in that list, which you fetch as a related list, for example GET /data/{tenant}/dossiers/{id}/memoes.
For an ABSTRACT class, classes holds the class and its ancestors and optionalClasses is empty. The fields and relations are the own and inherited ones, which is enough to filter on the abstract class.
required and computed describe what every object of the class has, so they come from classes only. A field declared on an optional class takes the values of that class. When a role adds a formula or required to a field from classes, this is not visible in the response, although the server still enforces it.
The response is the same for every user. The endpoint sets no cache headers, and different API keys can point at different databases, so clients must not share cached responses across API keys.
Document the published dashboard shapes (DashboardMetadata, ClientLayout, ClientLayoutItemView, ClientArchetype) and how they relate to the model, and cover /systemMetadata.