List Content
Fetch a paginated list of content with filtering, sorting, and search.Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
typeId | ID | - | Filter by content type |
tags | [String!] | - | Filter by tags (AND logic) |
locale | String | - | Filter by locale |
search | String | - | Search in name and description |
filter | ContentFilter | - | Advanced field filtering |
sort | [SortCriteria!] | - | Sort criteria |
cursor | String | null | Cursor for pagination |
limit | Int | 20 | Items per page |
Filter Example
Get Single Content
Fetch a specific content item by ID.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | ID! | Yes | Content ID |
Get Content with Resolved Package
Include all package data needed to render the content.Get Content with Caching References
For optimal caching, fetch only package IDs and resolve separately.Content Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
typeId | ID! | Content type ID |
packageVersion | String! | Package version |
name | String! | Content name |
description | String! | Content description |
content | String! | Content data |
compiled | String! | Compiled content data |
tags | [String!]! | Associated tags |
locale | String | Content locale |
lastPublishedVersion | Int | Last published version number |
cdnUrl | String | CDN URL for the content |
contentType | ContentType | Associated content type |
resolvedPackage | ResolvedPackage | Full package data |
resolvedRef | ResolvedPackageRef! | Package IDs for caching |
createdAt | DateTime! | Creation timestamp |
updatedAt | DateTime! | Last update timestamp |