Bunnycdn

Learn how to use Bunnycdn with Composio

Overview

SLUG: BUNNYCDN

Description

BunnyCDN is a powerful content delivery network (CDN) offering an API to manage and deliver content globally with ease.

Authentication Details

generic_api_key
stringRequired

Connecting to Bunnycdn

Create an auth config

Use the dashboard to create an auth config for the Bunnycdn toolkit. This allows you to connect multiple Bunnycdn accounts to Composio for agents to use.

1

Select App

Navigate to Bunnycdn.

2

Configure Auth Config Settings

Select among the supported auth schemes of and configure them here.

3

Create and Get auth config ID

Click “Create Bunnycdn Auth Config”. After creation, copy the displayed ID starting with ac_. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database. This ID will be used to create connections to the toolkit for a given user.

Connect Your Account

Using API Key

1from composio import Composio
2
3# Replace these with your actual values
4bunnycdn_auth_config_id = "ac_YOUR_BUNNYCDN_CONFIG_ID" # Auth config ID created above
5user_id = "0000-0000-0000" # UUID from database/app
6
7composio = Composio()
8
9def authenticate_toolkit(user_id: str, auth_config_id: str):
10 # Replace this with a method to retrieve an API key from the user.
11 # Or supply your own.
12 user_api_key = input("[!] Enter API key")
13
14 connection_request = composio.connected_accounts.initiate(
15 user_id=user_id,
16 auth_config_id=auth_config_id,
17 config={"auth_scheme": "API_KEY", "val": {"generic_api_key": user_api_key}}
18 )
19
20 # API Key authentication is immediate - no redirect needed
21 print(f"Successfully connected Bunnycdn for user {user_id}")
22 print(f"Connection status: {connection_request.status}")
23
24 return connection_request.id
25
26
27connection_id = authenticate_toolkit(user_id, bunnycdn_auth_config_id)
28
29# You can verify the connection using:
30connected_account = composio.connected_accounts.get(connection_id)
31print(f"Connected account: {connected_account}")

Tools

Executing tools

To prototype you can execute some tools to see the responses and working on the Bunnycdn toolkit’s playground

For code examples, see the Tool calling guide and Provider examples.

Tool List

Tool Name: Add Storage Zone

Description

Tool to add a new storage zone. Use when you need dedicated file storage in a specific region.

Action Parameters

Name
stringRequired
OriginUrl
Region
ReplicationRegions

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create DNS Record

Description

Tool to create a new DNS record in a specific DNS zone. Use after confirming the DNS zone ID is active.

Action Parameters

Accelerated
Comment
Disabled
EnviromentalVariables
Flags
GeolocationLatitude
GeolocationLongitude
LatencyZone
MonitorType
Name
stringRequired
Port
Priority
PullZoneId
ScriptId
SmartRoutingType
Tag
Ttl
integerRequired
Type
integerRequired
Value
stringRequired
Weight
zone_id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create Pull Zone

Description

Tool to create a new pull zone. Use after gathering origin details.

Action Parameters

AWSSigningEnabled
AWSSigningKey
AWSSigningRegionName
AWSSigningSecret
AddCanonicalHeader
AddHostHeader
CacheControlMaxAgeOverride
EnableCacheSlice
EnableCountryCodeVary
EnableGeoZoneAF
EnableGeoZoneAN
EnableGeoZoneASIA
EnableGeoZoneEU
EnableGeoZoneME
EnableGeoZoneOC
EnableGeoZoneSA
EnableGeoZoneUS
EnableHostnameVary
EnableLogging
EnableOriginShield
EnableTLS1
EnableWebpVary
IgnoreQueryStrings
LogForwardingEnabled
LogForwardingHostname
LogForwardingPort
LogForwardingToken
LoggingSaveToStorage
LoggingStorageZoneId
Name
stringRequired
OriginShieldZoneCode
OriginUrl
stringRequired
PricingTier
StorageZoneId
Type

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete DNS Record

Description

Tool to delete a specific DNS record by its ID. Use after confirming the DNS zone ID and record ID.

