messages ≤50 条,每条与 POST /message 完全同构(含各自的 emoo_user_id / thread_key)。len(messages) 次配额(默认 300 次/分钟,工作区可配置),超限整体拒绝(4154 + retry_after),无部分成功。Authorization: Bearer ********************{
"messages": [
{
"emoo_user_id": "ou_aaa",
"message_type": "normal",
"content": "审批单 OA-8821 等待您审批",
"thread_key": "oa:approval-8821:user:ou_aaa",
"due_at": "2026-09-10T18:00:00+08:00",
"normal_message_info": {
"from_title": "OA 系统",
"detail_link": "https://oa.example.com/detail/8821"
}
},
{
"emoo_user_id": "ou_bbb",
"message_type": "normal",
"content": "审批单 OA-8821 等待您审批",
"thread_key": "oa:approval-8821:user:ou_bbb",
"due_at": "2026-09-10T18:00:00+08:00",
"normal_message_info": {
"from_title": "OA 系统",
"detail_link": "https://oa.example.com/detail/8821"
}
}
]
}curl --location 'https://app.emooai.com/open-api/v1/message/batch' \
--header 'Emoo-User-Id: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"emoo_user_id": "ou_aaa",
"message_type": "normal",
"content": "审批单 OA-8821 等待您审批",
"thread_key": "oa:approval-8821:user:ou_aaa",
"due_at": "2026-09-10T18:00:00+08:00",
"normal_message_info": {
"from_title": "OA 系统",
"detail_link": "https://oa.example.com/detail/8821"
}
},
{
"emoo_user_id": "ou_bbb",
"message_type": "normal",
"content": "审批单 OA-8821 等待您审批",
"thread_key": "oa:approval-8821:user:ou_bbb",
"due_at": "2026-09-10T18:00:00+08:00",
"normal_message_info": {
"from_title": "OA 系统",
"detail_link": "https://oa.example.com/detail/8821"
}
}
]
}'{
"code": 200,
"message": "success",
"data": {
"success_count": 1,
"failure_count": 1,
"results": [
{
"index": 0,
"code": 200,
"message": "success",
"data": {
"item_id": 1001,
"chat_id": null,
"chat_message_id": null
}
},
{
"index": 1,
"code": 4012,
"message": "data_not_found",
"data": {
"emoo_user_id": "ou_xxx"
}
}
]
}
}