ServerAvatarDocs
API Reference

Backups

API routes for the server's backup list, restores and downloads, and for the backup plans of applications and databases.

These routes list, start, restore and remove backups, and set the backup plan of an application or a database. The server's Backups screen has the list of all backups, the restores and the storage that backups go to.

For how to use backups in the panel, see Backups. Adding backup storage accounts to your organization is on Integrations.

Before you start

  • Base path. Every route here starts with /organizations/{organization}/servers/{server}. The routes of an application also have /applications/{application}, and the routes of a database have /databases/{database}, after it. The tables show the path after those parts: GET /backups in Application backups means GET /organizations/{organization}/servers/{server}/applications/{application}/backups.
  • Tokens. Both the login token and the personal API token can call these routes, except the ones marked Login token only. See Authentication.
  • The server must be ready. A server that is still installing or has failed answers 409 with the code server_not_ready.
  • Most answers come from the panel on the server. Central passes your request to the panel on the server and returns its answer in data. The shapes, the dates (for example 25-11-2026 01:24:25) and the page information (a meta object, no links) follow that panel, not the rest of this API. The examples on this page are real answers from a demo server.
  • Permissions. The Permission column names the role permission you need and whether it is view (read) or manage (change; manage includes view). People a server is shared with, and Control Panel customers, have only what the share or the grant gives them. See Roles and permissions.
  • Jobs that take time. A backup or a restore runs in the background. A route marked 202 starts the work and answers at once. Read the item again to follow it, or call GET /operations on the server page.
  • Signed links. A download is two steps: a POST .../link route makes a one-time link, then you open the link with a plain GET. The second step needs no token.

Make a first call

List the backups of a server (a shortened answer from the demo):

