Get the clone of a new site
/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
| Field | Type and description |
|---|---|
siteId Required | string The id of the new site the clone is made into ( |
Example request
curl "https://api.rabbitflare.com/v1/sites/6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f/clone/status" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/sites/6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f/clone/status", {
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
},
});
if (!res.ok) throw new Error(`Rabbitflare API error ${res.status}: ${await res.text()}`);
const { data } = await res.json();
console.log(data); import { Rabbitflare } from "@rabbitflare/api";
const rf = new Rabbitflare({ token: process.env.RABBITFLARE_TOKEN });
const data = await rf.sites.clone.status({ siteId: "6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f" });
console.log(data); <?php
$ch = curl_init('https://api.rabbitflare.com/v1/sites/6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f/clone/status');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RABBITFLARE_TOKEN'),
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($body === false || $status >= 400) {
throw new RuntimeException("Rabbitflare API error $status: $body");
}
print_r(json_decode($body, true)['data']); import os
import requests
response = requests.get(
"https://api.rabbitflare.com/v1/sites/6d3f2e1c-9b8a-4c7d-8e6f-5a4b3c2d1e0f/clone/status",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
timeout=120,
)
response.raise_for_status()
print(response.json()["data"]) Response
200 OK Returns the SiteClone object in data.
The SiteClone object's fields 35 fields
| 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 response
{
"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 code | When, and what to do |
|---|---|
404 not_ | The resource doesn't exist, or isn't this account's. Check the id. Ids of other accounts' resources answer the same way. |