List a server's snapshots and backups
/v1/servers/{serverId}/snapshots Lists the copies of the whole server it can be restored from, newest first: snapshots (kind: "snapshot") and automatic backups (kind: "backup"). Only finished ones are listed. Amazon EC2 and Google Cloud servers and servers of your own have none: their sites are backed up one by one.
takenBy says whose each one is. A server's automatic backups are its cloud's (cloud), or Rabbitflare's own weekly backups once it has moved to them (rabbitflare, see the server's automaticBackupsBy); while it moves, both are listed. Its snapshots are its cloud's, except on a Linode server on Rabbitflare's backups, whose snapshots are Rabbitflare's.
When the server's cloud doesn't answer, its own copies can't be listed, so the list is refused with 503 cloud_unavailable rather than answered without them (the newest copy may be one of them): try again in a minute. Rabbitflare's copies can still be listed then, with takenBy=rabbitflare.
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
servers:read - View servers. See servers, their graphs, snapshots, logs and security (Imunify360).
Path parameters
| Field | Type and description |
|---|---|
serverId Required | string The server's id. |
Query parameters
| Field | Type and description |
|---|---|
limit | integer 1 to 100 Default How many items to return, from 1 to 100. Default 25. |
cursor | string 1 to 1,024 characters The |
sort | string Default The field to sort by. Each list names the fields it can be sorted by. One of: |
order | string Default
One of: |
kind | string Only snapshots, or only automatic backups. One of: |
takenBy | string Only Rabbitflare's copies, or only the cloud's. Rabbitflare's are listed even when the cloud doesn't answer. One of: |
Example request
curl "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/snapshots" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/snapshots", {
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
},
});
if (!res.ok) throw new Error(`Rabbitflare API error ${res.status}: ${await res.text()}`);
const { data, pagination } = await res.json();
console.log(data, pagination.nextCursor); import { Rabbitflare } from "@rabbitflare/api";
const rf = new Rabbitflare({ token: process.env.RABBITFLARE_TOKEN });
for await (const item of rf.servers.snapshots.list({
serverId: "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
})) {
console.log(item);
} <?php
$ch = curl_init('https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/snapshots');
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");
}
$answer = json_decode($body, true);
print_r($answer['data']);
echo $answer['pagination']['nextCursor'] ?? 'Last page', PHP_EOL; import os
import requests
response = requests.get(
"https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/snapshots",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
timeout=120,
)
response.raise_for_status()
answer = response.json()
print(answer["data"], answer["pagination"]["nextCursor"]) Response
200 OK Returns a list of Snapshot objects in data, with a Pagination object in pagination.
The Snapshot object's fields 6 fields
| Field | Type and description |
|---|---|
id | string The snapshot's or backup's id: a number on some clouds, a UUID on others and for Rabbitflare's copies. Pass it as |
name | string Its name. An automatic backup without a name of its own is named by the day it was taken where the server is (its location's time zone), as the server's activity names it: |
kind | string
Known values: |
takenBy | string Who took it and keeps it: Known values: |
sizeGb | number Its size, in GB. |
createdAt | string An ISO 8601 time, in UTC When it was taken. |
Example response
{
"data": [
{
"id": "171824639",
"name": "Before the theme update",
"kind": "snapshot",
"takenBy": "cloud",
"sizeGb": 6.31,
"createdAt": "2026-11-17T22:14:05.000Z"
},
{
"id": "5b0e7c1d-2f4a-4e8b-9a6c-3d1f2e4a5b6c",
"name": "Weekly backup 2026-11-16",
"kind": "backup",
"takenBy": "rabbitflare",
"sizeGb": 4.82,
"createdAt": "2026-11-16T01:10:11.000Z"
}
],
"pagination": {
"limit": 25,
"hasMore": false,
"nextCursor": null
}
} 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 |
|---|---|
400 invalid_ | A query parameter is unknown or has a wrong value ( Correct or remove the parameter named in |
400 invalid_ | The cursor isn't one this list gave, or was made with other filters or another sort. Start again from the first page, or keep the filters and sort the cursor was made with. |
403 · 503 cloud_ | 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. |
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. |
409 server_ | The server is being restored, and nothing else can change it or its sites until that's done. Wait until the restore finishes (the server's |