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/
- US Mailgun
https://api.mailgun.net/v1/alerts/webhooks/test
- EU Mailgun
https://api.eu.mailgun.net/v1/alerts/webhooks/test
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.mailgun.net/v1/alerts/webhooks/test \
-H 'Content-Type: application/json' \
-d '{
"event_type": "some-event",
"url": "https://some-webhook-url.com/webhook"
}'
Response
application/json
{ "message": "string" }
- US Mailgun
https://api.mailgun.net/v1/alerts/email/test
- EU Mailgun
https://api.eu.mailgun.net/v1/alerts/email/test
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.mailgun.net/v1/alerts/email/test \
-H 'Content-Type: application/json' \
-d '{
"event_type": "some-event",
"emails": [
"email1@example.com",
"email2@example.com"
]
}'
Response
application/json
{ "message": "string" }
- US Mailgun
https://api.mailgun.net/v1/alerts/slack/test
- EU Mailgun
https://api.eu.mailgun.net/v1/alerts/slack/test
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.mailgun.net/v1/alerts/slack/test \
-H 'Content-Type: application/json' \
-d '{
"event_type": "some-event",
"channel_ids": [
"C0123",
"C0456"
]
}'
Response
application/json
{ "message": "string" }