Sync Event Webhook format

Sync events allow you to keep your Rejection Whitelist and Rejection Blacklist synced to your own database or CRM by sending information about additions and removals via webhooks. For whitelist entries, a webhook will be triggered when an entry is added or removed. For blacklist entries, an event will be triggered when an address is added, removed, or changed (ie, if it was already on the rejection blacklist before, and gets added back because of a new event). Below is a list of the keys included for sync events.

Keydescription
ts the integer UTC unix timstamp that the event occurred
type the list the sync event applies to (whitelist or blacklist)
action the name of the event. Possible values: add (whitelist or blacklist), remove (whitelist or blacklist), change (blacklist only)
reject details of the entry. Contains an array of key/value pairs with the following keys:
reason for the rejection blacklist only, the reason the email address was added to the rejection blacklist
detail the (optional) user-generated note about the entry for manually-added blacklist entries and all whitelist entries
last_event_at for the rejection blacklist only, the date/time of the last event for this email address (formatted date in YYYY-MM-DD HH:MM:SS)
email the email address impacted by the whitelist or blacklist entry
created_at the date/time that the original entry was created (formatted date in YYYY-MM-DD HH:MM:SS)
expires_at for the rejection blacklist only, the date/time that the rejection blacklist entry expires automatically, if any (formatted date in YYYY-MM-DD HH:MM:SS)
expired for the rejection blacklist only, whether the rejection blacklist entry has expired
subaccount for the rejection blacklist only, the subaccount, if any, that the rejection entry applies to
sender for the rejection blacklist only, the sender, if any, that the rejection entry applies to