curl "https://<api-address>/api/v1/organizations/590/servers/145/backups" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <token>"
{
  "data": [
    {
      "id": 3,
      "application_id": 3,
      "application_name": "acme-blog",
      "storage_destination_name": "Local backups",
      "type": "full",
      "type_title": "Files and database",
      "status": "verified",
      "status_title": "Complete",
      "size_bytes": 40694796,
      "started_at": "25-11-2026 02:00:07",
      "finished_at": "25-11-2026 02:00:09"
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 20,
    "total": 3,
    "last_page": 1,
    "counts": { "total": 3, "pending": 0, "running": 0, "verifying": 0, "completed": 2, "failed": 1 }
  }
}

Server backups

RoutePermissionPurpose
GET /backup-plansBackups (view)The backup plans on the server.
GET /backupsBackups (view)List the backups on the server.
DELETE /backupsBackups (manage)Delete several backups at once.
GET /backups/{backup}Backups (view)One backup.
DELETE /backups/{backup}Backups (manage)Delete one backup. Answers 204.
POST /backups/{backup}/clearBackups (manage)Remove the backup file but keep its record.
POST /backups/{backup}/downloadBackups (manage)Download the backup.
POST /backups/{backup}/download/prepareBackups (manage)Prepare the backup for download.
GET /backups/{backup}/download/prepareBackups (manage)Check whether the download is ready.
GET /backups/{backup}/download/streamSigned linkDownload through a signed link. No token needed. Limit: 60 a minute.
POST /backups/{backup}/restoreBackups (manage)Restore the backup. Answers 202.
GET /restoresBackups (view)List the restores.
GET /restores/{restore}Backups (view)One restore job.
GET /storage-accountsBackups (view)The storage accounts available to the server.
POST /storage-accounts/{storageAccount}/connectBackups (manage) Login token only.Link a storage account to the server.
POST /storage-destinations/{ossDestination}/testBackups (manage) Login token only.Test a backup destination.

GET /backup-plans

Query string:

FieldTypeRequiredRules
kindstringnoone of application, database
searchstringnoat most 255 characters; can be null
filterstringnokeys protected
filter.protectedbooleannocan be null
sortstringno
per_pageintegernoone of 10, 20, 30, 50, 100
pageintegernoat least 1

GET /backups

Query string:

FieldTypeRequiredRules
filterstringnokeys application_id, database_id, archived, engine, status, type, from, to
filter.application_idintegernoat least 1
filter.database_idintegernoat least 1
filter.archivedbooleanno
filter.enginestringnoat most 20 characters; pattern ^[a-z0-9_-]+$
filter.statusstringnoone of pending, running, verifying, verified, failed
filter.typestringnoone of filesystem, database, full, volumes, config, volumes_config
filter.fromdateno
filter.todatenoafter_or_equal:filter.from
per_pageintegerno1 to 100
pageintegernoat least 1

DELETE /backups

JSON body:

FieldTypeRequiredRules
idsarrayyesat least 1 items; at most 100 items
ids.*integernoat least 1; no duplicates

POST /backups/{backup}/restore

JSON body:

FieldTypeRequiredRules
confirmstringyesat most 255 characters
safety_copybooleanno
typestringnoone of filesystem, database, full

GET /restores

Query string:

FieldTypeRequiredRules
filterstringnokeys application_id, database_id, status, type, from, to
filter.application_idintegernoat least 1
filter.database_idintegernoat least 1
filter.statusstringnoone of pending, running, succeeded, failed
filter.typestringnoone of filesystem, database, full, volumes, config, volumes_config
filter.fromdateno
filter.todatenoafter_or_equal:filter.from
per_pageintegerno1 to 100
pageintegernoat least 1

Application backups

RoutePermissionPurpose
GET /backup-planBackups (view)The application's backup plan.
PUT /backup-planBackups (manage)Save the plan: schedule, what to include, where to keep it and how long.
DELETE /backup-planBackups (manage)Remove the plan. Answers 204.
GET /backupsBackups (view)List the application's backups.
POST /backupsBackups (manage)Back up now. Answers 202.
GET /backups/optionsBackups (view)What a backup can include and where it can go.
POST /backups/{backup}/restoreBackups (manage)Restore a backup to the application. Answers 202.
POST /backups/{backup}/retryBackups (manage)Try a failed backup again. Answers 202.
GET /restores/{restore}Backups (view)The state of a restore job.

PUT /backup-plan

JSON body:

FieldTypeRequiredRules
storage_destination_idintegeryesat least 1
retention_countintegeryes1 to 365
frequencystringyesone of manual, hourly, every_3_hours, every_6_hours, every_12_hours, daily, weekly, monthly
schedule_timestringnodate_format:H:i
enabledbooleanyes
typestringyesone of filesystem, database, full, volumes, config, volumes_config
file_excludesarraynoat most 100 items
file_excludes.*stringnoat most 255 characters
database_excludesarraynoat most 100 items
database_excludes.*stringnoat most 64 characters

DELETE /backup-plan

JSON body:

FieldTypeRequiredRules
delete_backupsbooleanno

GET /backups

Query string:

FieldTypeRequiredRules
filterstringnokeys status, type, from, to
filter.statusstringnoone of pending, running, verifying, verified, failed
filter.typestringnoone of filesystem, database, full, volumes, config, volumes_config
filter.fromdateno
filter.todatenoafter_or_equal:filter.from
per_pageintegerno1 to 100
pageintegernoat least 1

POST /backups/{backup}/restore

JSON body:

FieldTypeRequiredRules
confirmstringyesat most 255 characters
safety_copybooleanno
typestringnoone of filesystem, database, full

Database backups

RoutePermissionPurpose
GET /backup-planDatabases (view)The database's backup plan.
PUT /backup-planDatabases (manage)Save the plan.
DELETE /backup-planDatabases (manage)Remove the plan. Answers 204.
GET /backupsDatabases (view)List the database's backups.
POST /backupsDatabases (manage)Back up now. Answers 202.
DELETE /backups/{backup}Databases (manage)Delete a backup. Answers 204.
POST /backups/{backup}/restoreDatabases (manage)Restore a backup into the database. Answers 202.
GET /restores/{restore}Databases (view)The state of a restore job.

PUT /backup-plan

JSON body:

FieldTypeRequiredRules
storage_destination_idintegeryesat least 1
retention_countintegeryes1 to 365
frequencystringyesone of manual, hourly, every_3_hours, every_6_hours, every_12_hours, daily, weekly, monthly
schedule_timestringnodate_format:H:i
enabledbooleanyes

DELETE /backup-plan

JSON body:

FieldTypeRequiredRules
delete_backupsbooleanno

GET /backups

Query string:

FieldTypeRequiredRules
filterstringnokeys status, type, from, to
filter.statusstringnoone of pending, running, verifying, verified, failed
filter.typestringnoone of filesystem, database, full, volumes, config, volumes_config
filter.fromdateno
filter.todatenoafter_or_equal:filter.from
per_pageintegerno1 to 100
pageintegernoat least 1

POST /backups/{backup}/restore

JSON body:

FieldTypeRequiredRules
confirmstringyesat most 255 characters
safety_copybooleanno

Limits

  • A plan keeps 1 to 365 backups (retention_count).
  • A download link is a one-time signed link, 60 requests a minute for the link itself. Starting a download needs Backups (manage) on the server.
  • Restoring and removing a plan also need Backups (manage) on the server, as well as the permission of the application or database.

Who can do this

  • Server backups, restores and storage: Backups (server permission).
  • An application's plan, backups and restores: Backups on the application (Application → Backups). Restore and removing a plan also need Backups (manage) on the server.
  • A database's plan and backups: Databases.
  • Connecting a storage account to a server and testing a destination need a login token.

Common errors

  • This server is not ready yet. Wait until it is connected and try again. (server_not_ready, 409) The server is still installing, or its install failed.
  • The server panel could not be reached. Check that the server is online and the API address is correct. (oss_unreachable, 502) The server is offline. Try again when it is back.
  • The server is busy with another task. Nothing was changed. Try again in a moment. (server_busy, 503) Another job, such as a deploy or a certificate request, is running.
  • This item was not found on the server. It may have been removed. Refresh and try again. (oss_not_found, 404) The item was removed on the server.
  • The server panel returned an error. Please try again. (oss_error, 502) The panel on the server refused the change. When the panel gave a reason, the answer holds it in oss_message.
  • You do not have permission to do this in this organization. (403) Your role lacks the permission in the table. A person a server is shared with, or a Control Panel customer, may have fewer permissions than a member.
  • The name field is required. (422) A field failed validation. The errors object names it.

On this page