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.
https://api.mailgun.net/
https://api.eu.mailgun.net/
- 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'
{ "email_count": "79,", "compliance_rate": 0.58, "ip_count": 2, "pfqr_chart": [ { … }, { … } ], "hostnames": [ { … }, { … } ], "auth_events": [ { … } ] }
- US Mailgun
https://api.mailgun.net/v1/dmarc/domains/{domain}/s/{source}/h/{host}
- EU Mailgun
https://api.eu.mailgun.net/v1/dmarc/domains/{domain}/s/{source}/h/{host}
- 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/h/mx.mailgun.com?from=1736790000&to=1736790285'
{ "email_count": "79,", "ip_count": 2, "spf_fail_events": 1, "dkim_fail_events": 1, "auth_fail_events": 1, "pfqr_chart": [ { … }, { … } ], "ip_addresses": [ { … }, { … } ], "auth_events": [ { … } ] }
- US Mailgun
https://api.mailgun.net/v1/dmarc/domains/{domain}/s/{source}/h/{host}/ip/{ip}
- EU Mailgun
https://api.eu.mailgun.net/v1/dmarc/domains/{domain}/s/{source}/h/{host}/ip/{ip}
- 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/h/mx.mailgun.com/ip/8.8.8.8?from=1736790000&to=1736790285'
{ "email_count": "79,", "ip_count": 2, "spf_fail_events": 1, "dkim_fail_events": 1, "auth_fail_events": 1, "ruf": "todo", "pfqr_chart": [ { … }, { … } ], "auth_events": [ { … } ] }