Skip to main content

List Pages

GET/api/v1/content/pages

Overview

Returns a paginated list of published content pages for the resolved client site. Pages are static content (e.g., About, Pricing, Contact) as opposed to blog posts.

Authentication

info

No authentication required - Client is resolved from the X-Content-Domain header, which the Cloudflare Worker sets automatically based on the request domain.

Headers

HeaderTypeRequiredDescription
X-Content-DomainstringYesThe domain used to resolve the client tenant. Automatically set by the CF Worker; set manually for external frontend integrations.

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number for pagination
page_sizeinteger20Number of pages per response

Response

pagesarray

Array of published page objects

pages[].idstring (UUID)

Unique page identifier

pages[].slugstring

URL-friendly slug

pages[].titlestring

Page title

pages[].statusstring

Always published for this endpoint

pages[].templatestring

Template used to render the page (e.g., default, landing, blank)

pages[].published_atstring

ISO 8601 publication timestamp

pages[].updated_atstring

ISO 8601 last update timestamp

totalinteger

Total number of published pages

pageinteger

Current page number

page_sizeinteger

Number of pages per response

Example Request

curl -s "https://spideriq.ai/api/v1/content/pages?page=1&page_size=20" \
-H "X-Content-Domain: your-domain.com"

Example Response

{
"pages": [
{
"id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"slug": "about",
"title": "About Us",
"status": "published",
"template": "default",
"published_at": "2026-01-10T12:00:00Z",
"updated_at": "2026-03-20T08:30:00Z"
},
{
"id": "d4e5f6a7-b8c9-0123-defg-234567890123",
"slug": "pricing",
"title": "Pricing",
"status": "published",
"template": "landing",
"published_at": "2026-01-15T12:00:00Z",
"updated_at": "2026-04-01T10:00:00Z"
}
],
"total": 2,
"page": 1,
"page_size": 20
}

Status Codes

Status CodeMeaningDescription
200OKPages returned successfully
422Unprocessable EntityInvalid query parameters