跳转到主要内容
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