menu
Count an announcement's messages
Counts the messages an announcement produced. The companion of the announcement messages list.
Endpoint
GET https://api.sendstreak.com/v2/accounts/{accountId}/announcements/{announcementId}/messages/count
All v2 endpoints require a bearer token - see Authentication.
Path parameters
| Parameter | Type | Description |
|---|---|---|
accountId | string | The account the request is scoped to. |
announcementId | string |
Response
The matching count.
{
"count": 42
}
Errors
| Status | Description |
|---|---|
401 | Missing or invalid token, or the token is not authorized for this account/user. |
See Errors and rate limits for what error responses look like.
Curl example
curl --location --request GET 'https://api.sendstreak.com/v2/accounts/YOUR_ACCOUNT_ID/announcements/YOUR_ANNOUNCEMENT_ID/messages/count' \
--header 'Authorization: Bearer YOUR_API_TOKEN'