The Logging API provides access to raw request logs for all pull zones with logging enabled. Logs appear in near real-time and are retained for 3 days.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.
Base URL
Authentication
Authenticate using theAccessKey header or a bearer JWT:
Find your API key in the account
settings under API Keys.
API versions
Two versions of the API are available:Cache status values
Both API versions return the following cache status values:| Value | Description |
|---|---|
HIT | Response served directly from cache |
MISS | Response not in cache; fetched from origin |
BYPASS | Cache was skipped (e.g. due to request headers, cookies, or configuration) |
REVALIDATED | Cached response was validated with origin and reused |
STALE | Stale cached response served (typically due to origin being unavailable or slow) |
UPDATING | Stale content served while a background cache update is in progress |
- | No cache interaction (e.g. non-cacheable methods like POST) |
Rate limits
Both API versions enforce a per-pull-zone rate limit of 30 requests per 10 seconds. Exceeding this returns a429 response.
Error codes
| HTTP Status | Code | Description |
|---|---|---|
| 400 | invalid_request | One or more query parameters failed validation |
| 401 | unauthorized | No authentication credentials provided |
| 403 | forbidden | Credentials are invalid, or pull zone is suspended/disabled |
| 404 | logging_disabled | Logging is not enabled for this pull zone |
| 429 | rate_limited | Per-pull-zone rate limit exceeded |
| 500 | internal_error | Unexpected server error |