Skip to content

List a site's backups

GET /v1/sites/{siteId}/backups

Lists the site's backups, newest first (its 60 newest): running, completed and failed ones, and ones being deleted. Filter by status and trigger.

A completed backup can be restored (POST /sites/{siteId}/backups/{backupId}/actions/restore, where canRestore) and its parts downloaded (GET /sites/{siteId}/backups/{backupId}/download, where canDownload).

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 site'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 startedAt

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

One of: startedAt

order

string Default desc

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

One of: ascdesc

status

string

Only backups with this status.

One of: runningcompletedfaileddeleting

trigger

string

Only backups made this way.

One of: scheduledmanualbefore_restore

Example request

curl "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/backups?status=completed" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

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

The Backup object's fields 14 fields
FieldType and description
id

string

The backup's id.

status

string

running (being made, or waiting its turn: see stage), completed, failed (see error) or deleting (being deleted from its storage: it leaves the list when that's done).

Known values: runningcompletedfaileddeleting More can appear.

trigger

string

Why it was made: scheduled (the site's daily or weekly backup), manual (asked for, in the panel or with POST /sites/{siteId}/backups) or before_restore (the site as it was just before a restore, so the restore can be undone).

Known values: scheduledmanualbefore_restore More can appear.

location

string

Where it's kept, in words: Rabbitflare Backup and its region, or the name your storage had when the backup was made.

sizeBytes

integer or null

Its whole size. Null until it's completed.

filesBytes

integer or null

The size of its files part (a .tar.gz archive). Null until it's completed.

databaseBytes

integer or null

The size of its database part (a gzipped SQL dump). Null until it's completed.

progress

number or null

How far it got, from 0 to 1, when that's known (1 once it's completed). Null otherwise.

stage

string or null

What it's doing while it runs, like Backing up the database or Waiting for another backup on the server to finish. Null otherwise.

error

string or null

Why it failed, in one plain sentence. Null unless it failed.

startedAt

string An ISO 8601 time, in UTC

When it was started (asked for, or due).

finishedAt

string or null An ISO 8601 time, in UTC

When it completed or failed. Null while it runs.

canRestore

boolean

Whether the site can be restored from it (POST /sites/{siteId}/backups/{backupId}/actions/restore): a completed backup whose storage is still connected.

canDownload

boolean

Whether its parts can be downloaded (GET /sites/{siteId}/backups/{backupId}/download). False for a backup on an SFTP server: download it from that server. A backup in Google Drive is kept there as a folder: its download answers 409 conflict with the folder's link.

Example response

200 OK
{
  "data": [
    {
      "id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
      "status": "completed",
      "trigger": "scheduled",
      "location": "Rabbitflare Backup (Europe (Frankfurt))",
      "sizeBytes": 1284311552,
      "filesBytes": 1201143808,
      "databaseBytes": 83167744,
      "progress": 1,
      "stage": null,
      "error": null,
      "startedAt": "2026-11-19T03:00:04.000Z",
      "finishedAt": "2026-11-19T03:06:41.000Z",
      "canRestore": true,
      "canDownload": true
    }
  ],
  "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 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

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