curl --request POST \
--url https://zeus-api.agentspro.cn/channels/feishu/webhook \
--header 'Content-Type: application/json' \
--data '{
"type": "url_verification",
"challenge": "abc123",
"token": "xxx"
}'
curl --request POST \
--url https://zeus-api.agentspro.cn/channels/feishu/webhook \
--header 'Content-Type: application/json' \
--data '{
"header": {
"event_id": "evt_001",
"event_type": "im.message.receive_v1"
},
"event": {
"message": {
"content": "{\"text\":\"帮我查一下今天的日程\"}"
}
}
}'
{
"challenge": "abc123"
}
{
"code": 0,
"msg": "success"
}
渠道 API
飞书 Webhook
飞书事件订阅 Webhook — URL 验证与消息接收
POST
/
channels
/
feishu
/
webhook
curl --request POST \
--url https://zeus-api.agentspro.cn/channels/feishu/webhook \
--header 'Content-Type: application/json' \
--data '{
"type": "url_verification",
"challenge": "abc123",
"token": "xxx"
}'
curl --request POST \
--url https://zeus-api.agentspro.cn/channels/feishu/webhook \
--header 'Content-Type: application/json' \
--data '{
"header": {
"event_id": "evt_001",
"event_type": "im.message.receive_v1"
},
"event": {
"message": {
"content": "{\"text\":\"帮我查一下今天的日程\"}"
}
}
}'
{
"challenge": "abc123"
}
{
"code": 0,
"msg": "success"
}
飞书开放平台的事件订阅回调端点。此接口不需要认证,由飞书服务器直接调用。
处理的事件类型
| 事件类型 | 说明 |
|---|---|
url_verification | URL 验证(首次配置时飞书发送) |
im.message.receive_v1 | 接收用户消息 |
流程
- 飞书发送
url_verification→ 返回{ challenge }完成验证 - 用户在飞书发送消息 →
im.message.receive_v1事件 - 去重检查(
event_id)→ 后台异步处理 → 快速返回{ code: 0 }给飞书
curl --request POST \
--url https://zeus-api.agentspro.cn/channels/feishu/webhook \
--header 'Content-Type: application/json' \
--data '{
"type": "url_verification",
"challenge": "abc123",
"token": "xxx"
}'
curl --request POST \
--url https://zeus-api.agentspro.cn/channels/feishu/webhook \
--header 'Content-Type: application/json' \
--data '{
"header": {
"event_id": "evt_001",
"event_type": "im.message.receive_v1"
},
"event": {
"message": {
"content": "{\"text\":\"帮我查一下今天的日程\"}"
}
}
}'
{
"challenge": "abc123"
}
{
"code": 0,
"msg": "success"
}
⌘I