主动发文本 / 文件(Master 调用)
POST /api/v1/messages/send
Header: X-Send-Key: <SEND_API_KEY> 或 ?key=
{"bot":"b_xxxx","text":"任务开始"}
{"bot":"b_xxxx","file_url":"https://r2.xxx/report.txt","file_name":"报告.txt","content":"任务完成"}
读取对话
GET /api/messages?bot=<id|__all__>&since=<ms>
Header: X-Admin-Key
回调
POST /api/webhook?bot=<id> — 自动处理 op:13 验证与 op:0 事件
收到消息会 POST 到机器人的「上报 URL」,体含 from / content / file_url
其它
GET /api/health · GET /api/bootstrap · GET /api/export
POST /api/bots · DELETE /api/bots?id= · POST /api/clear