v1

latestOpenAPI 3.1.0Any Source Available License 1.02026-07-1736102200.0 KB
Types

Get type

Fetches detailed information about one specific type by its ID. This includes the type’s unique key, name, icon, and layout. This detailed view assists clients in understanding the expected structure and style for objects of that type and in guiding the user interface (such as displaying appropriate icons or layout hints).

get/v1/spaces/{space_id}/types/{type_id}

Path parameters

space_idstring required

The ID of the space from which to retrieve the type; must be retrieved from ListSpaces endpoint

type_idstring required

The ID of the type to retrieve; must be retrieved from ListTypes endpoint or obtained from response context

Headers

Anytype-Versionstring required

The version of the API to use

Response

The requested type

Example response

{
  "type": {
    "icon": {
      "emoji": "📄"
    },
    "id": "bafyreigyb6l5szohs32ts26ku2j42yd65e6hqy2u3gtzgdwqv6hzftsetu",
    "key": "page",
    "name": "Page",
    "object": "type",
    "plural_name": "Pages",
    "properties": [
      {
        "id": "bafyreids36kpw5ppuwm3ce2p4ezb3ab7cihhkq6yfbwzwpp4mln7rcgw7a",
        "key": "last_modified_date",
        "name": "Last modified date",
        "object": "property"
      }
    ]
  }
}