Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: bunny.net API Keys API
description: 'Learn how to use the bunny.net API. Everything that can be done with the control panel can also be achieved with our API documented on this page. To learn how to use the storage API, have a look at our storage API documentation
Third party API clients:
We currently do not maintain an official API library, but you can use one of the third party ones provided here:
https://github.com/codewithmark/bunnycdn (bunny.net PHP library, thanks to Code With Mark)
Note that third party clients are not maintained or developed by bunny.net so we unfortunately cannot offer support for them.'
termsOfService: https://bunny.net/tos
contact:
name: bunny.net
url: https://docs.bunny.net
email: support@bunny.net
version: 1.0.0
servers:
- url: https://api.bunny.net
description: bunny.net API Server
tags:
- name: API Keys
paths:
/apikey:
get:
tags:
- API Keys
summary: List API Keys
operationId: ApiKeyPublic_ListApiKeys
parameters:
- name: page
in: query
description: ''
schema:
type: integer
format: int32
default: 1
- name: perPage
in: query
description: ''
schema:
type: integer
format: int32
minimum: 5
maximum: 1000
default: 1000
responses:
'200':
description: The list of all API keys on the account
x-nullable: false
content:
application/json:
schema:
$ref: '#/components/schemas/PaginationListModelOfApiKeyModel'
application/xml:
schema:
$ref: '#/components/schemas/PaginationListModelOfApiKeyModel'
'400':
x-nullable: false
description: Failed removing hostname
content:
application/json:
schema:
$ref: '#/components/schemas/ApiErrorData'
application/xml:
schema:
$ref: '#/components/schemas/ApiErrorData'
'401':
description: The request authorization failed
'500':
description: Internal Server Error
'503':
description: The service is currently unavailable
security:
- AccessKey:
- User
- UserApi
description: The list of all API keys on the account
components:
schemas:
ApiKeyModel:
type: object
additionalProperties: false
properties:
Id:
type: integer
format: int64
Key:
type:
- string
- 'null'
Roles:
type:
- array
- 'null'
items:
type: string
required:
- Id
PaginationListModelOfApiKeyModel:
type: object
required:
- CurrentPage
- TotalItems
- HasMoreItems
properties:
Items:
type: array
items:
$ref: '#/components/schemas/ApiKeyModel'
CurrentPage:
type: integer
format: int32
TotalItems:
type: integer
format: int32
HasMoreItems:
type: boolean
securitySchemes:
AccessKey:
type: apiKey
description: API Access Key authorization header
name: AccessKey
in: header
x-generator: Dynamic OpenAPI Generator v1.0.0
x-provenance:
method: harvested
publisher: Bunny.net
source: https://bunny.net/docs/openapi/bunnynet-api-1.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)