Astrix Docs

API Reference

List Bots

Retorna todas as aplicações (bots) da conta Astrix vinculada ao Discord ID.

GEThttps://astrix.website/api/bot/servers

Request

curl -H "Authorization: Bearer $BOT_SHARED_SECRET" \
  "https://astrix.website/api/bot/servers?discordUserId=YOUR_DISCORD_ID"
  • Query obrigatória: discordUserId
  • Inclui resumo da conta (plano, contagem de servers)

Response

{
  "servers": [
    {
      "id": "clx...",
      "name": "meu-bot",
      "language": "NODE",
      "status": "RUNNING",
      "subdomain": null,
      "startupCommand": "node index.js",
      "entryFile": "index.js",
      "ramMb": 512,
      "diskMb": 2048,
      "cpuPercent": 100,
      "planName": "Free",
      "createdAt": "2026-07-01T12:00:00.000Z"
    }
  ],
  "account": {
    "planName": "Free",
    "planRamMb": 512,
    "maxServers": 1,
    "serverCount": 1
  }
}