curl -X POST https://api.phanomcloud.online/bots/restart \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
await fetch("https://api.phanomcloud.online/bots/restart", {
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 restarting",
"data": { "status": "starting" }
}
Bots
Restart Bot
Stops and restarts a bot. Returns immediately — the restart happens in the background.
POST
/
bots
/
restart
curl -X POST https://api.phanomcloud.online/bots/restart \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
await fetch("https://api.phanomcloud.online/bots/restart", {
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 restarting",
"data": { "status": "starting" }
}
Body
string
required
UUID of the bot to restart.
Track the restart progress via
GET /bots/:id or GET /bots/:id/logs/stream.curl -X POST https://api.phanomcloud.online/bots/restart \
-H "Authorization: Bearer sess_..." \
-H "Content-Type: application/json" \
-d '{ "bot_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }'
await fetch("https://api.phanomcloud.online/bots/restart", {
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 restarting",
"data": { "status": "starting" }
}
⌘I

