API reference
Every request the API answers, group by group: what it needs, every field, the answer and its errors, with examples in cURL, JavaScript, PHP and Python, and with the SDK. It's written from the API's own definition, so it always says what the API does.
Version v1 201 operations Updated
Groups
| Group | What it covers | Operations |
|---|---|---|
| Account | The account the token belongs to: its features and limits. | 1 |
| Catalogue | Clouds, locations and plans you can create servers with, and what's in stock. | 4 |
| Servers | Servers: create, power, resize, snapshots and restores, graphs, logs and more. | 24 |
| Sites | WordPress sites on your servers: create, sign in, tools, and delete. | 9 |
| Site domains | Connect domains to sites, verify their DNS and choose the primary one. | 7 |
| CDN | The included CDN for a site's static files. | 8 |
| Firewall | A site's web application firewall. | 7 |
| Cloudflare protection | Putting a site behind Cloudflare. | 3 |
| Server security | Imunify360 on a server: its firewall, web application firewall, bot checks, kernel patches and WordPress plugin. | 21 |
| Malware protection | Imunify360's malware scanning and cleaning for a site. | 12 |
| Resources | The CPU, memory, processes and PHP settings a site may use. | 3 |
| Cron jobs | Scheduled tasks on a site. | 9 |
| Files | A site's files: list, read, write, upload and download. | 13 |
| Backups | Site backups, restores, and where backups are stored. | 15 |
| Staging | A site's staging copy: create, refresh, push and undo. | 11 |
| Cloning | Copy a site to a new site. | 6 |
| RabbitPress Cache | The RabbitPress Cache plugin on sites, and its licences. | 3 |
| Media Offload | Keep a site's media library in cloud storage. | 9 |
| Rabbitflare SMTP | Send a site's WordPress emails through Rabbitflare. | 8 |
| Support tickets | Open support tickets and answer them. | 10 |
| Events | What happened on the account, newest first. | 2 |
| Webhooks | Get told when something happens, at a URL of yours. | 11 |
| Token | The API token in use. | 2 |
| Meta | The API's index, its OpenAPI document and a test call. | 3 |
Conventions
What every request has in common, at the base URL https://api.rabbitflare.com/v1.
- Authentication
- Send an API token, made in the control panel, in the
Authorizationheader of every request:Authorization: Bearer $RABBITFLARE_TOKEN. A token can only do what its scopes allow. More in Authentication. - Errors
- A request that fails answers with an HTTP status of 400 or more and an Error object:
codesays exactly what went wrong. More in Errors. - Pagination
- Lists answer one page at a time, 25 items unless
limitasks for up to 100, with a Pagination object that says how to read the next page. More in Pagination and filtering. - Rate limits
- A token can make 120 reads, 30 changes and 20 heavy requests a minute; an account twice as many. Each operation's page says which kind it is. More in Rate limits.
- Idempotency
- Send an
Idempotency-Key(your own key of up to 255 characters, like a UUID) with a change, and sending it again does the work only once. Keys are kept for 24 hours; requests that spend money need one. More in Idempotency.
Shared objects
Objects that operations of several groups answer with, each described once.
- The Error object
- The answer to a request that failed.
typeand the HTTP status say what kind of failure it is,codethe exact reason. - The Pagination object
- Where a list's page sits: whether more items follow, and the cursor to read them.
- The Site object
- A WordPress site on one of your servers.
- The ToolResult object
- The answer of a tool that ran: what it did.
OpenAPI and Postman
The whole reference as files, to generate a client or try requests:
- The OpenAPI document (OpenAPI 3.1, JSON)
- The Postman collection (set its
tokenvariable to your API token)