Callbacks are a feature that allows our system to automatically notify your server whenever certain events happen. When a callback is invoked, it sends a message containing information about the event in question to a specified URL.
Follow these steps to enable callbacks for sending transactional emails in Everlytic:
Check the checkboxes for the types of callbacks you want to receive (e.g. sent, delivered, failed etc.).
The callback will be triggered depending on the events you selected in step six above. So, if you selected all of them, you’ll receive callbacks for all those events. But, if you only select sent, delivered, and failed, you’ll only receive callbacks when messages are sent, delivered, or failed.
When you want to check the callbacks, you can log into the URL they are being posted to.
The callback itself is a JSON string formatted as follows:
'trans_id': <transaction id>,
'event_type': 'sent, failed etc.',
'group_name': 'transaction group name',
'custom_headers', [list of custom headers]
Alternatively, you can use our API to check the callbacks. The Everlytic API has two callback requests available: