Docs
Sites APIContent

List entries of a content type

`type` is the content type KEY, not an id. Tag: `entries:{type}`.

GET/api/sites/v1/entries/{type}

type is the content type KEY, not an id. Tag: entries:{type}.

Authorization

websiteToken
AuthorizationBearer <token>

A Sanctum token scoped to one website.

In: header

Path Parameters

type*string

Query Parameters

term?string

Comma-separated term slugs or ids; an entry matching any is returned.

property?string

A property slug on this website. Returns entries written for that property. Unknown slug is a 404.

page?integer
Range1 <= value
Default1
per_page?integer
Range1 <= value <= 200
Default50

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/entries/string"
{  "data": [    {      "id": "string",      "slug": "string",      "path": "string",      "status": "string",      "content_type": "string",      "property_id": "string",      "data": {},      "seo": {},      "terms": [        {          "id": "string",          "slug": "string",          "label": "string",          "taxonomy": "string"        }      ],      "schema": {},      "published_at": "string",      "expires_at": "string",      "updated_at": "string"    }  ],  "meta": {    "content_type": {      "key": "string",      "singular": "string",      "plural": "string",      "url_pattern": "string",      "schema_type": "string"    },    "pagination": {      "total": 0,      "page": 0,      "per_page": 0,      "last_page": 0    },    "cache": {      "tags": [        "string"      ],      "ttl": 0    }  }}