Skip to main content
POST
/
bots
/
{id}
/
backups
/
{backupId}
/
restore
curl -X POST "https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/backups/c1a2b3d4-0000-0000-0000-000000000001/restore" \
  -H "Authorization: Bearer sess_..."
{
  "success": true,
  "data": { "files_restored": 15 },
  "message": "Backup restored. Start the bot to run the restored version."
}

Documentation Index

Fetch the complete documentation index at: https://docs.phanomcloud.online/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
string
required
UUID of the bot.
backupId
string
required
UUID of the backup to restore.
The bot must be offline before restoring. All current files will be overwritten. Start the bot after restoring to run the recovered version.

Process

  1. Verifies ownership of both bot and backup
  2. Verifies the bot is offline
  3. Extracts the backup ZIP, overwriting /bots/{id}/
  4. Returns the number of files restored
curl -X POST "https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/backups/c1a2b3d4-0000-0000-0000-000000000001/restore" \
  -H "Authorization: Bearer sess_..."
{
  "success": true,
  "data": { "files_restored": 15 },
  "message": "Backup restored. Start the bot to run the restored version."
}