New guide: how to warm up a dedicated IP without hurting your reputation. Read now →
Log in
MigoSMTP
Webhooks & Events

Know the moment something happens

Receive signed events for every delivery, bounce, open, click and complaint, and replay what you missed.

AI summarises event streams and flags unusual bounce patterns as they appear.

Add endpoint
URL
https://example.com/hook
Secret
••••••••••
Save
Endpoint added
HTTPS only
Verified
Add an HTTPS endpointGive us a URL that can receive POST requests. We confirm it responds before any real event is sent.
Subscribed events
deliveredMessage accepted
bouncedHard and soft
complainedSpam reports
clickedLink activity
Per event
Per stream
Pick the events you wantSubscribe only to what you act on: delivered, bounced, complained, opened or clicked.
Delivery events
Signed events
/hooks/mail
200 OK
Analytics
200 OK
CRM sync
200 OK
Real time
Multiple endpoints
Events fan out in real timeEach event is posted to every endpoint that subscribed, so analytics, CRM and alerts all stay in sync.
Payload
{ "event": "delivered" }
Signature header
sha256=9f2c41…
Shared secret
Timestamped
Constant-time compare
Reject anything that fails verification
HMAC-SHA256
Replay safe
Verify every requestEach request carries an HMAC signature built with your secret, so you can prove it came from us.
Endpoint health · /hooks/mail
AI
1h ago
Now
Errors risingMost failures are 502 after your last deploy.
Suggested: queue events, then replay once /hooks/mail recovers
Groups failures
Pause or replay
AI spots a failing endpoint earlyInstead of waiting for retries to run out, AI notices your endpoint's error rate climbing and groups the failures by cause. It proposes a fix and can pause the noisy event.
Webhook handler
Node
Python
PHP
Go
PHP
app.post("/hook", (req, res) => {
verify(req, SECRET)
res.sendStatus(200)
})
200 OK
Ack fast
Idempotent
A handler in a few linesVerify the signature, acknowledge fast, process later. That is all a reliable consumer needs.
Endpoint
Events
Fan-out
Signature
AI triage
Handler
SMTP relayREST APIWebhooksDedicated IPsDKIM signingInbound parseTemplatesAnalyticsSuppression listsReputation monitoringEmail validationTeam roles and audit logSMTP relayREST APIWebhooksDedicated IPsDKIM signingInbound parseTemplatesAnalyticsSuppression listsReputation monitoringEmail validationTeam roles and audit log
Capabilities

Reliable event delivery

Every outcome

Delivered, deferred, bounced, opened, clicked, complained and unsubscribed.

Receive an event for every outcome: delivered, deferred, bounced, opened, clicked, complained and unsubscribed. Your systems can update records, notify teams or trigger workflows the moment something happens.

  • Full set of delivery outcomes
  • Sent as events happen
  • JSON payloads

Signed payloads

Verify every request came from MigoSMTP.

Every request is signed so your endpoint can verify it came from MigoSMTP. Reject anything unsigned and you are protected against forged events.

  • Signature on every request
  • Simple verification
  • Reject unsigned requests

Retries with backoff

Failed deliveries are retried automatically.

If your endpoint is down or slow, failed deliveries are retried with backoff rather than dropped. Brief outages do not mean lost events.

  • Automatic retries
  • Backoff between attempts
  • Visible failure history

Replay

Re-send events from the log after an outage.

After a longer outage, replay events from the log so your systems catch up. You do not lose the history and you do not need to write a recovery script.

  • Re-send from the log
  • Catch up after downtime
  • Rebuild state safely

Event filters

Subscribe to only the events you need.

Subscribe only to the events you need so your endpoint is not flooded with noise. Filters keep processing cheap and handlers simple.

  • Per-endpoint event selection
  • Fewer requests to handle
  • Change filters any time

Delivery logs

See request, response and status for every attempt.

See the request, response and status of every delivery attempt. When something breaks you can tell whether the problem is on our side or yours without guessing.

  • Request and response recorded
  • Status per attempt
  • Faster debugging

How it works

