Skip to content

Servers

Servers: create, power, resize, snapshots and restores, graphs, logs and more. For the same in the control panel, see Manage a server.

Operations

OperationRequest
List servers GET /v1/servers
Create a server POST /v1/servers
Get a server GET /v1/servers/{serverId}
Destroy a server DELETE /v1/servers/{serverId}
List a server's sites GET /v1/servers/{serverId}/sites
Power on a server POST /v1/servers/{serverId}/actions/power-on
Power off a server POST /v1/servers/{serverId}/actions/power-off
Reboot a server POST /v1/servers/{serverId}/actions/reboot
Resize a server POST /v1/servers/{serverId}/actions/resize
Retry a failed server setup POST /v1/servers/{serverId}/actions/retry-provisioning
Restart PHP on a server POST /v1/servers/{serverId}/actions/restart-php
Check PHP security updates now POST /v1/servers/{serverId}/actions/check-php-security
Get a server's graphs GET /v1/servers/{serverId}/metrics
List a server's snapshots and backups GET /v1/servers/{serverId}/snapshots
Take a snapshot POST /v1/servers/{serverId}/snapshots
Delete a snapshot DELETE /v1/servers/{serverId}/snapshots/{snapshotId}
Restore a server from a snapshot POST /v1/servers/{serverId}/actions/restore
Get a server's logs and clean-up settings GET /v1/servers/{serverId}/logs
Change a server's log clean-up PUT /v1/servers/{serverId}/logs/settings
Clear a server's logs POST /v1/servers/{serverId}/logs/actions/clear
Get the connect command of your own server GET /v1/servers/{serverId}/connection
Make a new connect command POST /v1/servers/{serverId}/connection/actions/renew
Check the connection to your own server again POST /v1/servers/{serverId}/connection/actions/check
Get a server's Media Offload storage GET /v1/servers/{serverId}/media-offload

The Server object

A server: one machine on the cloud you chose (or one of your own), holding any number of WordPress sites.

FieldType and description
id

string

The server's id.

name

string

The server's name, as shown in the panel.

status

string

pending_payment: waiting for its first payment. provisioning: being set up (see stage). active: running. off: powered off. suspended: switched off for an unpaid bill. failed: setup failed (see lastError). deleting: being destroyed. deleted: destroyed.

Known values: pending_paymentprovisioningactiveoffsuspendedfaileddeletingdeleted More can appear.

stage

string

How far setup has got: queued, creating, preflight (a server of your own is being checked), booting, packages, database, security, verifying (connecting to Rabbitflare), then complete, or failed.

Known values: queuedcreatingpreflightbootingpackagesdatabasesecurityverifyingcompletefailed More can appear.

pendingAction

string or null

A change in progress on the server (power_on, power_off, reboot, resize, snapshot, restore, destroy). Another change waits until it's done (409 busy). Null when there's none.

Known values: power_onpower_offrebootresizesnapshotrestoredestroy More can appear.

cloud

string

Where the server runs: digitalocean, vultr, hetzner, linode, gcp (Google Cloud), edge (Amazon EC2), or custom (a server of your own).

Known values: digitaloceanvultrhetznerlinodegcpedgecustom More can appear.

region

string

The location's id on its cloud, like fra1 (Frankfurt). own for a server of your own.

planId

string

The plan's id (see the plans of each cloud). own for a server of your own.

priceMonthlyCents

integer

What this server is billed each month, in US cents, before any offer: during a sale an invoice can be lower, never higher. It stays as bought when plan prices change.

currency

string Always "usd"

Always usd: amounts are in US cents.

ipv4

string or null

The server's public IPv4 address. Null until it has one.

ipv6

string or null

The server's public IPv6 address. Null when it has none.

phpVersion

string

The PHP version the server's sites run, like 8.3.

backupsEnabled

boolean

Whether the whole server is backed up automatically: by its cloud, or by Rabbitflare once it has moved to Rabbitflare's own backups (automaticBackupsBy says which). It stays true when the cloud's own backups are turned off for Rabbitflare's. false for Amazon EC2 and Google Cloud servers and servers of your own: their sites are backed up one by one.

automaticBackupsBy

string or null

Who takes the server's automatic backups: rabbitflare (Rabbitflare's own weekly backups; its cloud's are off), cloud (its cloud's automatic backups), or both while it moves from its cloud's to Rabbitflare's. Given in answers about one server (GET /servers/{serverId} and the changes made to one); null in the list of servers, and for servers without automatic backups (backupsEnabled: false).

Known values: rabbitflarecloudboth More can appear.

billing

object

How the server is paid for.

method

string or null

