HTTP is the recommended way to upload content to Bunny Storage. It provides the best performance, stability, and security through a simple RESTful protocol.Documentation Index
Fetch the complete documentation index at: https://docs.bunny.net/llms.txt
Use this file to discover all available pages before exploring further.
For complete API documentation, see the Edge Storage API Reference.
Authentication
All requests require authentication using theAccessKey header with your storage zone password.
Storage endpoints
The API endpoint depends on your storage zone’s primary region:| Region | Endpoint |
|---|---|
| Frankfurt, DE | storage.bunnycdn.com |
| London, UK | uk.storage.bunnycdn.com |
| New York, US | ny.storage.bunnycdn.com |
| Los Angeles, US | la.storage.bunnycdn.com |
| Singapore, SG | sg.storage.bunnycdn.com |
| Stockholm, SE | se.storage.bunnycdn.com |
| São Paulo, BR | br.storage.bunnycdn.com |
| Johannesburg, SA | jh.storage.bunnycdn.com |
| Sydney, SYD | syd.storage.bunnycdn.com |
Upload a file
Upload files using a PUT request with the file content in the request body.Request format
Method:PUT
URL format: https://{region}.bunnycdn.com/{storageZoneName}/{path}/{fileName}
Path parameters:
storageZoneName(required) - Your storage zone namepath(optional) - Directory path where the file will be stored (omit for root)fileName(required) - Name for the uploaded file
AccessKey(required) - Your storage zone passwordContent-Type(optional) - MIME type of the file (e.g.,image/jpeg,application/pdf)Checksum(optional) - SHA256 checksum in HEX format (uppercase)
Example
With checksum
Response codes
| Status Code | Description |
|---|---|
| 201 | File uploaded successfully |
| 400 | Upload unsuccessful (bad request) |
| 401 | Invalid AccessKey, region hostname, or non-binary file format |
Important considerations
- Use the correct regional endpoint for your storage zone’s primary region
- Checksum hashes must be SHA256 in HEX format and UPPERCASE
- Use
--upload-filewith curl to send file contents as raw binary - The
Content-Typeheader helps with proper file serving but is optional