curl -X POST https://api.phanomcloud.online/bots/start \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
const res = await fetch("https://api.phanomcloud.online/bots/start", {
method: "POST",
headers: {
Authorization: "Bearer sess_...",
"Content-Type": "application/json"
},
body: JSON.stringify({ bot_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6" })
});
{
"success": true,
"message": "Bot \"my-discord-bot\" is starting",
"data": { "status": "starting" }
}
{
"success": false,
"error": "Bot is already online"
}
Bots
Start Bot
Starts a bot by creating and launching its Docker container. Returns immediately — startup happens in the background.
POST
/
bots
/
start
curl -X POST https://api.phanomcloud.online/bots/start \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
const res = await fetch("https://api.phanomcloud.online/bots/start", {
method: "POST",
headers: {
Authorization: "Bearer sess_...",
"Content-Type": "application/json"
},
body: JSON.stringify({ bot_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6" })
});
{
"success": true,
"message": "Bot \"my-discord-bot\" is starting",
"data": { "status": "starting" }
}
{
"success": false,
"error": "Bot is already online"
}
Body
string
required
UUID of the bot to start.
The response is returned immediately with
status: "starting". Track the real status via GET /bots/:id or stream logs with GET /bots/:id/logs/stream.Process
- Validates ownership
- Creates a Docker container (
bot_<id>) with--memoryand--cpuslimits - Starts the container
- Begins async log capture
- Updates status to
"online"once running
curl -X POST https://api.phanomcloud.online/bots/start \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
const res = await fetch("https://api.phanomcloud.online/bots/start", {
method: "POST",
headers: {
Authorization: "Bearer sess_...",
"Content-Type": "application/json"
},
body: JSON.stringify({ bot_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6" })
});
{
"success": true,
"message": "Bot \"my-discord-bot\" is starting",
"data": { "status": "starting" }
}
{
"success": false,
"error": "Bot is already online"
}

