Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iFamishedX/HungerLib/llms.txt
Use this file to discover all available pages before exploring further.
BackupsAPI provides a direct interface to Pterodactyl’s backup endpoints. It is mounted on every Panel instance as panel.backups and is also called internally by backup-related methods on GenericServer. All methods accept a server_id as their first argument and return a raw requests.Response.
Most users will interact with backups through GenericServer, but panel.backups is fully public for cases where you need direct access — for example, polling backup status in a custom loop or building tooling around the raw Pterodactyl API response.
list
Returns all backups associated with a server.
Endpoint: GET /api/client/servers/{server_id}/backups
The short identifier of the target server (e.g.
"abc123").requests.Response — JSON body contains a data array of backup objects. Each backup includes uuid, name, bytes, sha256_hash, is_successful, is_locked, created_at, and completed_at.
create
Initiates a new backup for the server. The backup runs asynchronously on the panel side — poll list() or check the panel dashboard to confirm completion.
Endpoint: POST /api/client/servers/{server_id}/backups
The short identifier of the target server.
A human-readable label for the backup. Defaults to
"Auto Backup" if not provided.requests.Response — JSON body describes the newly created backup object including its uuid and initial status.
delete
Permanently deletes a specific backup from the server.
Endpoint: DELETE /api/client/servers/{server_id}/backups/{backup_id}
The short identifier of the target server.
The UUID of the backup to delete. Obtain this from
list() via backup["attributes"]["uuid"].requests.Response — A 204 No Content response on success.
download
Generates a short-lived signed download URL for a specific backup.
Endpoint: GET /api/client/servers/{server_id}/backups/{backup_id}/download
The short identifier of the target server.
The UUID of the backup to download.
requests.Response — JSON body contains attributes.url, a pre-signed URL from which the backup archive can be downloaded directly.