Action Parameters

record_id
integerRequired
zone_id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete DNS Zone

Description

Tool to delete a specific DNS zone by its ID. Use when you need to permanently remove an existing DNS zone after verifying the zone ID.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Pull Zone

Description

Tool to delete a specific pull zone by its ID. Use when you need to remove a pull zone after confirming its ID.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Storage Zone

Description

Tool to delete a storage zone. Use when you need to remove a storage zone after confirming its ID.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get DNS Zone Details

Description

Tool to retrieve details of a specific DNS zone by its ID. Use when you need to verify DNS zone configuration after creation or update.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get DNS Zone List

Description

Tool to list all DNS zones in your Bunny CDN account. Use when you need an overview of all configured DNS zones.

Action Parameters

page
Defaults to 1
perPage
Defaults to 50

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Pull Zone

Description

Tool to retrieve details of a specific Pull Zone. Use when you need full configuration and usage stats after confirming the Pull Zone ID.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Pull Zone List

Description

Tool to fetch the list of pull zones. Use when you need an overview of all pull zones in your account.

Action Parameters

includeCertificate
page
Defaults to 1
perPage
Defaults to 50
search

Action Response

data
arrayRequired
error
successful
booleanRequired

Tool Name: Get Storage Zone Details

Description

Tool to retrieve the full details of a storage zone. Use when you need configuration and usage metrics for a specific storage zone.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Storage Zone List

Description

Tool to list all storage zones in your Bunny CDN account. Use when you need an overview of all configured storage zones.

Action Parameters

page
Defaults to 1
perPage
Defaults to 50

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Storage Zone Region

Description

Tool to retrieve the region code of a storage zone. Use when you have a storage zone ID and need only its geographic region.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List DNS Records

Description

Tool to list all DNS records in a specific DNS zone. Use when you need to audit or review the DNS configuration of a zone.

Action Parameters

skip
take
zoneId
integerRequired

Action Response

data
arrayRequired
error
successful
booleanRequired

Tool Name: Purge Pull Zone

Description

Tool to purge the entire cache of a pull zone. Use after updating origin or critical content to ensure no stale assets are served.

Action Parameters

id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Purge URL

Description

Tool to purge a specific URL from the BunnyCDN cache. Use when you need to invalidate a resource immediately after updating it.

Action Parameters

async_flag
boolean
url
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Set Storage Zone Region

Description

Tool to update replication regions of a storage zone. Use when you need to adjust geo-replication settings after reviewing current configurations.

Action Parameters

ReplicationZones
arrayRequired
id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Pull Zone

Description

Tool to update settings for a specific pull zone. Use when you need to modify existing pull zone settings after reviewing current configuration.

Action Parameters

AWSSigningEnabled
AWSSigningKey
AWSSigningRegionName
AWSSigningSecret
AddCanonicalHeader
AddHostHeader
BlockedCountries
BudgetRedirectedCountries
CacheControlMaxAgeOverride
CacheErrorResponses
DisableCookies
EnableCacheSlice
EnableCountryCodeVary
EnableGeoZoneAF
EnableGeoZoneAN
EnableGeoZoneASIA
EnableGeoZoneEU
EnableGeoZoneME
EnableGeoZoneOC
EnableGeoZoneSA
EnableGeoZoneUS
EnableHostnameVary
EnableLogging
EnableOriginShield
EnableQueryStringOrdering
EnableTLS1
EnableWebpVary
IgnoreQueryStrings
LogForwardingEnabled
LogForwardingHostname
LogForwardingPort
LogForwardingToken
LoggingSaveToStorage
LoggingStorageZoneId
Name
OriginShieldZoneCode
OriginUrl
PricingTier
StorageZoneId
Type
id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Storage Zone

Description

Tool to update settings for a specific storage zone. Use after reviewing current storage zone settings to apply changes.

Action Parameters

Custom404FilePath
OriginUrl
ReplicationZones
Rewrite404To200
id
integerRequired

Action Response

data
objectRequired
error
successful
booleanRequired