> ## Documentation Index
> Fetch the complete documentation index at: https://buttercms.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook event types

> Reference for all ButterCMS webhook event types across Pages, Blog Posts, Collection Items, and Media, with details on when each event is triggered.

ButterCMS automatically sends webhook notifications for various content events including blog posts, pages, and collection items. These events enable real-time integration with your applications, triggering immediate responses to content changes.

**Event Types**: Webhooks are triggered for create, update, publish, unpublish, and delete operations across all content types.

**Delivery Method**: All webhook events are delivered as HTTP POST requests to your configured endpoint URLs, with JSON payloads containing event metadata and complete content data.

## Page events

| Event | Trigger | Use Case |
| - | - | - |
| `page.published` | Page is published or republished | Invalidate cache, trigger site rebuild, send notifications |
| `page.draft` | Draft page is saved | Notify reviewers, update preview systems |
| `page.unpublished` | Page is unpublished (taken offline) | Remove from search index, clear cache |
| `page.delete` | Page is permanently deleted | Clean up related resources, update sitemaps |
| `page.all` | Any page activity | General logging, comprehensive audit trails |

### page.published

Triggered when a page is published or republished.

This event fires when:

* A draft page is published for the first time
* An already published page is republished after changes
* A scheduled page is automatically published

### page.draft

Triggered when a draft page is created or updated.

This event fires when:

* A new page is created and saved as draft
* An existing draft page is modified
* A published page has draft changes saved

### page.unpublished

Triggered when a published page is unpublished.

This event fires when:

* A published page is manually unpublished
* A page is reverted from published to draft state

### page.delete

Triggered when a published page is permanently deleted.

This event fires when:

* A page is permanently removed from the system
* A page is moved to trash and then permanently deleted

### page.all

Triggered for any page-related activity. This is a catch-all event useful for logging or when you need to track all page changes regardless of type.

## Blog Post events

| Event | Trigger | Use Case |
| - | - | - |
| `post.published` | Blog post is published | Share to social media, send newsletter, update RSS feed |
| `post.draft` | Draft post is saved | Notify editors, update preview |
| `post.delete` | Blog post is deleted | Remove from indexes, update feeds |
| `post.all` | Any blog post activity | Comprehensive audit logging |

### post.published

Triggered when a blog post is published or republished.

This event fires when:

* A draft blog post is published for the first time
* An already published post is republished after changes
* A scheduled post is automatically published

### post.draft

Triggered when a draft blog post is created or updated.

This event fires when:

* A new blog post is created and saved as draft
* An existing draft post is modified

### post.delete

Triggered when a blog post is permanently deleted.

## Localized Blog Post events

When localization is enabled, changes to a non-default locale of a blog post fire dedicated `post.localization.*` events (in addition to the default-locale `post.*` events, which fire for the organization's default locale). Subscribe to these when you need to react to a specific locale being published, drafted, or removed.

| Event | Trigger | Use Case |
| - | - | - |
| `post.localization.published` | A localized blog post is published | Rebuild the locale-specific site, update translated feeds |
| `post.localization.draft` | A localized draft blog post is saved | Notify translators/reviewers |
| `post.localization.delete` | A localized blog post is unpublished or deleted | Remove the translation from indexes and caches |
| `post.localization.all` | Any localized blog post activity | Comprehensive audit logging per locale |

The payload for these events includes a `locale` field identifying which locale changed. See [Localized content payloads](https://buttercms.com/docs/build-your-app/webhooks-events/webhook-payloads-data.md#localized-content-payloads).

## Collection item events

| Event | Trigger | Use Case |
| - | - | - |
| `collectionitem.published` | Item is published | Update product catalog, sync to external systems |
| `collectionitem.draft` | Draft item is saved | Quality assurance notifications |
| `collectionitem.unpublished` | Item is unpublished | Remove from listings, update availability |
| `collectionitem.delete` | Item is deleted | Clean up references, archive data |
| `collectionitem.all` | Any collection item activity | Full audit trail |

### collectionitem.published

Triggered when a collection item is published or republished.

This event fires when:

* A draft collection item is published for the first time
* An already published item is republished after changes
* A scheduled item is automatically published

### collectionitem.draft

Triggered when a draft collection item is created or updated.

### collectionitem.unpublished

Triggered when a published collection item is unpublished.

### collectionitem.delete

Triggered when a collection item is permanently deleted.

### collectionitem.all

Triggered for any collection item activity.

## Media events

| Event | Trigger | Use Case |
| - | - | - |
| `media.videouploaded` | Video upload completes | Generate thumbnails, start transcoding, notify users |

### media.videouploaded

Triggered when a video file upload is completed.

This event fires when:

* A video file finishes uploading to the media library
* Video processing is complete and the file is ready for use

### media.updated

Triggered when the file behind an existing media asset changes.

This event fires when:

* An image is edited with the built-in image editor (crop, rotate, circle)
* A media file is replaced with a new file
* A media file is restored to its original version

The `cdn_url` does not change when this happens. Pages that reference it start serving the new file without any other signal, so subscribe to this event if you rebuild a static site or purge a cache when content changes.

| Event | Trigger | Use Case |
| - | - | - |
| `media.videouploaded` | Video upload completes | Generate thumbnails, start transcoding, notify users |
| `media.updated` | Media file is edited, replaced, or restored | Rebuild static sites, purge caches |

> [!NOTE]
>
> New image uploads do not generate webhook notifications. `media.updated` covers Media Library changes to an existing asset only.

## Event timing

Understanding when events fire helps you build reliable integrations:

### Immediate events

These events fire immediately when the action is taken:

* `*.draft` - Fires immediately when content is saved
* `*.delete` - Fires immediately when content is deleted
* `*.unpublished` - Fires immediately when content is unpublished
* `media.updated` - Fires immediately when a media file is edited, replaced, or restored

### Conditional events

These events may fire immediately or be delayed:

* `*.published` - Fires immediately for manual publish, or at scheduled time for scheduled content
* `media.videouploaded` - Fires when video processing completes (may take time for large files)

## Choosing the right events

### For static site generators (Next.js, Astro, Hugo)

Subscribe to:

* `page.published` - Rebuild site when pages change
* `post.published` - Update blog when posts are published
* `collectionitem.published` - Sync reference data
* `media.updated` - Rebuild when an image is edited or replaced (the URL stays the same, only the file changes)

### For cache invalidation

Subscribe to:

* `page.published`, `page.unpublished`, `page.delete`
* `post.published`, `post.delete`
* `collectionitem.published`, `collectionitem.unpublished`

### For search index updates

Subscribe to:

* All `*.published` events - Add/update content in search
* All `*.delete` events - Remove content from search
* All `*.unpublished` events - Remove from public search

### For notifications and alerts

Subscribe to:

* `*.draft` events - Notify reviewers of new content
* `*.published` events - Alert subscribers of new content
* `*.delete` events - Warn about content removal

## Event delivery order

> [!WARNING]
>
> ButterCMS does not guarantee the order of webhook deliveries. If your application depends on event ordering, implement idempotency and use timestamps from the payload to determine the correct sequence.

Events may arrive out of order due to:

* Network latency variations
* Retry attempts for failed deliveries
* Concurrent content operations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.