provider Subuser Statistics GET /subusers/stats/sums
@utdk/sendgrid /subusers/stats/sums
Retrieve the totals for each email statistic metric for all subusers.
**This endpoint allows you to retrieve the total sums of each email statistic metric for all subusers over the given date range.**
sort_by_direction query
The direction you want to sort.
enum: desc, asc
start_date query required
The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.
string
end_date query
The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.
string
limit query
Limits the number of results returned per page.
integer
offset query
The point in the list to begin retrieving results from.
integer
aggregated_by query
How to group the statistics. Defaults to today. Must follow format YYYY-MM-DD.
string
sort_by_metric query
The metric that you want to sort by. Must be a single metric.
string

Try it

Authentication
Configure credentials for Email Activity (beta)
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getSubusersStatsSums
GET/subusers/stats/sums
**This endpoint allows you to retrieve the total sums of each email statistic metric for all subusers over the given date range.**

The direction you want to sort.

required

The starting date of the statistics to retrieve. Must follow format YYYY-MM-DD.

The end date of the statistics to retrieve. Defaults to today. Must follow format YYYY-MM-DD.

Limits the number of results returned per page.

The point in the list to begin retrieving results from.

How to group the statistics. Defaults to today. Must follow format YYYY-MM-DD.

The metric that you want to sort by. Must be a single metric.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.getSubusersStatsSums({
  "sort_by_direction": "desc",
  "limit": 5,
  "offset": 0,
  "sort_by_metric": "delivered"
})