Get number of unread messages per member
Retrieves the total number of each member's unread messages in a specific group channel. This action is only applicable for users in a group channel.
HTTP request
Note: If you are using the in-app channel in Delight AI agent, the endpoint for your API request should start with
https://api-{application_id}.svc.delight.ai/v3instead ofhttps://api-{application_id}.sendbird.com/v3. For more details, refer to our Delight AI agent guide.
Parameters
The following table lists the parameters that this action supports.
Required
| Parameter name | Type | Description |
|---|---|---|
channel_url | string | Specifies the URL of the target channel. |
user_ids | string | Specifies a comma-separated string of one or more IDs of the target users. Urlencoding each user ID is recommended (for example, |
Response
If successful, this action returns the number of unread messages by channel members in the response body.
| Property name | Type | Description |
|---|---|---|
unread | object | An object of key-value items. The key indicates the channel member's user ID and the value indicates the count of the member's unread messages in the channel. |
In the case of an error, an error object is returned. A detailed list of error codes is available here.