Payload structure
All webhook payloads follow a consistent structure with two main sections:Webhook metadata
Thewebhook object is included in all webhook payloads and contains:
Page webhook payloads
Data fields
Example: Page published
Example: Page deleted
Blog Post webhook payloads
Data fields
Example: Blog Post published
Blog post webhook payloads are intentionally lightweight, containing only the post slug and ID. To get the full post content, use the slug to fetch the complete post data from the ButterCMS API.
Fetching full post data
Collection item webhook payloads
Data fields
Example: collection item published
Fetching full collection item data
Theitemid field contains the API path to fetch the specific item:
Localized content payloads
For organizations with localization enabled, thelocale field indicates which locale triggered the event:
Default locale
When content in the default locale is changed,locale is null:
Specific locale
When content in a specific locale is changed,locale contains the locale code: