GET
/
account
/
subaccount
/
stat
/
{subaccount_id}
/
group
Get aggregated stats by group
curl --request GET \
  --url https://api.sendpost.io/api/v1/account/subaccount/stat/{subaccount_id}/group \
  --header 'X-Account-ApiKey: <api-key>'
{
  "processed": 22500,
  "delivered": 20000,
  "dropped": 1000,
  "hardBounced": 1000,
  "softBounced": 500,
  "opened": 5000,
  "clicked": 3000,
  "unsubscribed": 500,
  "spam": 200
}

Authorizations

X-Account-ApiKey
string
header
required

This api key can be used for all account level operations

Path Parameters

subaccount_id
integer
required

The ID of the subaccount to retrieve

Example:

11

Query Parameters

group
string
required

Group whose aggregated stats need to be retrieved

from
string<date>
required

The starting date for the aggregated stats

to
string<date>
required

The ending date for the aggregated stats (Note: from should be earlier than to and the date range should not exceed 366 days)

Response

200 - application/json

Aggregated email stats for the group within the specified date range

The response is of type object.