Gallery Platform API
Reference

Describe the ontology

Lists the declared object types (properties, links, the actions on each), the link types and the action types with their approval tier and ceiling. Property facts are schema only: a `withheld` property is listed as withheld and never carries a value.

GET
/gallery/ontology

Lists the declared object types (properties, links, the actions on each), the link types and the action types with their approval tier and ceiling. Property facts are schema only: a withheld property is listed as withheld and never carries a value.

Authorization

bearerAuth gallery:read
AuthorizationBearer <token>

A gallery API key, sent as Authorization: Bearer gpk_… (or the x-api-key header).

In: header

Scope: gallery:read

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{  "object_types": [    {      "key": "string",      "resource": "string",      "prefix": "string",      "title_property": "string",      "picture_property": "string",      "interfaces": [        "string"      ],      "properties": {        "property1": {          "property1": null,          "property2": null        },        "property2": {          "property1": null,          "property2": null        }      },      "withheld": [        "string"      ],      "links": [        {          "key": "string",          "direction": "out",          "other": "string",          "cardinality": "one-to-one",          "time_bounded": true        }      ],      "actions": [        "string"      ]    }  ],  "link_types": [    {      "key": "string",      "from": "string",      "to": "string",      "cardinality": "one-to-one",      "time_bounded": true    }  ],  "action_types": [    {      "key": "string",      "type": "string",      "tier": "auto",      "ceiling": "auto",      "destructive": true    }  ]}