Skip to content

Create a server

POST /v1/servers

Orders a new server on the cloud, in the location and on the plan you choose, and sets it up for WordPress. To connect a server you already have, send cloud: "custom" with its public IPv4 address.

What happens next. The answer is the server with status: "provisioning"; it then moves through the stages in stage (creating, booting, packages, database, security, verifying). It's usually ready in about 5 minutes: poll GET /servers/{serverId} every 10 seconds until status is active. If setup fails, status is failed with the reason in lastError; start it again with POST /servers/{serverId}/actions/retry-provisioning. Rarely the bank takes a moment to decide the card payment: the answer is then the server with status: "pending_payment". It moves on to provisioning by itself once the bank accepts, or ends deleted, with nothing charged, if it refuses.

A first site. Send site to have WordPress installed as soon as the server is ready (1 to 2 minutes more). The site is listed at once, as queued.

Imunify360 comes with the server. While the account's features.security is on, a server Rabbitflare creates with Intel or AMD processors and 2 GB of memory or more (not your own servers, Amazon EC2 or Arm sizes) gets Imunify360 turned on by itself once it's ready (server.ready): security.status goes to installing, then on (server.security_enabled, a few minutes) or failed (server.security_failed). Its firewall, web application firewall and bot protection guard every site on the server, and its malware scanning and cleaning is included for the server's oldest site; each other site can have it too, for $2.99 a month (sites.malwareProtection.enable). It uses about 300 MB of the server's memory, and its web application firewall rules take the place of Rabbitflare's own for the server's sites. To run the server without it, wait until security.status is installing (turning it off while it's still off does nothing, and it would start anyway), then call servers.security.disable; a server where it was turned off isn't given it again. A server resized to 2 GB or more later doesn't get it by itself: use servers.security.enable.

A server of your own. Nothing is ordered: the server waits until you run its connect command on it. Read the command with GET /servers/{serverId}/connection. Servers of your own are covered by the account's Own servers plan.

Payment. The server is billed each month at its plan's price (priceMonthlyCents). The wallet is used first, then the card in paymentMethodId, or the account's default card. The account must have agreed to card charges once, in the panel's Billing. If the card is declined (card_declined) or the bank asks to confirm the payment (payment_action_required), nothing is created: no server, and no server.created or site.created event. 502 billing_error means the card payment couldn't be made, was stopped before it ran, or couldn't be confirmed: send the same request again with the same key, which finds a payment that went through and never pays twice (what nobody sends again is given back). An Idempotency-Key header is required. A request sent again while its first try's payment is being checked answers 409 busy (try again in a minute, with the same key: it's never paid twice); one whose server was bought and has been deleted since answers 409 conflict (a new key buys another). A server of your own whose Own servers plan's first payment is still with the bank answers 409 busy too, with nothing charged: try again in a few minutes.

Limits. By default, 10 new servers an hour per account through the API (see Rate limits), and the account's own limit on servers. Some sizes and clouds open only after an account's first month.

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

servers:create
Create servers. Order new servers and connect servers you already have. They're billed to this account.

Headers

FieldType and description
Idempotency-Key Required

string 1 to 255 characters

A key of your own for this request, like a UUID: letters, digits and _ - : . Send the request again with the same key (after a timeout, say) and it's done only once. Keys are kept for 24 hours (see Idempotency).

Request body

JSON, with these fields. Fields that aren't listed are refused.

FieldType and description
name Required

string 2 to 48 characters

The server's name: 2 to 48 letters, numbers, spaces, dots, dashes or underscores, starting with a letter or number.

cloud Required

string

Where the server runs: digitalocean, vultr, hetzner, linode, gcp (Google Cloud) or edge (Amazon EC2), where it's open to your account; or custom to connect a server of your own.

One of: digitaloceanvultrhetznerlinodegcpedgecustom

region

string 1 to 64 characters

The location's id on that cloud, like fra1 (DigitalOcean, Frankfurt) or nyc3 (DigitalOcean, New York). Required, except for a server of your own.

planId

string 1 to 80 characters

The plan's id, offered on that cloud in that location. Required, except for a server of your own.

ipv4

string Up to 15 characters

A server of your own (cloud: "custom") only, and required there: its public IPv4 address.

site

object

A WordPress site to install as soon as the server is ready. Left out: the server starts empty.

name Required

string 2 to 48 characters

The site's name: 2 to 48 letters, numbers, spaces, dots, dashes or underscores, starting with a letter or number.

siteTitle Required

string 1 to 120 characters

The site's title in WordPress (up to 120 characters). It can be changed in WordPress later.

adminUsername Required

string

The WordPress administrator's username: 3 to 32 lowercase letters, numbers, dots, dashes or underscores. Not admin or administrator.

adminEmail Required

string Up to 254 characters

The WordPress administrator's email address.

resources

object

What the site may use of its server. Left out: no limits of its own.

Show its 9 fields
FieldType and description
cpuPercent

integer or null 5 to 100

The share of the server's processor the site may use, in percent of all its cores. 5 to 100%; null or left out: no limit of its own.

memoryMb

integer or null 256 to 1,048,576

The memory the site may use (its PHP and scheduled tasks), in MB. At most the server's memory less 256 MB. 256 to 1,048,576 MB; null or left out: no limit of its own.

processes

integer or null 32 to 4,096

How many processes the site may run at once. 32 to 4,096; null or left out: no limit of its own.

priority

string

The site's share of the processor when the server is busy: low, normal (the default) or high.

One of: lownormalhigh

workers

integer or null 1 to 64

How many PHP workers the site may run (requests served at once). Left out: set by the server's memory. 1 to 64; null or left out: no limit of its own.

phpMemoryMb

integer or null 64 to 1,024

PHP's memory limit per request, in MB. Left out: 256 MB. 64 to 1,024 MB; null or left out: no limit of its own.

timeLimit

integer or null 30 to 300

How long one request may run, in seconds. Left out: 120 seconds. 30 to 300 seconds; null or left out: no limit of its own.

uploadMb

integer or null 8 to 512

The largest upload, in MB. Left out: 64 MB. 8 to 512 MB; null or left out: no limit of its own.

inputVars

integer or null 1000 to 20,000

The most form fields one request may send. Left out: 5,000. 1,000 to 20,000; null or left out: no limit of its own.

paymentMethodId

string

A saved card to pay with. Left out: the account's default card. The wallet is always used first.

Example request

# Keep this key when you send the same request again (after a timeout, say), so it's only done once.
KEY=$(uuidgen)
curl -X POST "https://api.rabbitflare.com/v1/servers" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $KEY" \
  -d '{
  "name": "Production",
  "cloud": "digitalocean",
  "region": "fra1",
  "planId": "business",
  "site": {
    "name": "Shop",
    "siteTitle": "Example Shop",
    "adminUsername": "editor",
    "adminEmail": "[email protected]"
  }
}'

Response

201 Created Returns the Server object in data.

The Server object's fields 60 fields
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 response

201 Created
{
  "data": {
    "id": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
    "name": "Production",
    "status": "provisioning",
    "stage": "queued",
    "pendingAction": null,
    "cloud": "digitalocean",
    "region": "fra1",
    "planId": "business",
    "priceMonthlyCents": 5200,
    "currency": "usd",
    "ipv4": null,
    "ipv6": null,
    "phpVersion": "8.3",
    "backupsEnabled": true,
    "automaticBackupsBy": "cloud",
    "billing": {
      "method": "card",
      "status": "active",
      "currentPeriodEnd": "2026-12-18T08:46:49.000Z"
    },
    "pendingPlanId": null,
    "scheduledDeletionAt": null,
    "trial": false,
    "specs": null,
    "siteCount": 1,
    "dataTransfer": null,
    "phpSecurity": {
      "state": "unknown",
      "reason": "unchecked",
      "build": null,
      "packages": 0,
      "fixes": [],
      "restart": [],
      "auto": false,
      "listsAt": null,
      "securityAt": null,
      "checkedAt": null,
      "error": null
    },
    "security": {
      "status": "on",
      "available": true
    },
    "lastError": null,
    "readyAt": null,
    "createdAt": "2026-11-18T08:46:49.000Z",
    "updatedAt": "2026-11-18T08:46:49.000Z"
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
400 idempotency_key_required

This operation needs an Idempotency-Key header: it spends money, or doing it twice isn't the same as doing it once.

Send a unique Idempotency-Key (a UUID) with the request.

400 bad_plan

The plan can't be paid for: it has no price set up.

Choose another plan, or contact support.

402 payment_method_required

There's no money in the wallet and no saved card to pay with.

Add funds to the wallet or save a card in the panel.

402 card_declined

The card was declined. message gives the bank's reason. Nothing was created.

Use another card, or add funds to the wallet.

402 payment_action_required

The bank wants the customer to confirm this payment, which can't happen through the API. Nothing was created.

Add funds to the wallet in the panel (wallet payments need no confirmation), or make this purchase in the panel.

402 card_needed

Servers on this cloud need a saved card: data transfer beyond what the plan includes is charged to it.

Save a card in the panel, or pass paymentMethodId.

402 transfer_unpaid

An earlier data transfer bill is unpaid.

Pay it on the panel's Billing page, then try again.

402 payment_required

An unpaid bill must be settled first (for example, the Own servers plan's).

Pay the open bill on the panel's Billing page, then try again.

402 · 409 · 502 billing_error

The payment couldn't be made or set up. message gives the reason.

Check the card in the panel, then try again. A 502 can be tried again in a minute.

403 charges_not_authorized

The account hasn't agreed to card charges yet.

In the panel, open Billing and accept the terms once. Then try again.

403 · 409 · 422 plan_unavailable

The plan can't be had there: it isn't offered on this cloud or in this region, it's sold out there right now, or it isn't open to your account yet.

Choose another plan or region. GET /v1/clouds/{cloud}/availability says what's in stock.

403 · 503 cloud_unavailable

403: servers on this cloud aren't open to your account. 503: the cloud didn't answer just now (its stock couldn't be checked, or a server's snapshots and backups couldn't all be listed).

403: choose a cloud that GET /v1/clouds lists. 503: try again in a minute.

403 · 409 limit_reached

A limit is reached: message says which (servers per account, snapshots per server, domains per site, …).

Delete something first, or contact support to raise the limit.

403 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

403 edge_new_account

A new account can have a few servers on this cloud, and its larger sizes once the account is a month old.

Choose a smaller size, or contact support to raise the limit.

403 email_unverified

The account's email address isn't confirmed yet.

Open the link in the confirmation email (the panel can send it again), then try again.

404 card_not_found

The card in paymentMethodId isn't one of this account's saved cards.

Leave paymentMethodId out to pay with the default card, set in the panel's Billing.

409 busy

Another change is still in progress on this server or site, or something else under way stops this one for now (a site backup running on the server, the server's backups being moved): message says what.

Wait until it finishes, then try again. A change to the server or site itself is done when its pendingAction is null again; for anything else, message says how long to wait.

409 conflict

This clashes with something that exists, or is already done (for example, a domain already connected to a site).

Read message; there may be nothing left to do.

422 validation_failed

One or more fields are missing or wrong. fields names each one with what's wrong.

Correct the fields named in fields. Unknown fields are refused too.

503 card_payments_off

Card payments can't be taken right now, and servers on this cloud are paid by card.

Try again later, or choose another cloud.

503 offer_unavailable

A discount couldn't be applied just now. Nothing was charged.

Try again in a minute.

Rate limit

Write requests: 30 a minute per token, 60 per account. New servers: 10 an hour per account. More in Rate limits.

Added on .

Popular

API docs