Backups
Endpoints for managing backups.
Admins see every backup on the server. Non-admin users see only their own.
List Backups
GET /api/v1/backups
Scope: read:backups
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page |
integer | Page number. See Pagination |
limit |
integer | Items per page. See Pagination |
Response
{
"data": [
{
"id": 4,
"user_id": 2,
"type": "database",
"subtype": "mariadb",
"name": "test_2026-10-18_15-27-13",
"filename": "test_2026-10-18_15-27-13.sql.gz",
"size": 996,
"db_name": "test",
"notes": "Database backup created by user 2",
"is_remote": false,
"created_at": "2026-10-18T10:27:13Z"
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 1,
"total_pages": 1
}
}
| Field | Type | Description |
|---|---|---|
id |
integer | Backup ID |
user_id |
integer | ID of the owning panel user |
type |
string | website, database, config, or panel |
subtype |
string | Additional type detail when applicable, for example mariadb for database backups |
name |
string | Backup name |
filename |
string | File name on disk |
size |
integer | Size in bytes |
db_name |
string | Database name for database backups, empty otherwise |
notes |
string | Optional notes attached to the backup |
is_remote |
boolean | true if uploaded to remote storage, false otherwise |
created_at |
string (RFC 3339) | Creation timestamp |
Example
curl -H "Authorization: Bearer $TOKEN" \
"https://panel.example.com/api/v1/backups?page=1&limit=25"
Get Backup
GET /api/v1/backups/{id}
Scope: read:backups
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id |
integer | Backup ID |
Response
Same shape as a single item in the list response, wrapped in data:
{
"data": {
"id": 4,
"name": "test_2026-10-18_15-27-13",
...
}
}
Errors
| Code | Status | Condition |
|---|---|---|
not_found |
404 | Backup does not exist |
forbidden |
403 | Backup belongs to another user |
invalid_request |
400 | id is not a valid integer |
Example
curl -H "Authorization: Bearer $TOKEN" \
https://panel.example.com/api/v1/backups/4
Note
This endpoint returns metadata only. Downloading the backup file itself is not exposed via the API.
Related
- Authentication - token format and auth failures
- Responses - success response shape
- Pagination - list parameters and iteration
- Errors - error codes