Docs
Sites APIContent

Content types

The content types this website renders, each with the URL pattern and template this website uses for it and the field definitions that shape an entry's `data`. A library type the website has not opted into is not listed. Ordered by plural name. Tag: `site`.

GET/api/sites/v1/content-types

The content types this website renders, each with the URL pattern and template this website uses for it and the field definitions that shape an entry's data. A library type the website has not opted into is not listed. Ordered by plural name. Tag: site.

Authorization

websiteToken
AuthorizationBearer <token>

A Sanctum token scoped to one website.

In: header

Header Parameters

X-Resi-Website?string

Website id. Overrides Host resolution for builds running where Host is meaningless. The token must still be scoped to this website.

If-None-Match?string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/sites/v1/content-types"
{  "data": [    {      "key": "string",      "singular": "string",      "plural": "string",      "scope": "account",      "url_pattern": "string",      "template": "string",      "schema_type": "string",      "expiry_field": "string",      "fields": [        {          "key": "string",          "label": "string",          "type": "string",          "required": true,          "help": "string",          "options": {},          "fields": [            {}          ],          "conditions": {}        }      ]    }  ],  "meta": {    "cache": {      "tags": [        "string"      ],      "ttl": 0    }  }}