Webhooks
Last updated
Last updated
Webhooks allow you subscribe to certain events relating to your mailings, such as delivery notification, exception, etc... When one of those events is triggered, we'll send a HTTP POST to the webhook's configured URL. Webhooks can be used to update an external system such as a CRM or marketing automation tool.
Webhooks can be set up at an account level, just navigate to API > Webhooks to get started. You can create up to 10 webhooks. Once setup, the webhook will be triggered each time an event occurs on any mailing within your account.
Webhooks contain a JSON
payload with the following fields.
HTTP POST
payloads contain an X-SLM-Signature
HTTP header. This is the HMAC hex digest of the response body. It is generated using the SHA1 hash function with the secret displayed on the API > Webhooks page as the HMAC key. You can use this in order to verify the authenticity and integrity of a payload.
Each event corresponds to the state of a mailing:
If the server does not return a HTTP 200 Success response code, we will retry the POST
up to 10 times using an exponential backoff strategy.
Webhooks which continue to fail after exhausting their retry attempts will be automatically disabled and will need to be re-enabled manually from the dashboard.
When you create a webhook, we'll send a simple ping
event to test connectivity. You can also trigger them from the webhooks list.
Filed
Description
object_id
The ID of the object to which the webhook relates
object_type
The type of the object to which the webhook relates. For mailings, this will be Mailing
event
A string describing the event which triggered the webhook. In the case of Mailing's, an event is fired
timestamp
An ISO 8601 formatted timestamp indicating when the event occurred.
Event
Description
append_failed
Unable to append a physical address to email
address_invalid
Invalid address data learn more
suppressed
Address or email appears on a set list of suppressions
budget_exceeded
credit_balance_exceeded
processing
Confirming all details of the mailing and production
mailed
delivered
Scanned as delivered
delivery_exception
Delivery will make a second attempt
failed
Indicates a fatal issue which prevents the mailing from being processed
holdout
Not mailed as part of the holdout group