Mailgun keeps track of every inbound and outbound message event and stores this data for at least 3 days.
WARNING: This API is deprecated in favor of our Logs API.
Mailgun tracks every inbound and outbound message event and retains this data for at least 3 days. See Filter expression for details about filtering expressions
Security
basicAuth
Filter by event severity, if exists. Currently for failed events only. See Tracking Failures
| Enum Value | Description |
|---|---|
| temporary | Mailgun could not deliver the email to the recipient email server, but will retry |
| permanent | Mailgun could not deliver the email to the recipient email server, and will drop the message without retrying sending. |
- US Mailgunhttps://api.mailgun.net/v3/{domain_name}/events
- EU Mailgunhttps://api.eu.mailgun.net/v3/{domain_name}/events
curl -i -X GET \
-u '<username>:<password>' \
'https://api.mailgun.net/v3/{domain_name}/events?begin=string&end=string&ascending=yes&limit=300&event=string&list=string&attachment=string&from=string&message-id=string&subject=string&to=string&size=string&recipient=string&recipients=string&tags=string&severity=temporary'Response
- Rejected
- Stored
- Complained
- Unsubscribed
- Clicked
- Opened
- Failed
- Delivered
- Accepted
{ "items": [ { … } ], "paging": { "next": "https://api.mailgun.net/v3/samples.mailgun.org/events/W3siY...", "previous": "https://api.mailgun.net/v3/samples.mailgun.org/events/Lkawm..." } }