///
Retrieve DMARC reporting data for a domain.
Alerts (0.0.1)
Our alerting solution is centered around two concepts: events and channels. The occurrence of an event can be configured to trigger an alert. A channel describes the delivery method for an alert. Every configured alert consists of an event type / channel pair. This level of granularity allows alerting to be configured to your exact preference.
Download OpenAPI description
Languages
Servers
US Mailgun
https://api.mailgun.net/
EU Mailgun
https://api.eu.mailgun.net/
- US Mailgun
https://api.mailgun.net/v1/dmarc/domains
- EU Mailgun
https://api.eu.mailgun.net/v1/dmarc/domains
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v1/dmarc/domains?from=1736790000&to=1736790285'
Response
application/json
{ "domains": [ { … }, { … } ], "pfqr_chart": [ { … }, { … } ] }
- US Mailgun
https://api.mailgun.net/v1/dmarc/domains/{domain}
- EU Mailgun
https://api.eu.mailgun.net/v1/dmarc/domains/{domain}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v1/dmarc/domains/example.com?from=1736790000&to=1736790285'
Response
application/json
{ "email_count": "79,", "compliance_rate": 0.58, "dmarc_policy": "p=none 100%", "pfqr_chart": [ { … }, { … } ], "sources": [ { … }, { … } ] }
- US Mailgun
https://api.mailgun.net/v1/dmarc/domains/{domain}/s/{source}
- EU Mailgun
https://api.eu.mailgun.net/v1/dmarc/domains/{domain}/s/{source}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v1/dmarc/domains/example.com/s/mailgun?from=1736790000&to=1736790285'
Response
application/json
{ "email_count": "79,", "compliance_rate": 0.58, "ip_count": 2, "pfqr_chart": [ { … }, { … } ], "hostnames": [ { … }, { … } ], "auth_events": [ { … } ] }