Skip to main content
The GraphQL API supports real-time subscriptions for content updates via WebSocket connections.

Subscription Schema

Available Subscriptions

contentUpdated

Watch for updates to published content

previewUpdated

Watch for updates to draft previews

WebSocket Client Setup

Using graphql-ws

For Preview Subscriptions

Use previewToken instead of x-api-key:

Handling Large Payloads

AWS WebSocket has a 100KB payload limit. When data exceeds this limit:
  1. The content or component field will be null
  2. The resolvedRef field is always included
  3. Fetch the full data separately using the ID
  4. Use the resolvedRef to fetch package data