同步最多 200 个 Channel
接口边界
- 调用方:仅限受信业务后端
- 作用域:每个 items 条目独立执行;响应顺序与请求一致。
- 成功判定:HTTP 200 仍需逐项检查 error;一个条目失败不代表整个批次使用非 2xx。
POST
/channel/messagesyncbatch批量读取前校验全部成员关系;单项失败嵌入 HTTP 200 响应。
请求主体
application/json
一个用户及最多 200 个 Channel 的消息读取条件。
TypeScript 定义
在 TypeScript 中使用 request body 类型。
批量 Channel 已提交消息同步参数。
响应主体
application/json
application/json
application/json
{ "items": [ { "channel_id": "string", "channel_type": 0, "start_message_seq": 0, "end_message_seq": 0, "more": 0, "messages": [ { "header": { "no_persist": 0, "red_dot": 0, "sync_once": 0 }, "setting": 0, "message_id": 0, "message_idstr": "string", "client_msg_no": "string", "end": 0, "end_reason": 0, "error": "string", "stream_data": "string", "event_meta": { "has_events": true, "completed": true, "event_version": 0, "last_msg_event_seq": 0, "event_count": 0, "open_event_count": 0, "events": [ { "event_key": "string", "status": "string", "last_msg_event_seq": 0, "snapshot": null, "end_reason": 0, "error": "string" } ] }, "event_sync_hint": { "client_msg_no": "string", "from_msg_event_seq": 0 }, "message_seq": 0, "from_uid": "string", "channel_id": "string", "channel_type": 0, "topic": "string", "expire": 0, "timestamp": 0, "payload": "string" } ], "error": "string" } ]}