Event occursA message is delivered, deferred, bounced, opened, clicked or reported as spam.
MigoSMTP signs and sendsThe event is wrapped in a signed JSON payload and sent to your HTTPS endpoint.
Your endpoint verifiesYour handler checks the signature, then acknowledges with a 2xx response.
Retry and replayFailed deliveries are retried, and you can replay events from the log after an outage.
STEP 1

Add an endpoint

Enter your HTTPS URL and choose events.

STEP 2

Verify the signature

Check the signature header on each request.

STEP 3

Process and acknowledge

Return a 2xx response to confirm receipt.

See it in action

Webhooks in action

Each stage plays automatically. Select one to pause on it. Illustrative interface: all figures and addresses shown are sample data.

app.migosmtp.com/webhooksSample data
URL
HTTPS only
Secret
Set
Status
Verified
Sample activityEndpoint
addendpoint saved
testping sent
response200 received
verifyconfirmed
Events
6 of 8
Filters
On
Streams
All
Sample activitySubscribe
eventdelivered
eventbounced
eventcomplained
filteropens excluded
Signed
Yes
Retries
Backoff
Logged
Every attempt
Sample activityDeliver
postevent sent
signatureverified
fail503 from endpoint
retryscheduled
Log
Searchable
Replay
Available
Gap
Closed
Sample activityReplay
outageendpoint down
selectevents from log
replayre-sent
statecaught up
Operations

Keep your systems in step with your email

Update your database, trigger workflows and alert your team without polling.

  • Per-endpoint event selection
  • Automatic retries and manual replay
  • Full request and response logs
  • Secrets you can rotate
At a glance01 / 04
TransportHTTPS POST
FormatJSON
SecuritySignature header
RetriesAutomatic, with backoff
Overview

What is webhooks and events?

Email webhooks are HTTP callbacks that notify your application when something happens to a message you sent. MigoSMTP posts a signed JSON payload to your HTTPS endpoint for events such as delivered, deferred, bounced, opened, clicked, complained and unsubscribed. Your system reacts immediately instead of repeatedly asking the API for status. Payloads carry the message ID, recipient, event type, timestamp and, for failures, the reason returned by the receiving server. These fields let you match events to your own records without extra lookups or guesswork.

You register an endpoint, choose which events it should receive, and verify the signature header on each request. Return a 2xx response to confirm receipt. If your endpoint fails, deliveries are retried with backoff, and you can replay events from the log after an outage. Request and response details for every attempt are kept so you can debug quickly. Secrets can be rotated, and event filters keep each endpoint focused. Failed attempts show the request, the response and the time, which makes debugging a handler quick and evidence based.

Event data is how a sending system learns. Updating suppression, pausing a campaign on a complaint spike or alerting support to a bounced receipt all depend on timely events. Our AI layer can summarise high-volume streams and flag unusual patterns, so your team notices a problem in minutes rather than after a customer complains. Replay and logs mean a gap in your own systems does not become a gap in your data.

Use cases

Common webhooks and events use cases

Keeping your database in sync

Mark orders as notified when delivered and flag contacts when a hard bounce arrives. Webhooks remove the need for polling jobs and keep application state accurate.

Automatic suppression handling

On bounce or complaint events, add the address to your own do-not-mail table straight away, so other systems that email the same person stop as well.

Alerting support teams

Send a Slack or ticket alert when a password reset bounces. Support can then contact the customer by another channel before they give up. It saves hours of manual work.

Recovering after downtime

If your endpoint was offline during a deployment, replay the missed events from the log and bring your records back to the correct state. Nothing is lost in the meantime.

Update order and ticket status

Mark an order notified or a support ticket answered as soon as the delivery event arrives.

Feed your data warehouse

Stream events into your own analytics so email results sit next to product and revenue data.

Choosing a method

Webhooks or polling the API?

Both give you event data. They suit different situations.

WebhooksPolling the API
How it worksWe push events to your endpointYour code asks on a schedule
SpeedNear real timeDepends on your polling interval
LoadOnly when something happensConstant requests, mostly empty
ReliabilityRetries and replay cover outagesYou must track what you have read
Best forLive status and automationBack-fill and scheduled reports

