Server Backups endpoints (Admin API)
5 FeatherPanel Admin API endpoints from admin/server-backups.php: methods, paths, auth, permissions, rate limits, parameters and responses.
Last synced from FeatherPanel 8318da2 on .
On this page
Defined in backend/app/routes/admin/server-backups.php. Authentication used here: Admin. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.
Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.
Endpoints
GET/api/admin/server-backups
List server backups Backups of all servers, newest first. scope=kept lists only backups kept after their server was deleted.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
limit | query | integer | no | |
scope | query | string | no | |
search | query | string | no | |
node_id | query | integer | no |
curl -X GET "$PANEL_URL/api/admin/server-backups" \
-H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
-H "Accept: application/json"Responses: 200 Backups · 401 Unauthorized · 403 Forbidden
GET/api/admin/servers/{id}/keep-backups
What keeping backups would do when deleting a server Whether the node can keep local and PBS backups, and how many finished backups the server has on the node and in remote storage.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | yes |
curl -X GET "$PANEL_URL/api/admin/servers/$ID/keep-backups" \
-H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
-H "Accept: application/json"Responses: 200 Keep information · 404 Server not found
GET/api/admin/server-backups/{uuid}/download
Download link for a backup A short-lived download link, also for backups kept after their server was deleted.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | yes |
curl -X GET "$PANEL_URL/api/admin/server-backups/$UUID/download" \
-H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
-H "Accept: application/json"Responses: 200 Download link · 400 Not downloadable · 404 Backup not found
GET/api/admin/server-backups/{uuid}
Get a backup for the create-server wizard The backup, the nodes a server can be created on from it and the settings to prefill (from the settings stored with the backup, or the current settings of its server).
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | yes |
curl -X GET "$PANEL_URL/api/admin/server-backups/$UUID" \
-H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
-H "Accept: application/json"Responses: 200 Backup and prefill · 404 Backup not found
DELETE/api/admin/server-backups/{uuid}
Delete a kept backup Delete a backup kept after its server was deleted, on the node or in remote storage. Backups of existing servers are deleted from the server.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | yes |
curl -X DELETE "$PANEL_URL/api/admin/server-backups/$UUID" \
-H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
-H "Accept: application/json"Responses: 200 Deleted · 404 Backup not found · 422 Not a kept backup · 423 Locked