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 /backupsin Application backups meansGET /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
409with the codeserver_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 example25-11-2026 01:24:25) and the page information (ametaobject, nolinks) 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
202starts the work and answers at once. Read the item again to follow it, or callGET /operationson the server page. - Signed links. A download is two steps: a
POST .../linkroute makes a one-time link, then you open the link with a plainGET. 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
| Route | Permission | Purpose |
|---|---|---|
GET /backup-plans | Backups (view) | The backup plans on the server. |
GET /backups | Backups (view) | List the backups on the server. |
DELETE /backups | Backups (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}/clear | Backups (manage) | Remove the backup file but keep its record. |
POST /backups/{backup}/download | Backups (manage) | Download the backup. |
POST /backups/{backup}/download/prepare | Backups (manage) | Prepare the backup for download. |
GET /backups/{backup}/download/prepare | Backups (manage) | Check whether the download is ready. |
GET /backups/{backup}/download/stream | Signed link | Download through a signed link. No token needed. Limit: 60 a minute. |
POST /backups/{backup}/restore | Backups (manage) | Restore the backup. Answers 202. |
GET /restores | Backups (view) | List the restores. |
GET /restores/{restore} | Backups (view) | One restore job. |
GET /storage-accounts | Backups (view) | The storage accounts available to the server. |
POST /storage-accounts/{storageAccount}/connect | Backups (manage) Login token only. | Link a storage account to the server. |
POST /storage-destinations/{ossDestination}/test | Backups (manage) Login token only. | Test a backup destination. |
GET /backup-plans
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
kind | string | no | one of application, database |
search | string | no | at most 255 characters; can be null |
filter | string | no | keys protected |
filter.protected | boolean | no | can be null |
sort | string | no | |
per_page | integer | no | one of 10, 20, 30, 50, 100 |
page | integer | no | at least 1 |
GET /backups
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
filter | string | no | keys application_id, database_id, archived, engine, status, type, from, to |
filter.application_id | integer | no | at least 1 |
filter.database_id | integer | no | at least 1 |
filter.archived | boolean | no | |
filter.engine | string | no | at most 20 characters; pattern ^[a-z0-9_-]+$ |
filter.status | string | no | one of pending, running, verifying, verified, failed |
filter.type | string | no | one of filesystem, database, full, volumes, config, volumes_config |
filter.from | date | no | |
filter.to | date | no | after_or_equal:filter.from |
per_page | integer | no | 1 to 100 |
page | integer | no | at least 1 |
DELETE /backups
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
ids | array | yes | at least 1 items; at most 100 items |
ids.* | integer | no | at least 1; no duplicates |
POST /backups/{backup}/restore
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
confirm | string | yes | at most 255 characters |
safety_copy | boolean | no | |
type | string | no | one of filesystem, database, full |
GET /restores
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
filter | string | no | keys application_id, database_id, status, type, from, to |
filter.application_id | integer | no | at least 1 |
filter.database_id | integer | no | at least 1 |
filter.status | string | no | one of pending, running, succeeded, failed |
filter.type | string | no | one of filesystem, database, full, volumes, config, volumes_config |
filter.from | date | no | |
filter.to | date | no | after_or_equal:filter.from |
per_page | integer | no | 1 to 100 |
page | integer | no | at least 1 |
Application backups
| Route | Permission | Purpose |
|---|---|---|
GET /backup-plan | Backups (view) | The application's backup plan. |
PUT /backup-plan | Backups (manage) | Save the plan: schedule, what to include, where to keep it and how long. |
DELETE /backup-plan | Backups (manage) | Remove the plan. Answers 204. |
GET /backups | Backups (view) | List the application's backups. |
POST /backups | Backups (manage) | Back up now. Answers 202. |
GET /backups/options | Backups (view) | What a backup can include and where it can go. |
POST /backups/{backup}/restore | Backups (manage) | Restore a backup to the application. Answers 202. |
POST /backups/{backup}/retry | Backups (manage) | Try a failed backup again. Answers 202. |
GET /restores/{restore} | Backups (view) | The state of a restore job. |
PUT /backup-plan
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
storage_destination_id | integer | yes | at least 1 |
retention_count | integer | yes | 1 to 365 |
frequency | string | yes | one of manual, hourly, every_3_hours, every_6_hours, every_12_hours, daily, weekly, monthly |
schedule_time | string | no | date_format:H:i |
enabled | boolean | yes | |
type | string | yes | one of filesystem, database, full, volumes, config, volumes_config |
file_excludes | array | no | at most 100 items |
file_excludes.* | string | no | at most 255 characters |
database_excludes | array | no | at most 100 items |
database_excludes.* | string | no | at most 64 characters |
DELETE /backup-plan
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
delete_backups | boolean | no |
GET /backups
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
filter | string | no | keys status, type, from, to |
filter.status | string | no | one of pending, running, verifying, verified, failed |
filter.type | string | no | one of filesystem, database, full, volumes, config, volumes_config |
filter.from | date | no | |
filter.to | date | no | after_or_equal:filter.from |
per_page | integer | no | 1 to 100 |
page | integer | no | at least 1 |
POST /backups/{backup}/restore
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
confirm | string | yes | at most 255 characters |
safety_copy | boolean | no | |
type | string | no | one of filesystem, database, full |
Database backups
| Route | Permission | Purpose |
|---|---|---|
GET /backup-plan | Databases (view) | The database's backup plan. |
PUT /backup-plan | Databases (manage) | Save the plan. |
DELETE /backup-plan | Databases (manage) | Remove the plan. Answers 204. |
GET /backups | Databases (view) | List the database's backups. |
POST /backups | Databases (manage) | Back up now. Answers 202. |
DELETE /backups/{backup} | Databases (manage) | Delete a backup. Answers 204. |
POST /backups/{backup}/restore | Databases (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:
| Field | Type | Required | Rules |
|---|---|---|---|
storage_destination_id | integer | yes | at least 1 |
retention_count | integer | yes | 1 to 365 |
frequency | string | yes | one of manual, hourly, every_3_hours, every_6_hours, every_12_hours, daily, weekly, monthly |
schedule_time | string | no | date_format:H:i |
enabled | boolean | yes |
DELETE /backup-plan
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
delete_backups | boolean | no |
GET /backups
Query string:
| Field | Type | Required | Rules |
|---|---|---|---|
filter | string | no | keys status, type, from, to |
filter.status | string | no | one of pending, running, verifying, verified, failed |
filter.type | string | no | one of filesystem, database, full, volumes, config, volumes_config |
filter.from | date | no | |
filter.to | date | no | after_or_equal:filter.from |
per_page | integer | no | 1 to 100 |
page | integer | no | at least 1 |
POST /backups/{backup}/restore
JSON body:
| Field | Type | Required | Rules |
|---|---|---|---|
confirm | string | yes | at most 255 characters |
safety_copy | boolean | no |
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 inoss_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
errorsobject names it.
Related
Applications
API routes to create and manage applications, with domains and SSL, files, logs, PHP, environment, deployment, staging, workers, security, containers and settings.
Billing and add-ons
API routes for your wallet, payments and cards, add-ons, the Control Panel, White-label, Log Monitoring, Premium Hosting Care, WP Toolkit, blueprints and referral.