Перейти к основному содержанию
GET
/
api
/
bots
List all bots
curl --request GET \
  --url http://localhost:8080/api/bots \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "token": "<string>",
    "name": "<string>",
    "source": "cli",
    "manage_enabled": true,
    "proxy_enabled": true,
    "backend_url": "<string>",
    "secret_token": "<string>",
    "long_poll_enabled": true,
    "description": "<string>",
    "running": true,
    "webhook_mode": true
  }
]

Авторизации

Authorization
string
header
обязательно

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Ответ

Array of bots

id
integer

Unique bot ID

token
string

Telegram bot token

name
string

Display name

source
enum<string>

Registration source (informational only — both types are functionally identical)

Доступные опции:
cli,
web
manage_enabled
boolean

Whether chat management features are active for this bot

proxy_enabled
boolean

Whether this bot forwards updates to a backend URL

backend_url
string

Backend URL to forward updates to (when proxy_enabled)

secret_token
string

Secret token for validating backend webhook requests

long_poll_enabled
boolean

Whether the long-poll endpoint buffers updates for this bot

description
string

Natural-language description used by the LLM router

running
boolean

Whether the bot is currently active (polling or webhook-registered)

webhook_mode
boolean

Whether the bot is in webhook mode (not polled by BotMux)