Authentication
Preview queries use apreview-token header instead of x-api-key:
Preview Query
Parameters
| Parameter | Type | Description |
|---|---|---|
token | String! | Preview link token |
version | Int | Optional: specific component version |
Component Preview
Fetch a component preview (defaults to latest draft):Specific Version
Fetch a specific published version of a component:Content Preview
Fetch a content preview:Preview Subscription
Watch for real-time updates to previewed components or content:Subscriptions are only useful for draft components and unpublished content, as published versions are immutable.
Client Implementation
React Hook Example
WebSocket Setup for Previews
Handling Large Payloads
When content exceeds the 100KB WebSocket limit:- The
componentorcontentfield will benull - The
resolvedRefis always included - Fetch the full data separately using the component/content ID