Get number of channels with unread messages
This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels.
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.
Parameters
| Required | Type | Description |
|---|---|---|
user_id | string | Specifies the unique ID of a user. |
| Optional | Type | Description |
|---|---|---|
custom_types | string | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. |
super_mode | string | Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are |
Responses
If successful, this action returns the total number of group channels in which the user has unread messages in the response body.
List of response properties
| Property name | Type | Description |
|---|---|---|
unread_count | long | The total number of the user's group channels with unread messages. |
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.