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`.
/api/sites/v1/content-typesThe 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 A Sanctum token scoped to one website.
In: header
Header Parameters
Website id. Overrides Host resolution for builds running where Host is meaningless. The token must still be scoped to this website.
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 } }}