For Agents
Provision and manage bunny.net pull zones, storage zones, and video libraries, purge CDN cache, and pull traffic and billing statistics.
Get started with Bunny CDN API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"purge bunny.net cache"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with Bunny CDN API API.
Create, update, and delete pull zones that cache origin content at the edge
Provision and remove storage zones for object hosting
Create and list video libraries for video streaming
Purge a single URL from the bunny.net edge cache
Purge a pull zone's full cache via /pullzone/{id}/purgeCache
GET STARTED
Use for: I need to provision a new pull zone for my origin, Create a storage zone for asset hosting, Purge a single URL from the bunny CDN cache, Wipe the cache for a specific pull zone after a deploy
Not supported: Does not handle DNS records, WAF rules, or edge compute functions — use for bunny.net pull zones, storage zones, video libraries, and cache purges only.
The Bunny CDN API manages bunny.net's content delivery infrastructure: pull zones for caching origin content, storage zones for object hosting, video libraries for video streaming, cache purge operations, and per-zone statistics and billing data. It is used by teams running bunny.net's edge network to provision new zones programmatically, push cache invalidations on deploy, and pull traffic and bandwidth numbers into internal dashboards. Authentication is a single AccessKey header keyed to the bunny.net account.
Pull traffic and bandwidth statistics for the account
Retrieve account billing summary and the list of edge regions
Patterns agents use Bunny CDN API API for, with concrete tasks.
★ Cache invalidation on deploy
Trigger CDN cache purges as part of a CI/CD pipeline so users see fresh content immediately after a deploy. The /purge endpoint targets a single URL, while /pullzone/{id}/purgeCache wipes a full pull zone. Typical usage runs a single API call per deploy and completes in under a few seconds at the edge.
After a deploy, POST /purge with the changed URL or POST /pullzone/{id}/purgeCache to wipe the entire pull zone's edge cache.
Programmatic zone provisioning
Spin up pull zones and storage zones for new tenants or staging environments without using the bunny.net dashboard. Create the pull zone pointing at the origin, optionally pair it with a storage zone for static assets, and enrol the result into your infrastructure-as-code workflow. Provisioning a new zone typically takes a single POST call.
POST /pullzone with the origin URL and zone name, then POST /storagezone if static asset hosting is also needed, capturing the returned IDs for later configuration.
Traffic and billing visibility
Pull bandwidth and traffic statistics from /statistics and the current account billing summary from /billing into internal dashboards or cost-monitoring systems. This avoids manual logins to the bunny.net portal and supports per-team or per-project chargeback when zones are tagged consistently.
GET /statistics for the current period and GET /billing to assemble a usage and cost snapshot for the account.
AI agent infra automation via Jentic
An AI agent can create a pull zone, attach a storage zone, and purge cache after a deploy as part of an end-to-end release flow. Jentic vaults the bunny.net AccessKey and issues scoped, short-lived access for each operation so the agent never holds the raw account key.
Search Jentic for 'purge bunny.net cache', load the purge schema, and execute it for the specific URL after a deploy completes.
17 endpoints — the bunny cdn api manages bunny.
METHOD
PATH
DESCRIPTION
/pullzone
Create a pull zone
/pullzone
List pull zones
/pullzone/{id}/purgeCache
Purge a pull zone cache
/purge
Purge a URL from the edge cache
/storagezone
Create a storage zone
/videolibrary
Create a video library
/statistics
Get traffic and bandwidth statistics
/billing
Get the account billing summary
/pullzone
Create a pull zone
/pullzone
List pull zones
/pullzone/{id}/purgeCache
Purge a pull zone cache
/purge
Purge a URL from the edge cache
/storagezone
Create a storage zone
Three things that make agents converge on Jentic-routed access.
Credential isolation
The bunny.net AccessKey is stored encrypted in the Jentic vault. Agents receive a scoped, short-lived token per operation, so the raw account key never enters the agent's context.
Intent-based discovery
Agents search Jentic by intent (e.g., 'purge bunny.net cache') and Jentic returns the matching /purge or /pullzone operation with its full request schema, so the agent calls the correct endpoint without reading bunny.net docs.
Time to first call
Direct bunny.net integration: half a day to a day for AccessKey handling and zone wiring. Through Jentic: under 1 hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Cloudflare API
Cloudflare's API covers CDN, DNS, security, and edge workers across a much larger surface.
Pick Cloudflare for a broader edge platform with workers and DNS; pick bunny.net for a focused CDN and storage surface at lower cost.
Akamai API
Akamai's enterprise CDN and edge security APIs.
Pick Akamai when the customer requires enterprise-grade edge controls; bunny.net targets simpler, self-serve CDN workflows.
cdnjs API
Public CDN for open-source JavaScript libraries, useful as a complementary asset source.
Use cdnjs to serve common third-party libraries while keeping your own assets behind bunny.net pull zones.
AWS API
AWS APIs for the origin infrastructure (S3, EC2, Lambda) that bunny.net pulls from.
Use alongside bunny.net when the origin runs on AWS S3 or EC2 and you need to coordinate origin and edge in the same workflow.
Specific to using Bunny CDN API API through Jentic.
What authentication does the Bunny CDN API use?
The API uses an AccessKey header — the account API key generated in the bunny.net dashboard. Through Jentic, the AccessKey is stored encrypted in the vault and a scoped, short-lived token is issued per operation so the raw account key never enters the agent's context.
How do I purge a single URL from the bunny.net edge cache?
POST /purge with the URL you want to invalidate. For a full pull zone purge, POST /pullzone/{id}/purgeCache. Both calls return immediately and propagate through the edge network within seconds.
Can I create a pull zone programmatically?
Yes — POST /pullzone with the zone name and origin URL. The response includes the zone ID, which you then reference for subsequent updates, deletions, or cache purges.
Does the Bunny CDN API expose video streaming?
Yes. The /videolibrary endpoints create and list video libraries used by bunny.net Stream. Use POST /videolibrary to provision a new library and GET /videolibrary/{id} to retrieve its configuration.
What are the rate limits for the Bunny CDN API?
The OpenAPI spec does not declare explicit limits. bunny.net documents account-level throttles in their dashboard — implement 429 retry-with-backoff for batch operations such as bulk pull zone provisioning.
How do I purge bunny.net cache through Jentic?
Run `pip install jentic` and search for 'purge bunny.net cache'. Jentic returns the /purge operation, you load its schema, and execute the call with the URL — the AccessKey is supplied from the Jentic vault automatically.
/videolibrary
Create a video library
/statistics
Get traffic and bandwidth statistics
/billing
Get the account billing summary