Inbound Webhooks
When an inbound email arrives for your verified domain, Mailofly sends aPOST request with the parsed payload to your designated webhook endpoint.
Event Payload: email.received
Next.js / Express Webhook Handler Example
Response Expectation
Your webhook endpoint must return an HTTP200 OK or 204 No Content within 10 seconds. If the endpoint times out or returns a 5xx error, Mailofly will automatically retry delivery using exponential backoff.