API Reference
Public Content
Public content API for headless usage. No authentication required.
GET
Retrieves a paginated list of published content items. No authentication required.
page?integerRange
1 <= valueDefault
1limit?integerRange
1 <= value <= 100Default
10type?stringValue in
"post""page"include?"computed_excerpt"Value in
"computed_excerpt"Published content list
application/json- response
data*array<>meta*curl -X GET 'https://example.com/api/public/content'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "title": "string", "excerpt": "string", "computedExcerpt": "string", "body": {}, "contentType": "post", "publishedAt": "2019-08-24T14:15:22Z", "featureImage": "http://example.com", "metaTitle": "string", "metaDescription": "string", "ogImage": "http://example.com" } ], "meta": { "total": 0, "page": 0, "limit": 0, "pages": 0 }}GET
Retrieves a single published content item by its URL-friendly slug. No authentication required.
slug*stringMatch
^[a-z0-9]+(-[a-z0-9]+)*$include?"computed_excerpt"Value in
"computed_excerpt"Published content item
application/json- response
id*stringFormat
uuidslug?stringtitle*stringexcerpt?stringcomputedExcerpt?stringAuto-generated excerpt (only if include=computed_excerpt)
body?|nullcontentType*stringValue in
"post""page"publishedAt?stringFormat
date-timefeatureImage?stringFormat
urimetaTitle?stringmetaDescription?stringogImage?stringFormat
uricurl -X GET 'https://example.com/api/public/content/string'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "title": "string", "excerpt": "string", "computedExcerpt": "string", "body": {}, "contentType": "post", "publishedAt": "2019-08-24T14:15:22Z", "featureImage": "http://example.com", "metaTitle": "string", "metaDescription": "string", "ogImage": "http://example.com"}