List Pages
Authentication
Requires a Content API key. See Authentication.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The project ID |
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
type | string | — | Filter by page type (see valid values below) |
locale | string | — | Filter by locale code (e.g., en-us, fr-fr) |
limit | integer | 50 | Number of results to return (max 100) |
after | string | — | Cursor for pagination (from nextCursor) |
Valid page types
INDEX, PRODUCT, COLLECTION, PAGE, BLOG, ARTICLE, CUSTOM
Response
Response fields
| Field | Type | Description |
|---|---|---|
object | string | Always "list" |
data | array | Array of page assignment objects |
data[].id | string | Page assignment ID |
data[].type | string | Page type (e.g., PRODUCT, INDEX) |
data[].handle | string | Page handle (e.g., product handle, default) |
data[].locale | string | Locale code |
data[].pageId | string | Associated page ID |
nextCursor | string | null | Cursor for the next page |
Errors
| Code | Status | When |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid API key |
FORBIDDEN | 403 | API key does not have access to this project |
PROJECT_NOT_FOUND | 404 | Project does not exist or was deleted |
INVALID_PARAMS | 400 | Invalid type filter or cursor value |
INTERNAL_ERROR | 500 | Unexpected server error |
Examples
- cURL
- TypeScript
- Python