Skip to content

Totals for account domains for a single time resolution
deprecated

Request

Gets stat totals for domains in an account for a single time resolution

Security
basicAuth
Query
eventstringrequired

Name of the event(s) to receive the stats for (Multiple events are allowed). Supported events are: accepted, delivered, failed, opened, clicked, unsubscribed, complained, stored

limitstring

Skip x number of domains; used to page through large numbers of domains

resolutionstring

The gregorian resolution the query is for 'day, month, hour` (default: day)

timestampstringrequired

The date/time of the 'resolution' we are retrieving

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/stats/total/domains?event=string&limit=string&resolution=string&timestamp=string'

Responses

A 200 response

Bodyapplication/json
tagstring
descriptionstringrequired
startstringrequired
endstringrequired
typeobject(github.com-mailgun-scout-model-types-StatType)
resolutionstringrequired
statsArray of objects(github.com-mailgun-scout-model-stats-StatsItem)required
Response
{ "description": "Optional Description", "start": "Tue, 14 Feb 2012 00:00:00 UTC", "end": "Fri, 01 Apr 2012 00:00:00 UTC", "resolution": "month", "stats": [ {} ] }