Перейти к основному содержанию
GET
/
api
/
routes
List routes
curl --request GET \
  --url http://localhost:8080/api/routes \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "source_bot_id": 123,
    "target_bot_id": 123,
    "condition_type": "<string>",
    "condition_value": "<string>",
    "action": "<string>",
    "target_chat_id": 123,
    "enabled": true,
    "description": "<string>"
  }
]

Авторизации

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

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

Параметры запроса

bot_id
integer
обязательно

Source bot ID

Ответ

Array of routes

id
integer

Route ID

source_bot_id
integer

Source bot that receives messages

target_bot_id
integer

Target bot that forwards messages

condition_type
string

Condition to match (e.g., chat_id, user_id, keyword, all)

condition_value
string

Value to match for the condition

action
string

Action to take (forward, copy, etc.)

target_chat_id
integer

Target chat to route messages to

enabled
boolean

Whether this route is active

description
string

Human-readable description of this route