Clear stale BunnyCDN assets after API Labz updates
When an API Labz workflow updates a public file, send Notis the changed URL and have BunnyCDN purge its cached copy.
Trigger
Webhook received
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Action
Purge URL
Clears a specific URL from the CDN cache so its content refreshes from the origin.
Why this helps
Updated assets can look broken when visitors keep receiving an older cached version, and manual purges are easy to forget.
- Clear the cache for the changed URL soon after an update.
- Avoid purging unrelated files across the whole pull zone.
- Keep asset refreshes connected to the workflow that changed them.
Setup
Build it in a few focused steps.
- 1Connect API Labz and BunnyCDN once in the Notis portal.
- 2Create an automation by telling Notis what should happen, from any channel or in Automations, New Automation.
- 3In one instruction, say to purge the changed BunnyCDN URL when the webhook reports an asset update.
- 4Pick Webhook as the trigger and choose where run reports should go.
- 5Test with one real update and its URL.
Questions about this workflow
What should the webhook include?
Include the changed asset URL and enough context for Notis to identify the relevant BunnyCDN pull zone. Supply any details your workflow needs if they are not in the request.
Does this purge the whole pull zone?
No. This workflow purges the specific URL reported in the webhook.
When this happens · Trigger
Do this · Action
Clears a specific URL from the CDN cache so its content refreshes from the origin.
Supported Triggers and Actions
Notis builds workflows that link API Labz to BunnyCDN. A trigger fires from one place; an action lands in another.
API Labz triggers
BunnyCDN actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Add Storage Zone
Creates a storage zone, an irreversible action.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Add Allowed Referer
Adds a hostname; pull-zone requests need matching Referer headers, helping prevent unauthorized external use.
Conditions and details
Adds a hostname to a pull zone’s allowed referer list. Only content requests whose Referer header matches one of the allowed hostnames can access the pull-zone content. This helps prevent hotlinking and unauthorized content use from other websites.
Create DNS Record
Creates a DNS record in a DNS zone.
Add Blocked IP
Adds an IP address to a pull zone’s block list to restrict access and unwanted traffic.
Create Pull Zone
Creates a CDN pull zone to cache and deliver content from your origin server.
Add Blocked Referer
Adds a referer to a pull zone’s blocked list to prevent its domain from accessing content.
Delete DNS Record
Deletes a specific DNS record.
Delete DNS Zone
Permanently deletes a DNS zone.
Connect any two apps with Notis in the middle.
API Labz and BunnyCDN, or any other combination from 1,900+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with $20 of usage included.
No card. Works with personal or business BunnyCDN.