Cloning
Copy a site to a new site. For the same in the control panel, see Clone a site.
Operations
| Operation | Request |
|---|---|
| Get what cloning a site needs | GET / |
| Check a server's room for a clone | GET / |
| Clone a site | POST / |
| Get the clone of a new site | GET / |
| Cancel a clone | POST / |
| Try a failed clone again | POST / |
The CloneSetup object
What cloning a site needs: whether it can be cloned, its size, where it can go, and its clones.
| Field | Type and description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
blockers | array of strings Why the site can't be cloned right now (cloning isn't open to the account, it's a staging copy, it's still installing, its server is off, another operation is running…). Empty when it can be. | ||||||||||
sizes | object or null The site's size. Null when it couldn't be measured. | ||||||||||
filesBytes | integer The site's files, without caches and backup archives, in bytes. | ||||||||||
databaseBytes | integer The site's database, in bytes. | ||||||||||
wordpressVersion | string or null The site's WordPress version. Null when not known. | ||||||||||
suggestedName | string A name for the new site: the site's, with “copy”. | ||||||||||
destinations | array of objects The servers of the account the site can be cloned to, its own first. A token limited to some servers sees only those. | ||||||||||
id | string The server's id: send it as | ||||||||||
name | string The server's name. | ||||||||||
cloud | string Where the server runs (see the Server object). Known values: | ||||||||||
region | string The server's location id. | ||||||||||
sameServer | boolean Whether it's the site's own server. | ||||||||||
unavailableReason | string or null Why the site can't be cloned there right now (the server is off, still being set up…). Null when it can. | ||||||||||
room | object or null The room on the site's own server. Null when it couldn't be checked. | ||||||||||
serverId | string The destination server's id. | ||||||||||
freeBytes | integer or null Free room on the server's disk. Null when it couldn't be checked. | ||||||||||
neededBytes | integer The room the clone needs there while it's made, with what must stay free (0 when the site's size wasn't given). | ||||||||||
fits | boolean or null Whether the clone fits. Null when that couldn't be checked; the clone checks again before copying. | ||||||||||
unknown | boolean Whether the room couldn't be checked (the server didn't answer). | ||||||||||
active | object or null A clone of this site that hasn't finished (one runs at a time). Null when none is. | ||||||||||
id | string The clone's id. | ||||||||||
status | string
Known values: | ||||||||||
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). Show its 3 fields
| ||||||||||
target | object The new site the copy is made into. Show its 3 fields
| ||||||||||
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. Show its 4 fields
| ||||||||||
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. Show its 3 fields
| ||||||||||
skipped | array of objects Files the copy left out (up to 100 of them). Show its 2 fields
| ||||||||||
skippedCount | integer How many files the copy left out in all. | ||||||||||
sizes | object or null What was copied. Null until the copy is made. Show its 2 fields
| ||||||||||
cancellable | boolean Whether it can be cancelled now ( | ||||||||||
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. | ||||||||||
recent | array of objects The latest clones of this site (up to 5), newest first. | ||||||||||
id | string The clone's id. | ||||||||||
status | string
Known values: | ||||||||||
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). Show its 3 fields
| ||||||||||
target | object The new site the copy is made into. Show its 3 fields
| ||||||||||
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. Show its 4 fields
| ||||||||||
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. Show its 3 fields
| ||||||||||
skipped | array of objects Files the copy left out (up to 100 of them). Show its 2 fields
| ||||||||||
skippedCount | integer How many files the copy left out in all. | ||||||||||
sizes | object or null What was copied. Null until the copy is made. Show its 2 fields
| ||||||||||
cancellable | boolean Whether it can be cancelled now ( | ||||||||||
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
{
"blockers": [],
"sizes": {
"filesBytes": 48000000,
"databaseBytes": 6400000
},
"wordpressVersion": "6.8.3",
"suggestedName": "Shop copy",
"destinations": [
{
"id": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
"name": "Production",
"cloud": "digitalocean",
"region": "fra1",
"sameServer": true,
"unavailableReason": null
},
{
"id": "9e8d7c6b-5a4f-4e3d-9c2b-1a0f9e8d7c6b",
"name": "Staging box",
"cloud": "vultr",
"region": "lhr",
"sameServer": false,
"unavailableReason": "Switched off"
}
],
"room": {
"serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
"freeBytes": 41871163392,
"neededBytes": 330825728,
"fits": true,
"unknown": false
},
"active": null,
"recent": [
{
"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"
}
]
} The CloneRoom object
The room on a destination server for a clone of the site.
| Field | Type and description |
|---|---|
serverId | string The destination server's id. |
freeBytes | integer or null Free room on the server's disk. Null when it couldn't be checked. |
neededBytes | integer The room the clone needs there while it's made, with what must stay free (0 when the site's size wasn't given). |
fits | boolean or null Whether the clone fits. Null when that couldn't be checked; the clone checks again before copying. |
unknown | boolean Whether the room couldn't be checked (the server didn't answer). |
Example
{
"serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
"freeBytes": 41871163392,
"neededBytes": 330825728,
"fits": true,
"unknown": false
} The CloneStarted object
A clone just started: the new site, and the clone being made into it.
| Field | Type and description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
site | object A WordPress site on one of your servers. | ||||||||||||||||
id | string The site's id. | ||||||||||||||||
name | string The site's name, as shown in the panel. | ||||||||||||||||
serverId | string The id of the server the site is on. | ||||||||||||||||
server | object The server the site is on, at a glance. Show its 7 fields
| ||||||||||||||||
status | string
Known values: | ||||||||||||||||
stage | string How far the install has got: Known values: | ||||||||||||||||
pendingAction | string or null A change in progress on the site: Known values: | ||||||||||||||||
url | string The site's address, on its primary domain (https once its certificate is active). | ||||||||||||||||
adminUrl | string The address of the site's WordPress dashboard. | ||||||||||||||||
builtInDomain | string The address every site gets, which keeps working whatever domains it has. | ||||||||||||||||
primaryDomain | string The domain the site is served on; other domains redirect to it. | ||||||||||||||||
siteTitle | string The site's title in WordPress, as set when it was created. | ||||||||||||||||
wordpress | object The WordPress administrator made with the site. The password is read with GET /sites/{siteId}/wordpress-login. Show its 2 fields
| ||||||||||||||||
sslStatus | string The site's SSL certificate: Known values: | ||||||||||||||||
cdn | string The included CDN for the site's static files: Known values: | ||||||||||||||||
firewall | object The site's web application firewall. Show its 2 fields
| ||||||||||||||||
malwareProtection | object The site's malware protection (Imunify360). Show its 2 fields
| ||||||||||||||||
customResources | boolean Whether the site has resource settings of its own (limits, priority or PHP settings) rather than the server's defaults. | ||||||||||||||||
stagingOf | object or null When this site is a staging copy: the live site it copies. Null otherwise. Show its 2 fields
| ||||||||||||||||
staging | object or null A live site's staging: its copy and the staging operation running now. Null when it never used staging. Show its 4 fields
| ||||||||||||||||
clone | object or null When this site is a clone being made (or whose copy failed): the clone. Null once the copy is in, or when it never was a clone. Show its 6 fields
| ||||||||||||||||
clonedFrom | object or null The site this one was cloned from, and when. Null when it wasn't cloned. Show its 3 fields
| ||||||||||||||||
beingCloned | object or null A clone of this site being made right now: the new site. Null otherwise. Show its 2 fields
| ||||||||||||||||
iconUrl | string or null The site's own icon (WordPress's Site Icon), looked up once a day. Null when it has none. | ||||||||||||||||
lastError | string or null Why the install or the last change failed. Null when nothing failed. | ||||||||||||||||
readyAt | string or null An ISO 8601 time, in UTC When the site finished installing. Null until then. | ||||||||||||||||
createdAt | string An ISO 8601 time, in UTC When the site was created. | ||||||||||||||||
updatedAt | string An ISO 8601 time, in UTC When the site last changed. | ||||||||||||||||
clone | object A clone: a copy of a site, with every file and its whole database, made into a new site of its own. | ||||||||||||||||
id | string The clone's id. | ||||||||||||||||
status | string
Known values: | ||||||||||||||||
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). Show its 3 fields
| ||||||||||||||||
target | object The new site the copy is made into. Show its 3 fields
| ||||||||||||||||
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. Show its 4 fields
| ||||||||||||||||
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. Show its 3 fields
| ||||||||||||||||
skipped | array of objects Files the copy left out (up to 100 of them). Show its 2 fields
| ||||||||||||||||
skippedCount | integer How many files the copy left out in all. | ||||||||||||||||
sizes | object or null What was copied. Null until the copy is made. Show its 2 fields
| ||||||||||||||||
cancellable | boolean Whether it can be cancelled now ( | ||||||||||||||||
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
{
"site": {
"id": "6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f",
"name": "Shop copy",
"serverId": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
"server": {
"id": "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
"name": "Production",
"status": "active",
"cloud": "digitalocean",
"region": "fra1",
"ipv4": "203.0.113.10",
"ipv6": "2001:db8::10"
},
"status": "queued",
"stage": "queued",
"pendingAction": null,
"url": "http://shop-copy-p4m8r.rabbitflare.link",
"adminUrl": "http://shop-copy-p4m8r.rabbitflare.link/wp-admin/",
"builtInDomain": "shop-copy-p4m8r.rabbitflare.link",
"primaryDomain": "shop-copy-p4m8r.rabbitflare.link",
"siteTitle": "Example Shop",
"wordpress": {
"adminUsername": "editor",
"adminEmail": "[email protected]"
},
"sslStatus": "none",
"cdn": "off",
"firewall": {
"mode": "off",
"status": "off"
},
"malwareProtection": {
"enabled": true,
"included": true
},
"customResources": false,
"stagingOf": null,
"staging": null,
"clone": {
"id": "2b7e1c9d-3a4f-4e5b-8d6c-0f1e2a3b4c5d",
"status": "queued",
"stage": "Setting up the new site",
"progress": null,
"sourceName": "Shop",
"error": null
},
"clonedFrom": null,
"beingCloned": null,
"iconUrl": null,
"lastError": null,
"readyAt": null,
"createdAt": "2026-11-18T15:40:12.000Z",
"updatedAt": "2026-11-18T15:40:12.000Z"
},
"clone": {
"id": "2b7e1c9d-3a4f-4e5b-8d6c-0f1e2a3b4c5d",
"status": "queued",
"stage": "Setting up the new site",
"progress": null,
"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": [],
"health": null,
"skipped": [],
"skippedCount": 0,
"sizes": null,
"cancellable": true,
"createdAt": "2026-11-18T15:40:12.000Z",
"startedAt": null,
"finishedAt": null
}
} The SiteClone object
A clone: a copy of a site, with every file and its whole database, made into a new site of its own.
| Field | Type and description |
|---|---|
id | string The clone's id. |
status | string
Known values: |
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: Known values: |
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 ( |
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
{
"id": "2b7e1c9d-3a4f-4e5b-8d6c-0f1e2a3b4c5d",
"status": "copying",
"stage": "Copying the files",
"progress": 42,
"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": [],
"health": null,
"skipped": [],
"skippedCount": 0,
"sizes": null,
"cancellable": true,
"createdAt": "2026-11-18T15:40:12.000Z",
"startedAt": "2026-11-18T15:41:02.000Z",
"finishedAt": null
}