Skip to content

List your backup storage

GET /v1/backup-destinations

Lists the storage of your own that sites can be backed up to, newest first: buckets, SFTP servers, Google Drive and Dropbox. A site's backups go to one of them when its settings name its id as destination. Keys and passwords are never answered. Filter by kind and status.

Rabbitflare Backup isn't listed: it's always there, as destination: "rabbitflare".

Storage belongs to the whole account, as in the panel, not to a server: a token limited to some servers sees and manages all of it too, with where it points (detail) and the count of sites on every server that back up to it (siteCount).

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

sites:files
Files and logins. File Manager, WordPress logins, cron jobs, backup downloads and backup storage. Full access to the sites' code and data.

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 storage of this kind.

One of: s3spacesvultrb2r2s3compatgdrivedropboxsftp

status

string

Only storage with this status.

One of: okerrorpending

Example request

curl "https://api.rabbitflare.com/v1/backup-destinations?status=ok" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

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

The BackupDestination object's fields 10 fields
FieldType and description
id

string

The storage's id: what a site's backup settings name as destination.

kind

string

What it is: s3 (an Amazon S3 bucket), spaces (a DigitalOcean Space), vultr (Vultr Object Storage), b2 (a B2 bucket, connected in the panel: through the API a B2 bucket connects as s3compat), r2 (a Cloudflare R2 bucket), s3compat (other storage that speaks S3), gdrive (Google Drive), dropbox (Dropbox) or sftp (an SFTP server).

Known values: s3spacesvultrb2r2s3compatgdrivedropboxsftp More can appear.

name

string

Its name.

detail

string

Where it points: a bucket and its folder (shop-backups/sites), the Google or Dropbox account, or the SFTP user, server and folder ([email protected]:site-backups).

status

string

ok (it worked when last checked, or for the last backup), error (see lastError) or pending (an SFTP server waiting for Rabbitflare's key: add publicKey to it, then check it).

Known values: okerrorpending More can appear.

lastError

string or null

What went wrong when it was last checked or used, in one plain sentence. Null unless status is error.

publicKey

string or null

An SFTP server's Rabbitflare key, when it signs in with one: this public half goes in the user's ~/.ssh/authorized_keys on the server. Null otherwise.

hostKeyFingerprint

string or null

An SFTP server's identity (its host key's fingerprint), noted at its first successful check: backups go only to a server that still has it. Null until then, and for other kinds.

siteCount

integer

How many sites back up to it now.

createdAt

string An ISO 8601 time, in UTC

When it was connected.

Example response

200 OK
{
  "data": [
    {
      "id": "8f9a0b1c-2d3e-4f4a-9b5c-6d7e8f9a0b12",
      "kind": "s3",
      "name": "Amazon S3 · shop-backups",
      "detail": "shop-backups/sites",
      "status": "ok",
      "lastError": null,
      "publicKey": null,
      "hostKeyFingerprint": null,
      "siteCount": 1,
      "createdAt": "2026-11-12T09:30:00.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 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs