Skip to main content
GET
/
account
/
stat
/
group
Get All Account Stats By Group
curl --request GET \
  --url https://api.sendpost.io/api/v1/account/stat/group \
  --header 'X-Account-ApiKey: <api-key>'
[
  {
    "date": "2020-03-12",
    "stats": {
      "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 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:

"2020-03-12"

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 31 days.

Example:

"2020-04-14"

Response

Successfully retrieved stats by group.

date
string<date>

Date for which stats are retrieved (UTC).

Example:

"2020-03-12"

stats
object
I