Api
Pages
API reference for page endpoints.
Pages API
Pages are structured content documents with rich JSON content and SEO metadata.
List Pages
Fetch all published pages.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
locale | string | No | Filter by locale |
type | string | No | Filter by page type (LANDING, ARTICLE, etc.) |
allLocales | boolean | No | Return pages in all locales |
Example
Response:
Get Single Page
Fetch a specific page by slug.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | Page slug |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
locale | string | No | Locale code |
Example
Response:
Page Types
Pages can have different types to organize content:
| Type | Description |
|---|---|
LANDING | Marketing/landing pages |
ARTICLE | Long-form content |
LEGAL | Legal documents (privacy, terms) |
CONTACT | Contact pages |
Filter by type:
Content Structure
Page content is a flexible JSON structure. The schema depends on your implementation, but typically follows a block-based pattern:
Rendering Pages
Parse the content structure in your frontend: