Platform APIEnterprise
Get conversation unread counts
Get a user's unread message counts for selected conversations.
HTTP request
POST {API_ADDRESS}/msg/get_conversations_unread_countRequest example
curl --request POST "${API_ADDRESS}/msg/get_conversations_unread_count" --header "Content-Type: application/json" --header "operationID: ${OPERATION_ID}" --header "token: ${TOKEN}" --data-raw '{"userID":"user_001","conversationIDs":["si_user_001_user_002"]}'Request body
| Parameter | Required | Type | Description |
|---|---|---|---|
| userID | Yes | string | User whose unread state is queried. |
| conversationIDs | Yes | string[] | Conversations to query. |
Response
data.unreadCount maps each conversation ID to its unread count.
Errors
See Error codes.
Permissions and limits
- Available only in OpenIM Enterprise.
- Request array limits follow the delivered server version.
Related pages
Was this page helpful?