Webhooks Overview
Webhooks allow Mailofly to notify your application server in real-time when events occur — such as an email being delivered, opened, clicked, bounced, or flagged as a spam complaint.How Webhooks Work
- You register a public HTTPS endpoint in your Mailofly dashboard.
- When an email event occurs, Mailofly sends an HTTP
POSTrequest with a JSON payload to your endpoint. - Your server validates the HMAC signature and processes the event (e.g. updating a customer’s record or notifying an account manager).
Setting Up a Webhook
- In the sidebar, navigate to Settings → Webhooks.
- Click Add Webhook.
- Enter your Endpoint URL (must be
https://). - Select the event types to listen for (e.g.
email.delivered,email.bounced). - Copy the generated Signing Secret (
whsec_...) to verify payloads.