Retrieve sums of email stats for each category [Needs: Stats object defined, has category ID?]

GET {{baseUrl}}/categories/stats/sums?sort_by_metric=<string>&sort_by_direction=<string>&start_date=<string>&end_date=<string>&limit=<string>&offset=<string>&aggregated_by=<string>

This endpoint allows you to retrieve the total sum of each email statistic for every category over the given date range.

If you do not define any query parameters, this endpoint will return a sum for each category in groups of 10.

Categories allow you to group your emails together according to broad topics that you define. For more information, please see our User Guide.

Request Params

KeyDatatypeRequiredDescription
sort_by_metricstringThe metric that you want to sort by. Metrics that you can sort by are: blocks, bounces, clicks, delivered, opens, requests, unique_clicks, unique_opens, and unsubscribes.'
sort_by_directionstringThe direction to sort the results.
start_datestringThe starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
end_datestringThe end date of the statistics to retrieve. Defaults to today.
limitstringThe number of results to include on each page.
offsetstringThe number of results to exclude.
aggregated_bystringHow to group the stats. Must be either "day", "week", or "month".