Skip to content

Staging

A site's staging copy: create, refresh, push and undo. For the same in the control panel, see Try changes on a staging copy.

Operations

OperationRequest
Get a site's staging GET /v1/sites/{siteId}/staging
Create a staging copy POST /v1/sites/{siteId}/staging
Get the staging copy's password GET /v1/sites/{siteId}/staging/password-protection
Change the staging copy's settings PUT /v1/sites/{siteId}/staging/settings
Refresh the staging copy from the live site POST /v1/sites/{siteId}/staging/actions/refresh
Check what a staging operation would do GET /v1/sites/{siteId}/staging/preview
Push the staging copy to the live site POST /v1/sites/{siteId}/staging/actions/push
Undo a push to the live site POST /v1/sites/{siteId}/staging/actions/undo-push
Cancel the staging operation in progress POST /v1/sites/{siteId}/staging/actions/cancel
Delete a restore point DELETE /v1/sites/{siteId}/staging/restore-points/{runId}
Delete the staging copy DELETE /v1/sites/{siteId}/staging

The SiteStaging object

A live site's staging: its copy, the operation in progress, the restore point of its last push, and what was done lately. One staging copy per live site, on the same server, included with the site.

FieldType and description
live

object

The live site.

id

string

The live site's id.

name

string

The live site's name.

url

string

The live site's address.

copy

object or null

The site's staging copy. Null when it has none.

id

string

The copy's id. It's a site of its own (GET /sites/{siteId} shows it), changed through its live site's staging operations.

name

string

The copy's name: the live site's, with “(staging)”.

status

string

