Skip to main content
POST
/
bots
/
{id}
/
upload
curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload \
  -H "Authorization: Bearer sess_..." \
  -F "file=@my-bot.zip"
{
  "success": true,
  "data": {
    "files_extracted": 12,
    "files": ["index.js", "package.json", "src/commands/ping.js"],
    "format": "zip",
    "size_bytes": 45678
  },
  "message": "12 files uploaded (zip). Start the bot to run them."
}

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

Send as multipart/form-data.
file
file
required
A .zip or .rar file. Maximum size: 200 MB.
If the bot is currently online, a restart is required to apply the new files.
curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/upload \
  -H "Authorization: Bearer sess_..." \
  -F "file=@my-bot.zip"
{
  "success": true,
  "data": {
    "files_extracted": 12,
    "files": ["index.js", "package.json", "src/commands/ping.js"],
    "format": "zip",
    "size_bytes": 45678
  },
  "message": "12 files uploaded (zip). Start the bot to run them."
}