Skip to main content
POST
/
bots
/
{id}
/
backups
curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/backups \
  -H "Authorization: Bearer sess_..." \
  -H "Content-Type: application/json" \
  -d '{ "name": "before-v2-update" }'
{
  "success": true,
  "data": {
    "id": "c1a2b3d4-0000-0000-0000-000000000001",
    "name": "before-v2-update",
    "size_bytes": 45678,
    "size_display": "44.6 KB",
    "download_url": "https://api.phanomcloud.online/backups/c1a2b3d4.../download?token=...&user=...",
    "created_at": "2025-01-15T10:00:00Z",
    "can_delete": false
  },
  "message": "Backup \"before-v2-update\" created successfully."
}

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.

Body

name
string
required
A label for this backup. Between 2 and 64 characters. Must be unique per bot. Example: before-v2-update.
Maximum 8 backups per bot. Delete an old one before creating a new backup if you’ve reached the limit.
curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/backups \
  -H "Authorization: Bearer sess_..." \
  -H "Content-Type: application/json" \
  -d '{ "name": "before-v2-update" }'
{
  "success": true,
  "data": {
    "id": "c1a2b3d4-0000-0000-0000-000000000001",
    "name": "before-v2-update",
    "size_bytes": 45678,
    "size_display": "44.6 KB",
    "download_url": "https://api.phanomcloud.online/backups/c1a2b3d4.../download?token=...&user=...",
    "created_at": "2025-01-15T10:00:00Z",
    "can_delete": false
  },
  "message": "Backup \"before-v2-update\" created successfully."
}