WuKongIM Docs

Read thread summaries for root messages

Operation boundary

  • Caller: Trusted backend only
  • Scope: Performs non-activating summary reads under parent-channel membership visibility for up to 100 root message IDs; never activates thread channels or creates Conversation directory entries.
  • Success: Returns zero-filled summaries (reply_count=0, last_reply_seq=0) for root messages without thread replies and projects person-parent thread IDs for login_uid.
  • Recovery: Fails closed with 503 on temporary read unavailability without partial results; retry with bounded backoff and discard delayed responses from older X-WK-Content-Epoch generations.
POST/channel/thread/summaries

Checks parent-channel membership and returns non-activating reply counts, latest reply sequence, and optional last reply for up to 100 root message IDs.

Request Body

application/json

Request body for reading thread summaries by parent Channel and root message IDs.

TypeScript Definitions

Use the request body type in TypeScript.

Parameters for reading thread summaries under a parent Channel by root message IDs.

Response Body

application/json

application/json

application/json

application/json

{  "summaries": [    {      "root_message_id": "string",      "thread_channel_id": "string",      "thread_channel_type": 13,      "reply_count": 0,      "last_reply_seq": 0,      "last_reply": {        "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",        "version": "string",        "updated_at_ms": 0      }    }  ]}