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/
Request
Create and run a new inbox placement test.
Either 'html' or 'template_name' field should be provided.
'variables' are Template variables, which could be used in html or template. You can use next recipient variables inside Template variables, which will be filled for every seed automatically: %recipient.first_name%, %recipient.last_name%.
- US Mailgun
https://api.mailgun.net/v4/inbox/tests
- EU Mailgun
https://api.eu.mailgun.net/v4/inbox/tests
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.mailgun.net/v4/inbox/tests \
-H 'Content-Type: application/json' \
-d '{
"from": "First Last <mail@example.com>",
"subject": "Buy our elephants",
"html": "<html><body>Hello {{first_name}} {{last_name}}. Visit our new shop at {{address}}. <b>Our elephants are the best.</b> </body></html>",
"template_name": "template1",
"variables": {
"address": "108, Robinson Ave, Richmond",
"first_name": "%recipient.first_name%",
"last_name": "%recipient.last_name%"
},
"seed_list": "ibp-123@mailgun.com",
"provider_filter": [
"gmail.com",
"hotmail.com"
]
}'
{ "result_id": "uuid4", "links": { "results": "https://api.mailgun.net/v4/inbox/results/uuid4" } }
- US Mailgun
https://api.mailgun.net/v4/inbox/providers
- EU Mailgun
https://api.eu.mailgun.net/v4/inbox/providers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.mailgun.net/v4/inbox/providers
{ "items": [ { … } ] }