Astrix Docs

API Reference

Create Bot

Provisiona uma nova aplicação no plano ativo do usuário.

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

Request

curl -X POST https://astrix.website/api/bot/servers \
  -H "Authorization: Bearer $BOT_SHARED_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "discordUserId": "YOUR_DISCORD_ID",
    "name": "meu-bot",
    "language": "NODE",
    "startupCommand": "node index.js"
  }'
  • language: NODE | PYTHON
  • name: 2–40 chars, letras, números, espaço, - e _

Response

{
  "id": "clx...",
  "name": "meu-bot",
  "language": "NODE",
  "status": "INSTALLING"
}