Email marketing glossary

Webhook: what it means

An automatic HTTP request sent to another system when an event happens, such as a subscribe, bounce or click. Webhooks keep your CRM, store or database in sync in real time.

A webhook is an automatic message that one system sends to another when something happens. Instead of your software repeatedly asking an email platform “anything new?”, the platform sends an HTTP POST request to a URL you provide as soon as an event occurs, with details of the event in the request body, usually as JSON.

In email marketing, webhooks keep other systems up to date in real time. When someone subscribes, your CRM can create a lead. When an email bounces, your database can flag the address. When someone unsubscribes, your app can update its own preferences. When an order is created, a fulfilment tool can react. Typical events include subscribed, unsubscribed, tag added, opened, clicked, bounced and complained.

Security and reliability matter. A well-designed webhook is signed, so your server can verify that the request really came from the platform and wasn’t forged; the receiver checks a signature, often an HMAC of the body made with a shared secret. Deliveries can fail when your server is down, so platforms retry with increasing delays and keep a log of attempts.

On the receiving side, respond quickly with a 2xx status and do heavy processing afterwards, so the sender doesn’t time out and retry. Handle duplicates gracefully, since a retry can deliver the same event twice. And don’t treat webhook data as instructions to run blindly: validate it and check the signature first.

Example

A Pune SaaS startup subscribes to its email platform’s contact.unsubscribed and email.bounced webhooks. When either arrives at its server, it verifies the signature and updates the user’s notification settings in its own database within seconds.

In MailNesto

MailNesto sends signed webhooks for events such as contact.subscribed, email.clicked, email.bounced and order.created, retries failed deliveries with increasing delays and logs every attempt.

FAQ

Questions about Webhook

What is the difference between a webhook and an API?

With an API, your system asks for data when it wants it. With a webhook, the other system pushes data to you when something happens.

What happens if my server is down when a webhook is sent?

Good platforms retry several times with increasing delays and keep a log, so you can see failures and catch up.

How do I know a webhook is genuine?

Check its signature using the secret shared with the platform, and reject requests whose signature doesn’t match or whose timestamp is too old.