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."
}
{
"success": false,
"error": "Bot must be offline before restoring a backup."
}
Backups
Restore Backup
Restores a backup, overwriting the bot’s current files. The bot must be offline.
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."
}
{
"success": false,
"error": "Bot must be offline before restoring a backup."
}
Path Parameters
string
required
UUID of the bot.
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
- Verifies ownership of both bot and backup
- Verifies the bot is offline
- Extracts the backup ZIP, overwriting
/bots/{id}/ - 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."
}
{
"success": false,
"error": "Bot must be offline before restoring a backup."
}

