Use this endpoint to add new alert settings record.
This section covers details around consuming InboxReady deliverability alerts via webhooks. If you are familiar with Mailgun webhooks, there is a lot of overlapping similarity, however, there are also a few minor nuances to account for.
HMAC is used to verified to integrity as well as the authenticity of received webhooks. To verify the origin of a webhook:
NOTE: If you’re consuming Mailgun webhooks, please note that your Mailgun webhook signing key differs from your InboxReady alerts webhook signing key. Your InboxReady alerts webhook signing key is available within the InboxReady UI.
When adding or updating a webhook URL for alerts, we will ensure the endpoint is reachable by sending a GET request to the provided URL. If a 200 response is not returned from your endpoint, the request will be rejected and your alert setting will not be saved. We intentionally chose to send a GET request instead of a POST when validating URLs so that your webhook endpoint does not have to account for test requests.
Additionally, when a POST request is sent to your webhook URL, if a 2xx is not returned, we will attempt retries via an exponential backoff strategy for up to ~8 hours. If the max retry count is reached, the alert will be disabled and the related alert settings record’s disabled_at field will be populated.
A 200 response
A 400 response
A 409 response
A default response
{- "event_type": "ip_listed",
- "channel": "webhook",
}
{- "channel": "webhook",
- "id": "00000000-0000-0000-0000-000000000000",
- "event_type": "ip_listed"
}
Use this endpoint to update an existing alert setting record.
NOTE: When updating a webhook alert, we will ensure the endpoint is reachable by sending a GET request to the provided URL. If a 200 response is not returned, a 400 will be returned and the alert setting update will be rejected.
{- "channel": "email",
- "settings": {
- "emails": [
- "recipient-a@example.com",
- "recipient-b@example.com"
]
}, - "event_type": "ip_delisted"
}
{- "message": "settings updated"
}
This endpoint returns a list of all configured alert settings for your account.
A 200 response
required | Array of objects |
required | object |
required | object |
A default response
{- "events": [
- {
- "channel": "webhook",
- "event_type": "ip_listed",
- "id": "00000000-0000-0000-0000-000000000000",
}, - {
- "channel": "webhook",
- "disabled_at": "2006-01-02 22:04:05 +0000 UTC",
- "event_type": "ip_delisted",
- "id": "00000000-0000-0000-0000-000000000000",
}, - {
- "channel": "email",
- "event_type": "ip_delisted",
- "id": "00000000-0000-0000-0000-000000000000",
- "settings": {
- "emails": [
- "recipient-1@example.com",
- "recipient-2@example.com"
]
}
}
]
}
{- "emails": [
- "email1@example.com",
- "email2@example.com"
], - "event_type": "some-event"
}
{- "message": "string"
}