installing: being created (see the staging's activeRun). active: ready. failed: creating it failed, and it's being removed. deleting: being deleted.

Known values: installingactivefaileddeleting More can appear.

url

string

The copy's address.

adminUrl

string

The address of the copy's WordPress dashboard. Its users and passwords are the live site's, as of the last copy of the database.

hostname

string

The copy's own address: staging. and the live site's built-in address. Search engines are always asked not to index it.

sslStatus

string

The copy's SSL certificate: none, pending (being issued), active or failed.

Known values: nonependingactivefailed More can appear.

certificate

string

Which certificate the copy is served with: trusted (no browser warning), securing (a trusted one is being set up; meanwhile a temporary one, which browsers warn about), or temporary (only one made on its server, which browsers warn about).

Known values: trustedsecuringtemporary More can appear.

certificateRetry

boolean

Whether a trusted certificate can be asked for again (the last tries gave up): POST /sites/{siteId}/actions/reissue-ssl with the copy's id.

createdAt

string An ISO 8601 time, in UTC

When the copy was created.

databaseSyncedAt

string or null An ISO 8601 time, in UTC

When the live site's database was last copied into it (when it was made or refreshed). Null until then.

filesSyncedAt

string or null An ISO 8601 time, in UTC

When the live site's files were last copied into it. Null until then.

settings

object

The staging copy's settings.

Show its 6 fields
FieldType and description
protect

boolean

Password protection: visitors must enter username and its password to see the copy (GET /sites/{siteId}/staging/password-protection). On by default. The copy has the live site's user accounts, so keep it on unless you need to share the copy.

username

string

The username visitors enter while password protection is on.

holdEmail

boolean

Whether the copy's outgoing email is held, so it sends no orders, password resets or newsletters. On by default.

tasks

boolean

Whether scheduled tasks (WP-Cron, Action Scheduler) run on the copy. Off by default, so the copy doesn't repeat the live site's work (renewals, newsletters).

status

string

Whether these settings are in place on the server: applying (being put in place, a few seconds), applied, or failed (see lastError; send them again).

Known values: appliedapplyingfailed More can appear.

lastError

string or null

Why the settings couldn't be put in place (with status: "failed"). Null otherwise.

activeRun

object or null

The staging operation in progress (or waiting for our team). Null when none is. Poll GET /sites/{siteId}/staging every 10 seconds until it's null again; the operation is then first in recentRuns.

id

string

The operation's id.

operation

string

create (make the copy), refresh (copy the live site into it again), push (copy it to the live site) or undo (put the live site back to a restore point).

Known values: createrefreshpushundo More can appear.

status

string

queued: waiting to start (one staging operation runs on a server at a time). running: under way (see stage and progress). completed. failed: see lastError; what it was changing is as it was. cancelled. attention: something went wrong while switching the live site over, and our team is putting it right.

Known values: queuedrunningcompletedfailedcancelledattention More can appear.

phase

string or null

While it runs: prepare (getting everything ready; the live site hasn't been touched and it can be cancelled), apply (switching over, which takes seconds) or recovering (being put right). Null while queued and once it's finished.

Known values: prepareapplyrecovering More can appear.

stage

string or null

What's happening now, in words. Null once it's finished.

progress

integer or null

How far it has got, 0 to 100. Null when that isn't known.

cancellable

boolean

Whether it can be cancelled now (POST /sites/{siteId}/staging/actions/cancel): while it's queued, or still preparing.

options

object

What the operation was asked to do.

Show its 4 fields
FieldType and description
parts

string or null

For a refresh: what it copies from the live site: all, files or database. Null otherwise.

Known values: allfilesdatabase More can appear.

scope

string or null

For a push: what it copies to the live site: code (WordPress itself, plugins, themes, must-use plugins and languages), database (the database, and media added on the copy) or everything (both). Null otherwise.

Known values: codedatabaseeverything More can appear.

tables

array of strings or null

For a push of the database: the only tables it copies. Null: all of them.

restoreRunId

string or null

For an undo: the restore point it puts the live site back to (the runId of the push or undo that made it). Null otherwise.

lastError

string or null

Why it failed, or why it waits for our team. Null otherwise.

notes

array of strings

For a finished operation: facts worth knowing (files left out, places that still mention the other address…).

createdAt

string An ISO 8601 time, in UTC

When it was asked for.

startedAt

string or null An ISO 8601 time, in UTC

When it started on the server. Null until then.

finishedAt

string or null An ISO 8601 time, in UTC

When it finished. Null until then.

restorePoints

array of objects

The restore point of the last push or undo: what it replaced on the live site. Only the newest is kept: the next push or undo replaces it, and the one it replaces is listed discarding until it's gone. Newest first.

runId

string

The id of the push (or undo) that made it. Send it to POST /sites/{siteId}/staging/actions/undo-push to put the live site back to it, or delete it with DELETE /sites/{siteId}/staging/restore-points/{runId}.

operation

string

What made it: a push, or an undo (so the undo itself can be undone).

Known values: pushundo More can appear.

scope

string or null

What it holds of the live site, as it was before: code (WordPress itself, plugins, themes, must-use plugins and languages), database (the database, and media added on the copy) or everything (both). Null when not known.

Known values: codedatabaseeverything More can appear.

status

string

available: an undo can use it. using: an undo is using it now. held: kept while our team puts the site right. discarding: being deleted.

Known values: availableusinghelddiscarding More can appear.

createdAt

string An ISO 8601 time, in UTC

When it was made.

expiresAt

string or null An ISO 8601 time, in UTC

When it's deleted by itself (7 days after it was made), unless the next push or undo replaces it first. Null when it's kept for now.

sizeBytes

integer or null

The room it takes on the server's disk. Null when not known.

recentRuns

array of objects

The last 10 finished staging operations, newest first.

id

string

The operation's id.

operation

string

create (make the copy), refresh (copy the live site into it again), push (copy it to the live site) or undo (put the live site back to a restore point).

Known values: createrefreshpushundo More can appear.

status

string

queued: waiting to start (one staging operation runs on a server at a time). running: under way (see stage and progress). completed. failed: see lastError; what it was changing is as it was. cancelled. attention: something went wrong while switching the live site over, and our team is putting it right.

Known values: queuedrunningcompletedfailedcancelledattention More can appear.

phase

string or null

While it runs: prepare (getting everything ready; the live site hasn't been touched and it can be cancelled), apply (switching over, which takes seconds) or recovering (being put right). Null while queued and once it's finished.

Known values: prepareapplyrecovering More can appear.

stage

string or null

What's happening now, in words. Null once it's finished.

progress

integer or null

How far it has got, 0 to 100. Null when that isn't known.

cancellable

boolean

Whether it can be cancelled now (POST /sites/{siteId}/staging/actions/cancel): while it's queued, or still preparing.

options

object

What the operation was asked to do.

Show its 4 fields
FieldType and description
parts

string or null

For a refresh: what it copies from the live site: all, files or database. Null otherwise.

Known values: allfilesdatabase More can appear.

scope

string or null

For a push: what it copies to the live site: code (WordPress itself, plugins, themes, must-use plugins and languages), database (the database, and media added on the copy) or everything (both). Null otherwise.

Known values: codedatabaseeverything More can appear.

tables

array of strings or null

For a push of the database: the only tables it copies. Null: all of them.

restoreRunId

string or null

For an undo: the restore point it puts the live site back to (the runId of the push or undo that made it). Null otherwise.

lastError

string or null

Why it failed, or why it waits for our team. Null otherwise.

notes

array of strings

For a finished operation: facts worth knowing (files left out, places that still mention the other address…).

createdAt

string An ISO 8601 time, in UTC

When it was asked for.

startedAt

string or null An ISO 8601 time, in UTC

When it started on the server. Null until then.

finishedAt

string or null An ISO 8601 time, in UTC

When it finished. Null until then.

blockers

array of strings

Why a staging copy can't be created right now: staging isn't open to the account, the site is still installing, its server is off, an operation is running, or the weekly limit is reached. Empty when one can be, or when the site has a copy.

createsLeftThisWeek

integer

How many more times a copy can be created for this site in the next 7 days (3 a week per site).

Example

The SiteStaging object
{
  "live": {
    "id": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
    "name": "Shop",
    "url": "https://shop.example.com"
  },
  "copy": {
    "id": "5c2e8f1a-7b3d-4e6f-9a0b-1c2d3e4f5a6b",
    "name": "Shop (staging)",
    "status": "active",
    "url": "https://staging.shop-x7k2p.rabbitflare.link",
    "adminUrl": "https://staging.shop-x7k2p.rabbitflare.link/wp-admin/",
    "hostname": "staging.shop-x7k2p.rabbitflare.link",
    "sslStatus": "active",
    "certificate": "trusted",
    "certificateRetry": false,
    "createdAt": "2026-11-18T10:02:11.000Z",
    "databaseSyncedAt": "2026-11-18T10:05:47.000Z",
    "filesSyncedAt": "2026-11-18T10:05:47.000Z",
    "settings": {
      "protect": true,
      "username": "staging",
      "holdEmail": true,
      "tasks": false,
      "status": "applied",
      "lastError": null
    }
  },
  "activeRun": null,
  "restorePoints": [
    {
      "runId": "7f1e2d3c-4b5a-4968-8776-655443322110",
      "operation": "push",
      "scope": "code",
      "status": "available",
      "createdAt": "2026-11-18T14:21:38.000Z",
      "expiresAt": "2026-11-25T14:21:38.000Z",
      "sizeBytes": 182403211
    }
  ],
  "recentRuns": [
    {
      "id": "7f1e2d3c-4b5a-4968-8776-655443322110",
      "operation": "push",
      "status": "completed",
      "phase": null,
      "stage": null,
      "progress": 100,
      "cancellable": false,
      "options": {
        "parts": null,
        "scope": "code",
        "tables": null,
        "restoreRunId": null
      },
      "lastError": null,
      "notes": [],
      "createdAt": "2026-11-18T14:20:03.000Z",
      "startedAt": "2026-11-18T14:20:05.000Z",
      "finishedAt": "2026-11-18T14:21:38.000Z"
    }
  ],
  "blockers": [],
  "createsLeftThisWeek": 2
}

The StagingPasswordProtection object

What visitors enter to see a staging copy while its password protection is on. Not the WordPress login: the copy's WordPress users are the live site's.

FieldType and description
username

string

The username.

password

string

The password.

Example

The StagingPasswordProtection object
{
  "username": "staging",
  "password": "k7Qm2vXc9RtLp4Wz8NbY"
}

The StagingPreview object

What a staging operation would do and need, checked on the server (it takes a few seconds), before you start it.

FieldType and description
sizes

object

What the operation would copy, and the room it needs.

liveFilesBytes

integer

The live site's files the operation copies, in bytes (0 when it copies none).

liveDatabaseBytes

integer

The live site's database, in bytes.

stagingFilesBytes

integer

The copy's code a push copies, in bytes (0 when it copies none).

stagingDatabaseBytes

integer

The copy's database, in bytes.

freeBytes

integer

Free room on the server's disk, in bytes.

neededBytes

integer

The room the operation needs on the server's disk while it runs, in bytes.

blockers

array of strings

Why the operation would be refused, or fail. Empty when nothing stands in the way.

warnings

array of strings

What's worth knowing before going ahead.

changes

object or null

For a push of the database or an undo: what changed on the live site since then, which the operation would replace. Null otherwise.

since

string or null An ISO 8601 time, in UTC

Since when: the copy's last database copy (for a push), or the push (for an undo). Null when not known.

orders

integer

New orders.

users

integer

New users.

comments

integer

New comments.

formEntries

integer

New form entries.

posts

integer

New posts and pages.

editedPosts

integer

Posts and pages edited.

tables

array of objects

For a push of the database: the copy's tables. Empty otherwise.

name

string

The table's name.

rows

integer

Its rows.

sizeBytes

integer

Its size, in bytes.

onLive

boolean

Whether the live site has a table of this name.

keptOnLive

boolean

Whether the push leaves the live site's own table in place (as it does for the tables that hold the site's own state, unless they're named in tables).

liveOnlyTables

array of strings

For a push of the database: tables only the live site has, which the push leaves in place.

downgrades

array of objects

For a push of the code: what's newer on the live site than on the copy. The push puts these back to the copy's version only when they're named in its allowDowngrade; otherwise it fails, changing nothing.

kind

string

core (WordPress itself), plugin or theme.

Known values: coreplugintheme More can appear.

name

string

Its folder's name (core for WordPress itself): what allowDowngrade takes after plugin: or theme:.

title

string

Its name, as WordPress shows it.

liveVersion

string or null

Its version on the live site. Null when the live site doesn't have it.

stagingVersion

string or null

Its version on the copy. Null when the copy doesn't have it.

removedFromLive

array of objects

For a push of the code: plugins and themes on the live site that the copy doesn't have, which the push removes.

kind

string

core (WordPress itself), plugin or theme.

Known values: coreplugintheme More can appear.

name

string

Its folder's name (core for WordPress itself): what allowDowngrade takes after plugin: or theme:.

title

string

Its name, as WordPress shows it.

liveVersion

string or null

Its version on the live site. Null when the live site doesn't have it.

stagingVersion

string or null

Its version on the copy. Null when the copy doesn't have it.

overdueTasks

integer

For a push of the database: scheduled tasks on the copy that are already due (they'd run on the live site after the push, unless cancelOverdue).

paymentsScheduled

boolean

For a push of the database: whether the copy's store has subscription renewals or other payments scheduled, which need care before replacing the live site's database.

Example

The StagingPreview object
{
  "sizes": {
    "liveFilesBytes": 0,
    "liveDatabaseBytes": 48211456,
    "stagingFilesBytes": 0,
    "stagingDatabaseBytes": 51380224,
    "freeBytes": 41871163392,
    "neededBytes": 113036492
  },
  "blockers": [],
  "warnings": [
    "The live site has new orders or users since the copy; pushing the database replaces them"
  ],
  "changes": {
    "since": "2026-11-18T10:05:47.000Z",
    "orders": 3,
    "users": 1,
    "comments": 0,
    "formEntries": 2,
    "posts": 0,
    "editedPosts": 1
  },
  "tables": [
    {
      "name": "wp_options",
      "rows": 412,
      "sizeBytes": 1212416,
      "onLive": true,
      "keptOnLive": false
    },
    {
      "name": "wp_posts",
      "rows": 1874,
      "sizeBytes": 9453568,
      "onLive": true,
      "keptOnLive": false
    },
    {
      "name": "wp_users",
      "rows": 12,
      "sizeBytes": 16384,
      "onLive": true,
      "keptOnLive": false
    }
  ],
  "liveOnlyTables": [
    "wp_shop_audit_log"
  ],
  "downgrades": [
    {
      "kind": "plugin",
      "name": "woocommerce",
      "title": "WooCommerce",
      "liveVersion": "9.4.2",
      "stagingVersion": "9.4.1"
    }
  ],
  "removedFromLive": [],
  "overdueTasks": 0,
  "paymentsScheduled": false
}

Popular

API docs