Skip to content

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.

Download OpenAPI description
Languages
Servers
US Mailgun

https://api.mailgun.net/

EU Mailgun

https://api.eu.mailgun.net/

Operations

Inbox Placement

Inbox Placement testing allows you to see the likely deliverability of your email campaigns.

Operations

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
Bodyapplication/jsonrequired
fromstringrequired
subjectstringrequired
htmlstring
template_namestring

template from Mailgun Send

variablesobject
seed_liststring

Use existing Seed List. If omitted creates new Seed List

provider_filterArray of strings

missing/null/[] means all providers

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"
    ]
  }'

Responses

A 202 response

Bodyapplication/json
result_idstringrequired
linksobject(Service_Documentation_github.com-mailgun-spy-api-CreateTestRespLinks)required
links.​resultsstringrequired
Response
application/json
{ "result_id": "uuid4", "links": { "results": "https://api.mailgun.net/v4/inbox/results/uuid4" } }

Request

List all available email providers.

Security
basicAuth
curl -i -X GET \
  -u <username>:<password> \
  https://api.mailgun.net/v4/inbox/providers

Responses

A 200 response

Bodyapplication/json
itemsArray of objects(Service_Documentation_github.com-mailgun-spy-api-Provider)required
items[].​domainstringrequired
items[].​display_namestringrequired
items[].​regionstringrequired
items[].​created_atstring(date-time)required
items[].​updated_atstring(date-time)required
items[].​max_email_countinteger(int32)required
items[].​seeds_limitinteger(int32)required
items[].​unsupported_authenticationsobject(Service_Documentation_github.com-mailgun-spy-api-UnsupportedAuthentications)required
items[].​unsupported_authentications.​dkimbooleanrequired
items[].​unsupported_authentications.​spfbooleanrequired
items[].​unsupported_authentications.​dmarcbooleanrequired
items[].​virtualbooleanrequired
Response
application/json
{ "items": [ {} ] }

Email Preview

This API provides functionality to create and manage email preview tests, as well as create shareable links.

Operations

Spam Traps Monitoring

Our spam trap monitoring service surfaces how much of your email is being sent to known spam traps.

Operations
Operations
Operations

Domain Blocklist Monitoring

Blocklist Monitoring enables you to keep an eye on your reputation. Monitor your domains against our curated list of blocklist providers to make sure you aren't being blocked.

Operations

Google Postmaster Tools

This API provides access to Google Postmaster data.

Operations

Microsoft SNDS

This API provides access to Microsoft SNDS data.

Operations
Operations