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.
- Get Result by a Share ID
List Seed Lists
Generate a New Seed List
List Available Attributes for Seed Lists
Get List of Values for Seed List Attribute
Get List of Available Seed List Filters
Get Seed List
Update Seed List
Delete a Seed List
List Results
List Available Attributes for Results
Get List of Values for a Result Attribute
List available filters for Results
Get Result Details
Delete Result
Get Result Sharing Status
Update Result Sharing Status
Run Inbox Placement Test
List Email Providers
Get Result by a Share ID
Alerts (0.0.1)
Download OpenAPI description
Languages
Servers
US Mailgun
https://api.mailgun.net/
EU Mailgun
https://api.eu.mailgun.net/
- US Mailgun
https://api.mailgun.net/v4/inbox/sharing/{result}
- EU Mailgun
https://api.eu.mailgun.net/v4/inbox/sharing/{result}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
-u <username>:<password> \
'https://api.mailgun.net/v4/inbox/sharing/{result}?enabled=true'Response
application/json
{ "expires_at": "0001-01-01 00:00:00 +0000 UTC" }
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%.
Security
basicAuth
- 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"
]
}'Response
application/json
{ "result_id": "uuid4", "links": { "results": "https://api.mailgun.net/v4/inbox/results/uuid4" } }