Skip to content

Retrieve DMARC reporting data from a specific source.

Request

Security
basicAuth
Path
domainstringrequired

Fully qualified domain name

Example:example.com
sourcestringrequired

User friendly source id name

Example:mailgun
Query
frominteger

UNIX epoch (UTC seconds) representing the start of the time range.

Example:from=1736790000
tointeger

UNIX epoch (UTC seconds) representing the end of the time range. If supplied, from must also be set.

Example:to=1736790285
curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v1/dmarc/domains/example.com/s/mailgun?from=1736790000&to=1736790285'

Responses

OK | Object representing DMARC info for a source

Bodyapplication/json
Response
{ "email_count": "79,", "compliance_rate": 0.58, "ip_count": 2, "pfqr_chart": [ { … }, { … } ], "hostnames": [ { … }, { … } ], "auth_events": [ { … } ] }