Create, update, duplicate, retrieve, and delete static pages (about, pricing, landing pages) on a publication.
List all pages
GEThttps://api.bloghunch.com/v1/pages
Retrieves a paginated list of static pages. Requires pages:read. Supports page, limit, status (publish / draft), search, and include_content=false.
GETRequest
curl -G https://api.bloghunch.com/v1/pages \
-H "Authorization: Bearer {token}" \
-d limit=10Get single page
GEThttps://api.bloghunch.com/v1/pages/{idOrSlug}
Retrieves a single page by numeric ID or slug. Requires pages:read.
GETRequest
curl https://api.bloghunch.com/v1/pages/about-us \
-H "Authorization: Bearer {token}"Create a page
POSThttps://api.bloghunch.com/v1/pages
Creates a new page using content (HTML) or content_markdown. Requires pages:write.
POSTRequest
curl -X POST https://api.bloghunch.com/v1/pages \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"title": "About Us",
"content_markdown": "# About Us\nBuilt on BlogHunch.",
"status": "publish"
}'Update, duplicate & delete
- Update page:
PATCH /v1/pages/{id}(pages:write) - Duplicate page:
POST /v1/pages/{id}/duplicate(pages:write) - Delete page:
DELETE /v1/pages/{id}(pages:delete)