Many teams use webhooks for live updates and the API to back-fill anything they missed.

AI features

AI-assisted webhooks and events

Copilot

Event stream summaries

A copilot condenses thousands of events into a short digest, such as which provider is deferring and which campaign drives complaints, linking to the messages behind each point.

Predictive

Anomaly detection on events

Models learn normal bounce, complaint and deferral rates and alert you when a stream departs from them. You set who is notified and whether any automation runs.

Assist

Payload debugging assistant

Paste a failed delivery log and the assistant explains the likely cause, such as a signature mismatch or timeout, and suggests a fix to test. You make the change.

Agent-ready

Agent-ready event access

Through an MCP server, AI agents can read event history and delivery logs with read-only scopes. Write actions need explicit scopes and, if you wish, human approval.

AI features are assistive: they summarise and alert, and any automated action is something your team configures and approves.

Best practices

Best practices for webhooks and events

Verify the signature every time

Reject requests whose signature header does not match. Rotate the secret periodically and straight away if it may have been exposed.

Respond quickly, work asynchronously

Acknowledge with a 2xx as soon as the payload is safely stored, then process it from a queue. Slow handlers cause timeouts and duplicate retries.

Design for duplicates and disorder

Deliveries can repeat and arrive out of order. Use the message ID and timestamp to deduplicate and to ignore stale state changes.

Subscribe only to what you use

Filter events per endpoint. Fewer irrelevant requests means less load on your servers and simpler monitoring. Keep integrations lean and quick to debug.

Monitor your own endpoint

Alert on repeated failures in the delivery log. A silent outage means silent data drift until someone replays the gap.

Acknowledge fast, process later

Return a 2xx response quickly and move heavy work to a queue, so slow handlers do not trigger retries.

FAQs

Webhooks and events: frequently asked questions

Need help wiring up an endpoint? Our team can review it with you before launch.

What is an email webhook?

An email webhook is an HTTP request your email provider sends to your server when an event occurs, such as a message being delivered or bouncing. It lets your application react in real time without checking the API repeatedly. This replaces polling jobs and keeps your records current.

How do I verify a webhook signature?

Each request includes a signature header generated with your endpoint's secret. Recompute the signature from the raw request body on your side and compare. Reject the request if they differ. The documentation has code samples.

What events can I receive?

Delivered, deferred, bounced, opened, clicked, complained and unsubscribed. You can subscribe each endpoint to a subset, so one service gets bounces and another gets engagement events. Pick only those your systems act on, such as bounces for suppression and clicks for analytics, to keep traffic to your endpoint small and relevant.

What happens if my endpoint is down?

Failed deliveries are retried with backoff, and you can replay events from the log once you recover. Each attempt, with request and response, is recorded so you can see what failed. Check that your handler returns quickly and logs failures.

Are webhook events delivered in order?

Do not rely on strict ordering. Build handlers that tolerate duplicates and out-of-order events by using the message ID and timestamp. Event ordering can differ across providers and retries, and a single message may generate several events.

What are bot opens?

Some mail systems fetch images automatically, which registers as an open even if no person read the message. We separate those from human opens where we can, but open tracking remains an estimate. Treat opens as a rough indicator. Count clicks and replies as stronger signals of engagement.

How do I test a webhook endpoint?

Send a sample event from the dashboard to your URL and check that your handler verifies the signature and returns a 2xx. Review the delivery log to see the request and your response. Use a staging endpoint with a test secret before production. Run it before pointing production at the endpoint.

How does AI work with webhooks and events?

AI can summarise event streams, flag unusual bounce or complaint patterns and help debug failed deliveries. It recommends actions but does not change your configuration unless you set up a rule. Review recent logs before connecting new endpoints.

How do I test an endpoint?

Send a sample event from the dashboard.

Is ordering guaranteed?

Build handlers that tolerate duplicates and out-of-order events, using the message ID and timestamp to deduplicate.

From the blog

Latest analysis, trends and market data

Start sending in minutes.

Create an account, add your domain and send your first email.

Get started Talk to sales