How the server is paid: card (cards and the wallet) or paypal. Null when it isn't billed on its own (a server of your own is covered by the Own servers plan).

Known values: cardpaypal More can appear.

status

string or null

The state of the server's monthly payment: active, past_due (a payment failed and is being retried), unpaid, canceled… Null before the first payment.

Known values: activetrialingpast_dueunpaidpausedcanceledincomplete_expiredcomplimentary More can appear.

currentPeriodEnd

string or null An ISO 8601 time, in UTC

When the period paid for ends (the next payment is due then). Null when not known.

pendingPlanId

string or null

The plan a resize is waiting to move to, while a PayPal approval is outstanding. Null otherwise.

scheduledDeletionAt

string or null An ISO 8601 time, in UTC

When the server will be destroyed if nothing changes (a suspended server, or a free trial that wasn't kept). Null otherwise.

trial

boolean

A free trial server that hasn't been kept (paid for) yet.

specs

object or null

Servers of your own: the machine as it reported itself. Null for servers bought from Rabbitflare (their plan says it all).

vcpus

integer

Processor cores.

memoryGb

number

Memory, in GB.

diskGb

number

Disk size, in GB.

os

string

The operating system, as the server reported it.

arch

string

The processor architecture, like x86_64 or aarch64.

provider

string or null

The hosting provider the machine was recognised as, when it was (like Amazon Web Services). Null otherwise.

siteCount

integer

Sites on the server (staging copies aren't counted).

dataTransfer

object or null

Amazon EC2 and Google Cloud servers: data transfer this month. Null on the other clouds, where it isn't billed by use.

period

string

The month counted, as YYYY-MM.

usedBytes

integer

Data the server sent this month so far (backups to Rabbitflare Backup in the server's own location don't count).

includedBytes

integer

What the server's plan includes this month.

extraCentsPerGb

integer

The price of each GB beyond what's included, in US cents.

currency

string Always "usd"

Always usd: amounts are in US cents.

measuredAt

string or null An ISO 8601 time, in UTC

When it was last measured (every hour). Null until the first time.

unpaidBill

boolean

A data transfer bill that includes this server couldn't be charged: the server stays off until it's paid (in the panel's Billing).

phpSecurity

object

Whether the server has every PHP security fix installed and running. Checked every few hours, and on demand.

state

string

current: every PHP security fix Ubuntu has released is installed and running. waiting: a fix is released but not installed yet (they install themselves each day when auto is true). restart: it's installed, but some PHP still runs the build from before it (restart PHP). unknown: see reason.

Known values: currentwaitingrestartunknown More can appear.

reason

string or null

Why the state is unknown: unchecked (no check has finished yet), failed (no check has worked yet), stale (the latest check is too old to go by) or lists (the server's list of security updates is old, so newer fixes may be missing from it). Null otherwise.

Known values: uncheckedfailedstalelists More can appear.

build

string or null

The installed PHP build, like 8.3.6-0ubuntu0.24.04.13. Null until the first check.

packages

integer

How many PHP packages are installed (PHP itself and its extensions).

fixes

array of objects

Security fixes released for PHP that aren't installed yet.

Show its 3 fields
FieldType and description
name

string

The package.

installed

string

The version installed now.

fixed

string

The version with the fix.

restart

array of strings

Who still runs the build from before an update: the server's PHP, or a site's address.

auto

boolean

Whether security fixes install themselves every day.

listsAt

string or null An ISO 8601 time, in UTC

When the server last downloaded the lists of updates. Null when it never has.

securityAt

string or null An ISO 8601 time, in UTC

When the list of security updates the server has was published. Null when it has none.

checkedAt

string or null An ISO 8601 time, in UTC

When the server was last checked. Null until the first check.

error

string or null

Why the latest check failed, when it failed after the last good one. Null otherwise.

security

object

The server's security (Imunify360). GET /servers/{serverId}/security has the rest.

status

string

Imunify360 on the server: off, installing (a few minutes), on, failed, or removing. On servers Rabbitflare creates with Intel or AMD processors and 2 GB of memory or more, it's turned on by itself once the server is ready, while the account's features.security is on.

Known values: offinstallingonfailedremoving More can appear.

available

boolean

Whether the server can run Imunify360 and it's open to the account. GET /servers/{serverId}/security says why not.

lastError

string or null

Why the last setup or change failed. Null when nothing failed.

readyAt

string or null An ISO 8601 time, in UTC

When the server finished setting up (a server of your own: when it connected). Null until then.

createdAt

string An ISO 8601 time, in UTC

When the server was created.

updatedAt

string An ISO 8601 time, in UTC

When the server last changed.

Example

The Server object
{
  "id": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
  "name": "Production",
  "status": "active",
  "stage": "complete",
  "pendingAction": null,
  "cloud": "digitalocean",
  "region": "fra1",
  "planId": "business",
  "priceMonthlyCents": 5200,
  "currency": "usd",
  "ipv4": "203.0.113.10",
  "ipv6": "2001:db8::10",
  "phpVersion": "8.3",
  "backupsEnabled": true,
  "automaticBackupsBy": "rabbitflare",
  "billing": {
    "method": "card",
    "status": "active",
    "currentPeriodEnd": "2026-12-18T08:46:49.000Z"
  },
  "pendingPlanId": null,
  "scheduledDeletionAt": null,
  "trial": false,
  "specs": null,
  "siteCount": 2,
  "dataTransfer": null,
  "phpSecurity": {
    "state": "current",
    "reason": null,
    "build": "8.3.6-0ubuntu0.24.04.13",
    "packages": 14,
    "fixes": [],
    "restart": [],
    "auto": true,
    "listsAt": "2026-11-18T06:12:04.000Z",
    "securityAt": "2026-11-17T21:30:00.000Z",
    "checkedAt": "2026-11-18T07:00:31.000Z",
    "error": null
  },
  "security": {
    "status": "on",
    "available": true
  },
  "lastError": null,
  "readyAt": "2026-11-18T08:51:12.000Z",
  "createdAt": "2026-11-18T08:46:49.000Z",
  "updatedAt": "2026-11-18T09:02:31.000Z"
}

The PhpSecurity object

Whether the server has every PHP security fix installed and running. Checked every few hours, and on demand.

FieldType and description
state

string

current: every PHP security fix Ubuntu has released is installed and running. waiting: a fix is released but not installed yet (they install themselves each day when auto is true). restart: it's installed, but some PHP still runs the build from before it (restart PHP). unknown: see reason.

Known values: currentwaitingrestartunknown More can appear.

reason

string or null

Why the state is unknown: unchecked (no check has finished yet), failed (no check has worked yet), stale (the latest check is too old to go by) or lists (the server's list of security updates is old, so newer fixes may be missing from it). Null otherwise.

Known values: uncheckedfailedstalelists More can appear.

build

string or null

The installed PHP build, like 8.3.6-0ubuntu0.24.04.13. Null until the first check.

packages

integer

How many PHP packages are installed (PHP itself and its extensions).

fixes

array of objects

Security fixes released for PHP that aren't installed yet.

name

string

The package.

installed

string

The version installed now.

fixed

string

The version with the fix.

restart

array of strings

Who still runs the build from before an update: the server's PHP, or a site's address.

auto

boolean

Whether security fixes install themselves every day.

listsAt

string or null An ISO 8601 time, in UTC

When the server last downloaded the lists of updates. Null when it never has.

securityAt

string or null An ISO 8601 time, in UTC

When the list of security updates the server has was published. Null when it has none.

checkedAt

string or null An ISO 8601 time, in UTC

When the server was last checked. Null until the first check.

error

string or null

Why the latest check failed, when it failed after the last good one. Null otherwise.

Example

The PhpSecurity object
{
  "state": "current",
  "reason": null,
  "build": "8.3.6-0ubuntu0.24.04.13",
  "packages": 14,
  "fixes": [],
  "restart": [],
  "auto": true,
  "listsAt": "2026-11-18T06:12:04.000Z",
  "securityAt": "2026-11-17T21:30:00.000Z",
  "checkedAt": "2026-11-18T07:00:31.000Z",
  "error": null
}

The ServerMetrics object

The server's graphs over a time range: processor, memory, disk, load and bandwidth. Empty until the server is running.

FieldType and description
range

string

The time the graphs cover: 1h, 6h, 24h or 7d.

Known values: 1h6h24h7d More can appear.

cpu

array of objects

Processor use, in percent (0 to 100).

t

integer

The time of the reading, in Unix seconds.

v

number

The reading.

memory

array of objects

Memory in use, in percent.

t

integer

The time of the reading, in Unix seconds.

v

number

The reading.

disk

array of objects

Disk space in use, in percent.

t

integer

The time of the reading, in Unix seconds.

v

number

The reading.

load

array of objects

The load average over one minute.

t

integer

The time of the reading, in Unix seconds.

v

number

The reading.

bandwidthIn

array of objects

Data received, in megabits per second.

t

integer

The time of the reading, in Unix seconds.

v

number

The reading.

bandwidthOut

array of objects

Data sent, in megabits per second.

t

integer

The time of the reading, in Unix seconds.

v

number

The reading.

notice

string or null

A note about the graphs, for example while a new server's history is still being collected. Null when there's none.

Example

The ServerMetrics object
{
  "range": "1h",
  "cpu": [
    {
      "t": 1763455200,
      "v": 12.4
    }
  ],
  "memory": [
    {
      "t": 1763455200,
      "v": 41.7
    }
  ],
  "disk": [
    {
      "t": 1763455200,
      "v": 21.3
    }
  ],
  "load": [
    {
      "t": 1763455200,
      "v": 0.18
    }
  ],
  "bandwidthIn": [
    {
      "t": 1763455200,
      "v": 0.42
    }
  ],
  "bandwidthOut": [
    {
      "t": 1763455200,
      "v": 1.35
    }
  ],
  "notice": null
}

The Snapshot object

A copy of the whole server that it can be restored from: a snapshot, or an automatic backup, kept by the server's cloud or by Rabbitflare (takenBy).

FieldType and description
id

string

The snapshot's or backup's id: a number on some clouds, a UUID on others and for Rabbitflare's copies. Pass it as imageId to restore it.

name

string

Its name. An automatic backup without a name of its own is named by the day it was taken where the server is (its location's time zone), as the server's activity names it: Weekly backup 2026-11-16 for Rabbitflare's, Backup 2026-11-16 for the cloud's.

kind

string

snapshot: one taken on request. backup: an automatic backup, the cloud's or Rabbitflare's (takenBy).

Known values: snapshotbackup More can appear.

takenBy

string

Who took it and keeps it: cloud, the server's cloud; rabbitflare, Rabbitflare itself: its weekly backups of the server (it keeps the most recent ones), and a Linode server's snapshots once the server is on Rabbitflare's backups. Restoring one of Rabbitflare's copies works a little differently (see the restore operation).

Known values: rabbitflarecloud More can appear.

sizeGb

number

Its size, in GB.

createdAt

string An ISO 8601 time, in UTC

When it was taken.

Example

The Snapshot object
{
  "id": "171824639",
  "name": "Before the theme update",
  "kind": "snapshot",
  "takenBy": "cloud",
  "sizeGb": 6.31,
  "createdAt": "2026-11-17T22:14:05.000Z"
}

The ServerLogs object

The server's logs: the room they take, and how they're cleaned up.

FieldType and description
settings

object

How the server cleans up its logs.

autoClean

boolean

Whether old logs are cleaned up automatically, every hour.

keepDays

integer

How many days old copies of logs are kept: 1, 3, 7, 14, 30, 90.

maxSizeMb

integer

The size, in MB, a log may reach before it's rotated: 10, 50, 100, 250, 500, 1000.

freeSpace

boolean

Whether space is freed up from logs when the disk is over 90% full.

state

string

applied: the server uses these settings. applying: they're being put in place. failed: they couldn't be (see error).

Known values: appliedapplyingfailed More can appear.

error

string or null

Why the settings couldn't be put in place. Null otherwise.

usage

object or null

How much room the logs take, read from the server. Null while the server isn't running or didn't answer (see usageError).

disk

object

The server's disk.

Show its 4 fields
FieldType and description
totalBytes

integer

The disk's size.

usedBytes

integer

Space in use.

freeBytes

integer

Space free.

usedPercent

number

Space in use, in percent.

logsBytes

integer

Space all logs take.

groups

array of objects

The system's own logs, by group.

Show its 6 fields
FieldType and description
id

string

The group: web, firewall, system, database or other.

Known values: webfirewallsystemdatabaseother More can appear.

title

string

The group's name, as the panel shows it.

bytes

integer

Space the group's logs take.

currentBytes

integer

The logs being written now.

oldBytes

integer

Old copies of them.

journalBytes

integer or null

The system journal's share (the system group only). Null for other groups.

sites

array of objects

Each site's logs.

Show its 7 fields
FieldType and description
siteId

string or null

The site's id. Null when the logs belong to a site that no longer exists.

name

string

The site's name.

stagingCopy

boolean

A staging copy of another site.

bytes

integer

Space the site's logs take.

phpBytes

integer

Its PHP error log.

debugBytes

integer

Its WordPress debug log.

oldBytes

integer

Old copies of its logs.

lastAutoClean

object or null

The last automatic clean-up. Null when there hasn't been one.

Show its 2 fields
FieldType and description
ranAt

string An ISO 8601 time, in UTC

When it ran.

freedBytes

integer

Space it freed.

autoCleanOn

boolean

Whether the server's hourly clean-up is set up and on right now.

usageError

string or null

Why usage couldn't be read. Null when it was.

Example

The ServerLogs object
{
  "settings": {
    "autoClean": true,
    "keepDays": 7,
    "maxSizeMb": 100,
    "freeSpace": true,
    "state": "applied",
    "error": null
  },
  "usage": {
    "disk": {
      "totalBytes": 85899345920,
      "usedBytes": 18253611008,
      "freeBytes": 67645734912,
      "usedPercent": 21.3
    },
    "logsBytes": 412090368,
    "groups": [
      {
        "id": "web",
        "title": "Web server",
        "bytes": 201326592,
        "currentBytes": 12582912,
        "oldBytes": 188743680,
        "journalBytes": null
      }
    ],
    "sites": [
      {
        "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "name": "Shop",
        "stagingCopy": false,
        "bytes": 52428800,
        "phpBytes": 1048576,
        "debugBytes": 50331648,
        "oldBytes": 1048576
      }
    ],
    "lastAutoClean": {
      "ranAt": "2026-11-18T08:00:03.000Z",
      "freedBytes": 10485760
    },
    "autoCleanOn": true
  },
  "usageError": null
}

The ServerLogSettings object

How the server cleans up its logs.

FieldType and description
autoClean

boolean

Whether old logs are cleaned up automatically, every hour.

keepDays

integer

How many days old copies of logs are kept: 1, 3, 7, 14, 30, 90.

maxSizeMb

integer

The size, in MB, a log may reach before it's rotated: 10, 50, 100, 250, 500, 1000.

freeSpace

boolean

Whether space is freed up from logs when the disk is over 90% full.

state

string

applied: the server uses these settings. applying: they're being put in place. failed: they couldn't be (see error).

Known values: appliedapplyingfailed More can appear.

error

string or null

Why the settings couldn't be put in place. Null otherwise.

Example

The ServerLogSettings object
{
  "autoClean": true,
  "keepDays": 7,
  "maxSizeMb": 100,
  "freeSpace": true,
  "state": "applied",
  "error": null
}

The ServerLogsCleared object

What clearing logs freed.

FieldType and description
freedBytes

integer

Space freed on the server's disk.

Example

The ServerLogsCleared object
{
  "freedBytes": 50331648
}

The ServerConnection object

How to connect a server of your own: the command to run on it, and the ports to open.

FieldType and description
command

string or null

The one line to run on your server as root to connect it. It carries a one-time key: keep it private. Null once the server is connected.

ports

array of objects

The ports your server's firewall must allow from the internet.

port

integer

The port.

protocol

string

The protocol.

Known values: TCP More can appear.

purpose

string

What it's for.

Example

The ServerConnection object
{
  "command": "curl -fsSL https://app.rabbitflare.com/api/connect/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/EXAMPLE-ONE-TIME-KEY | sudo bash",
  "ports": [
    {
      "port": 80,
      "protocol": "TCP",
      "purpose": "Web traffic (HTTP), and SSL certificate checks"
    },
    {
      "port": 443,
      "protocol": "TCP",
      "purpose": "Web traffic (HTTPS)"
    },
    {
      "port": 22022,
      "protocol": "TCP",
      "purpose": "SSH for the Rabbitflare control panel"
    }
  ]
}

The ServerMediaOffload object

Media Offload on a server: the storage included with it for its sites' media libraries, and what uses it.

FieldType and description
serverId

string

The server's id.

allowance

object or null

The server's included storage. Null on servers of your own: storage is included with the servers Rabbitflare creates.

includedBytes

integer

Storage included with the server, shared by its sites (decimal: 1 GB is 1,000,000,000 bytes).

usedBytes

integer

Storage the server's sites use now.

sites

array of objects

The sites using it, largest first.

Show its 3 fields
FieldType and description
siteId

string

The site's id.

name

string

The site's name.

bytes

integer

Storage it uses.

extraCentsPerGbMonth

number

The price of each GB stored beyond what's included, per month, in US cents (it can have decimals). Billed after the month ends.

monthToDateCents

integer or null

Extra storage this month so far, before it's billed, in US cents. Null for a token without billing:read.

currency

string Always "usd"

Always usd: amounts are in US cents.

Example

The ServerMediaOffload object
{
  "serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
  "allowance": {
    "includedBytes": 100000000000,
    "usedBytes": 12480000000,
    "sites": [
      {
        "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "name": "Shop",
        "bytes": 12480000000
      }
    ],
    "extraCentsPerGbMonth": 2.085,
    "monthToDateCents": 0,
    "currency": "usd"
  }
}

Shared objects

Operations of other groups answer with these too, so each has a page of its own.

The Site object
A WordPress site on one of your servers.
The ToolResult object
The answer of a tool that ran: what it did.

Popular

API docs