curl -X POST https://api.phanomcloud.online/bots/stop \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
{
"success": true,
"message": "Bot \"my-discord-bot\" is stopping",
"data": { "status": "stopping" }
}
{
"success": false,
"error": "Bot is already offline"
}
Bots
Stop Bot
Stops a running bot. Returns immediately — shutdown happens in the background.
POST
/
bots
/
stop
curl -X POST https://api.phanomcloud.online/bots/stop \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
{
"success": true,
"message": "Bot \"my-discord-bot\" is stopping",
"data": { "status": "stopping" }
}
{
"success": false,
"error": "Bot is already offline"
}
Body
string
required
UUID of the bot to stop.
The shutdown sequence sends SIGTERM, waits 10 seconds, then sends SIGKILL if the process hasn’t exited. The response is returned immediately with
status: "stopping".curl -X POST https://api.phanomcloud.online/bots/stop \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
{
"success": true,
"message": "Bot \"my-discord-bot\" is stopping",
"data": { "status": "stopping" }
}
{
"success": false,
"error": "Bot is already offline"
}

