Bot Uptime
DEVELOPER API REFERENCE

Bot Uptime REST & MCP API

Programmatically inspect account quotas, control Discord, Telegram & WhatsApp bot containers, manage databases, edit files, and connect AI agents using scoped Bearer API keys or OAuth 2.1 access tokens.

1. Base URL & Authentication

All API endpoints are served over HTTPS from https://botuptime.net. Pass either a scoped API key (prefixed with bu_live_, generated in Dashboard → AI Agents) or an OAuth 2.1 access token inside the Authorization header:

HTTP Header
Authorization: Bearer bu_live_YOUR_API_KEY
Content-Type: application/json
Security Note: Keys are SHA-256 hashed in our database and displayed once upon creation. Revoke any key instantaneously from Dashboard → AI Agents without affecting other keys or bots.

Permission Scopes

  • read — Inspect account limits, bot status, live console logs, files, backups, and databases (secrets redacted without write).
  • power — Start, stop, restart, or kill your bot containers.
  • write — Edit source files, folders, startup variables, GitHub imports, and backup restore points.
  • deploy — Provision new custom bot containers and create or delete managed databases.

Plan Rate Limits

API & MCP access is free on every tier, with fair per-minute limits:

  • Free Plan: 60 requests / minute
  • Developer Plan: 180 requests / minute
  • Pro Plan: 360 requests / minute

2. REST API v1 Endpoints

GET /api/v1/account Scope: read

Returns your active plan, billing status, bot usage counts, and managed database quota.

cURL Example
curl -s https://botuptime.net/api/v1/account \
  -H "Authorization: Bearer bu_live_YOUR_API_KEY"
GET /api/v1/bots Scope: read

Lists all custom and ready-made bots on your account, including runtime language, Auto-Restart status, and renewal timestamps.

Response Example (JSON)
{
  "ok": true,
  "bots": [
    {
      "id": 42,
      "name": "community-discord-bot",
      "lang": "nodejs",
      "template_slug": null,
      "auto_restart": true,
      "created_at": "2026-12-01T12:00:00.000Z"
    }
  ]
}
POST /api/v1/bots/:id/power Scope: power

Send a power signal (start, stop, restart, or kill) to a container owned by your account.

cURL Example
curl -X POST https://botuptime.net/api/v1/bots/42/power \
  -H "Authorization: Bearer bu_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"signal":"restart"}'
GET /api/v1/databases Scope: read

Lists all Managed Databases (MySQL, PostgreSQL, MongoDB, Redis) provisioned on your account and their internal hosts, ports, and Redis ACL key prefixes.

POST /api/mcp MCP Streamable HTTP · JSON-RPC 2.0

For file management, live console logs, GitHub imports, backup restore points, and database provisioning, call our Streamable HTTP MCP endpoint directly — or connect it to Claude, ChatGPT, Cursor, VS Code, Windsurf, or Antigravity in one click from /agents.

JSON-RPC 2.0 Example (tools/call)
curl -X POST https://botuptime.net/api/mcp \
  -H "Authorization: Bearer bu_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_bot_logs",
      "arguments": { "bot_id": 42, "lines": 50 }
    }
  }'

3. Full MCP Tool Catalog (22 Tools)

Every tool enforces account ownership, plan quotas, and your token’s permission scopes.

get_account_info
Get the authenticated Bot Uptime account profile, active hosting plan (Free, Developer, Pro), RAM/CPU/SSD/backup limits, and current bot slot quotas.
scope: read
list_bots
List all Discord bots hosted on the user account, including bot IDs, names, runtimes (nodejs, python, java, rust), custom vs ready-made type, and renewal/billing lock status.
scope: read
list_ready_bots
Browse Bot Uptime 1-click Ready-Made Rust Discord Bots catalog (Tickets, Moderation, Anti-Raid, Games, Music) and see which plans include each bot.
scope: read
get_bot_status
Check live container power state (running, offline, starting, stopping), RAM usage, CPU usage, SSD usage, and uptime for a bot.
scope: read
get_bot_logs
Fetch recent live console output and crash tracebacks from a bot container so you can diagnose startup errors or bugs.
scope: read
power_bot
Send a power signal (start, stop, restart, or kill) to a bot container. Respects plan billing locks, slot limits, and free-tier renewal status.
scope: power
create_bot
Create and provision a new isolated Linux container for a custom bot (Discord, Telegram, WhatsApp, or web/API — nodejs, python, java, or rust), respecting plan quotas.
scope: deploy
list_files
List files and directories inside a custom bot container. (Not available on encrypted Ready-Made preset bots.)
scope: read
read_file
Read the text contents of a source/config file inside a custom bot container (e.g. /index.js, /bot.py, /package.json).
scope: read
write_file
Create or overwrite a text/code file inside a custom bot container (max 512 KB). Use create_backup first before major edits.
scope: write
create_folder
Create a new directory inside a custom bot container.
scope: write
rename_file
Rename or move a file or folder inside a custom bot container.
scope: write
delete_file
Delete one or more files or folders inside a custom bot container.
scope: write
import_github_repo
Import a public GitHub repository archive (.zip) into a custom bot container.
scope: write
get_startup_variables
Inspect container startup variables (such as MAIN_FILE, JS_FILE, PY_FILE, NODE_PACKAGES) for a custom bot.
scope: read
update_startup_variable
Update a container startup variable on a custom bot (validated for shell safety).
scope: write
list_backups
List off-container backups/snapshots for a bot and show the plan backup slot limit.
scope: read
create_backup
Create an instant off-container backup snapshot of a bot (0% bot CPU/RAM overhead; auto-rotates oldest unlocked snapshot when slots are full).
scope: write
restore_backup
Restore a bot container back to a saved backup snapshot UUID.
scope: write
list_databases
List managed databases (MySQL, PostgreSQL, MongoDB, Redis) provisioned on your account and your plan database quota.
scope: read
create_database
Provision a new isolated managed database (mysql, postgresql, mongodb, or redis) accessible from your bot containers.
scope: deploy
delete_database
Permanently delete a managed database owned by your account.
scope: deploy