Skip to content

List a server's snapshots and backups

GET /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

FieldType and description
serverId Required

string

The server's id.

Query parameters

FieldType and description
limit

integer 1 to 100 Default 25

How many items to return, from 1 to 100. Default 25.

cursor

string 1 to 1,024 characters

The nextCursor of the previous page, exactly as it was given. Leave it out for the first page.

sort

string Default createdAt

The field to sort by. Each list names the fields it can be sorted by.

One of: createdAtname

order

string Default desc

asc (smallest or oldest first) or desc. Each list has its own default.

One of: ascdesc

kind

string

Only snapshots, or only automatic backups.

One of: snapshotbackup

takenBy

string

Only Rabbitflare's copies, or only the cloud's. Rabbitflare's are listed even when the cloud doesn't answer.

One of: rabbitflarecloud

Example request

curl "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/snapshots" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns a list of Snapshot objects in data, with a Pagination object in pagination.

The Snapshot object's fields 6 fields
FieldType 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 imageId to restore it.

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: Weekly backup 2026-11-16 for Rabbitflare's, Backup 2026-11-16 for the cloud's.

kind

string

snapshot: one taken on request. backup: an automatic backup, the cloud's or Rabbitflare's (takenBy).

Known values: snapshotbackup More can appear.

takenBy

string

Who took it and keeps it: cloud, the server's cloud; rabbitflare, Rabbitflare itself: its weekly backups of the server (it keeps the most recent ones), and a Linode server's snapshots once the server is on Rabbitflare's backups. Restoring one of Rabbitflare's copies works a little differently (see the restore operation).

Known values: rabbitflarecloud More can appear.

sizeGb

number

Its size, in GB.

createdAt

string An ISO 8601 time, in UTC

When it was taken.

Example response

200 OK
{
  "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 codeWhen, and what to do
400 invalid_parameter

A query parameter is unknown or has a wrong value (fields names it), or the query is too long: over 16,384 characters, or a parameter's name over 64.

Correct or remove the parameter named in fields.

400 invalid_cursor

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_unavailable

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_found

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_restoring

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 pendingAction is null again), then try again. A restore that stopped partway keeps pendingAction: "restore", with the server's lastError set, until our team has checked the server.

Rate limit

Heavy requests: 20 a minute per token, 40 per account. More in Rate limits.

Added on .

Popular

API docs