Skip to content

Get the clone of a new site

GET /v1/sites/{siteId}/clone/status

Returns the clone made into this new site: how far it has got, and once it's done, the notes, the check of the new site's pages and the files left out. {siteId} is the new site (a site that isn't a clone answers 404). Poll it to follow a clone in progress. For a token that can't reach the server of the site it was cloned from, source is null.

Scopes

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

sites:read
View sites. See sites and their domains, CDN, firewall, malware protection, backups, staging, resources, SMTP and Media Offload. SMTP includes who each site's recent emails went to, their subjects, and the team's sign-in addresses.

Path parameters

FieldType and description
siteId Required

string

The id of the new site the clone is made into (target.id, or site.id in the answer that started it).

Example request

curl "https://api.rabbitflare.com/v1/sites/6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f/clone/status" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns the SiteClone object in data.

The SiteClone object's fields 35 fields
FieldType and description
id

string

The clone's id.

status

string

queued: the new site is being installed. copying: the copy is being made (from another server, the site is packed there first). finishing: the clone's settings are being applied (it can't be cancelled now). Then done, failed (see lastError; try again with POST /sites/{siteId}/clone/actions/retry on the new site) or cancelled (the new site is deleted).

Known values: queuedcopyingfinishingdonefailedcancelled More can appear.

stage

string or null

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

progress

integer or null

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

source

object or null

The site that is copied. A clone never changes it. Null when this token can't reach that site's server (a token limited to some servers).

id

string

The site's id.

name

string

The site's name.

serverName

string

The name of the site's server.

target

object

The new site the copy is made into.

id

string

The site's id.

name

string

The site's name.

serverName

string

The name of the site's server.

crossServer

boolean

Whether the new site is on another server than the original.

options

object

What the clone copies besides the files and the database.

resources

boolean

The site's PHP and resource settings were copied, where they fit the destination server.

firewall

boolean

The firewall's mode, sensitivity, login protection, blocked and allowed addresses and exceptions were copied.

cron

boolean

The site's cron jobs were copied, paused (the original keeps running its own).

noindex

boolean

Search engines are asked not to index the clone (WordPress's “Discourage search engines” setting).

lastError

string or null

Why the clone failed (or was cancelled by itself). Null otherwise.

notes

array of strings

What's worth knowing after the clone: settings that didn't fit the destination, cron jobs copied paused, and the like.

health

object or null

The new site's own pages, checked right after the copy. Null until they're checked.

ok

boolean

Whether the new site's pages answered as the original's did.

problems

array of strings

What went wrong, page by page.

reason

string or null

Why the pages failed, where the server could tell. Null otherwise.

skipped

array of objects

Files the copy left out (up to 100 of them).

path

string

The file's path in the site.

reason

string

Why it was left out: unreadable, unreadable_folder, link_outside_site (a link pointing outside the site), changed_while_copying, database_password (it holds the original's database password), special_file (not a regular file) or other.

Known values: unreadableunreadable_folderlink_outside_sitechanged_while_copyingdatabase_passwordspecial_fileother More can appear.

skippedCount

integer

How many files the copy left out in all.

sizes

object or null

What was copied. Null until the copy is made.

filesBytes

integer

The site's files, without caches and backup archives, in bytes.

databaseBytes

integer

The site's database, in bytes.

cancellable

boolean

Whether it can be cancelled now (POST /sites/{siteId}/clone/actions/cancel on the new site): until it's switched into the new site.

createdAt

string An ISO 8601 time, in UTC

When the clone was started.

startedAt

string or null An ISO 8601 time, in UTC

When the copy started. Null until then.

finishedAt

string or null An ISO 8601 time, in UTC

When it finished. Null until then.

Example response

200 OK
{
  "data": {
    "id": "2b7e1c9d-3a4f-4e5b-8d6c-0f1e2a3b4c5d",
    "status": "done",
    "stage": null,
    "progress": 100,
    "source": {
      "id": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "name": "Shop",
      "serverName": "Production"
    },
    "target": {
      "id": "6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f",
      "name": "Shop copy",
      "serverName": "Production"
    },
    "crossServer": false,
    "options": {
      "resources": true,
      "firewall": true,
      "cron": true,
      "noindex": true
    },
    "lastError": null,
    "notes": [
      "The site's 2 cron jobs were copied paused, so they don't run twice. Turn each on with POST /v1/sites/{siteId}/cron-jobs/{jobId}/actions/enable when you want it."
    ],
    "health": {
      "ok": true,
      "problems": [],
      "reason": null
    },
    "skipped": [
      {
        "path": "wp-content/uploads/cache.sock",
        "reason": "special_file"
      }
    ],
    "skippedCount": 1,
    "sizes": {
      "filesBytes": 48000000,
      "databaseBytes": 6400000
    },
    "cancellable": false,
    "createdAt": "2026-11-18T15:40:12.000Z",
    "startedAt": "2026-11-18T15:41:02.000Z",
    "finishedAt": "2026-11-18T15:44:51.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
404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs