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.
Alerts (0.0.1)
https://api.mailgun.net/
https://api.eu.mailgun.net/
The start timestamp in RFC3339 format(YYYY-MM-DDThh:mm:ssZ) of the timeframe for which you wish to see data. Default is 7 days ago
The end timestamp in RFC3339 format(YYYY-MM-DDThh:mm:ssZ) of the timeframe for which you wish to see data. Default is now
Use this field to group results.
| Enum Value | Description |
|---|---|
| timestamp | Group by date |
| domain_name | Group by domain |
| ip | Group by IP address |
| sender | Group by sender address |
| from | Group by from |
| tags | Group by tags |
| subaccount | Group by subaccount |
- US Mailgun
https://api.mailgun.net/v2/spamtraps
- EU Mailgun
https://api.eu.mailgun.net/v2/spamtraps
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v2/spamtraps?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z&dimension=timestamp&sort=same+as+dimension&ip=string&domain=string&sender=string&from=string&limit=0&include_subaccounts=false'{ "items": [ { … }, { … } ], "paging": {}, "total": 2 }
The start date in UTC (format YYYY-MM-DD) of the timeframe for which you wish to see data.
The end date in UTC (format YYYY-MM-DD) of the timeframe for which you wish to see data.
Acceptable values include date, totals, domain, subject, ip, and from. Defaults to date.
Use this field to group results. Acceptable values include domain, subject, ip, and from.
- US Mailgun
https://api.mailgun.net/v1/spamtraps
- EU Mailgun
https://api.eu.mailgun.net/v1/spamtraps
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v1/spamtraps?start=string&end=string&sortby=string&groupby=string&subject=string&domain=string&ip=string&from=string&limit=0'{ "items": [ { … }, { … } ], "paging": {} }