# Purge Triggers

## Site Published

Purge all HTML

<https://developers.webflow.com/data/reference/all-events#site_publish>

```
curl -X POST "https://api.webflow.com/sites/{site_id}/webhooks" \
-H "Authorization: Bearer {your_access_token}" \
-H "Content-Type: application/json" \
-d '{
    "triggerType": "site_publish",
    "url": "https://your-webhook-url.com"
}'
```

## CMS Item Published

Option, purge all HTML

If possible;

* Identify item page, purge it&#x20;
* Identify pages which use this CMS data in a collection list, purge it&#x20;

<https://developers.webflow.com/data/reference/all-events#collection_item_changed>

<https://developers.webflow.com/data/reference/all-events#collection_item_deleted>

<https://developers.webflow.com/data/reference/all-events#collection_item_unpublished>

```
curl -X POST "https://api.webflow.com/sites/{site_id}/webhooks" \
-H "Authorization: Bearer {your_access_token}" \
-H "Content-Type: application/json" \
-d '{
    "triggerType": "item_publish",
    "url": "https://your-webhook-url.com"
}'
```
