Get total number of messages in a channel
Retrieves the total number of messages in a specific 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_type | string | Specifies the type of the channel. Acceptable values are open_channels and group_channels. |
channel_url | string | Specifies the URL of the target channel. |
Response
If successful, this action returns the total number of messages in the channel in the response body.
| Property name | Type | Description |
|---|---|---|
total | int | The total count of messages in the channel. |
In the case of an error, an error object is returned. A detailed list of error codes is available here.