GET
/
account
/
stat
/
aggregate
/
group
Get Account Aggregate Stats by Group
curl --request GET \
  --url https://api.sendpost.io/api/v1/account/stat/aggregate/group \
  --header 'X-Account-ApiKey: <api-key>'
{
  "processed": 225,
  "delivered": 200,
  "dropped": 10,
  "hardBounced": 10,
  "softBounced": 5,
  "unsubscribed": 6,
  "spam": 2
}

Authorizations

X-Account-ApiKey
string
header
required

This api key can be used for all account level operations

Query Parameters

group
string
required

Group whose aggregate stats need to be retrieved.

Example:

"shopify"

from
string<date>
required

Date from which stats should be retrieved (should be in the format YYYY-MM-DD).

Example:

"2019-01-01"

to
string<date>
required

Date to which stats should be retrieved (should be in the format YYYY-MM-DD). Note that the difference between from and to should not be more than 366 days.

Example:

"2019-12-31"

Response

200
application/json

Successfully retrieved aggregate stats by group.

The response is of type object.