Webhooks for Marketers: A Plain-English Guide

A webhook is a message one app sends to another the moment something happens. Here is how it works, what a payload looks like, how retries and signatures work, and five marketing uses worth building.

Pixel-art browser window sending a row of envelopes, a webhook carrying a new lead onward in seconds.

A webhook is an automatic message one app sends another the moment something happens. A form gets filled, and the form tool posts the details to a web address you chose. Your CRM, Slack or automation tool reads that message and acts on it. No waiting for a sync. No one copying data by hand.

For marketers, webhooks are the difference between a lead alert in five seconds and one in an hour. They power most of the fast automations you've seen: form to CRM to Slack, demo booked to rep alert, payment to customer record.

This guide is plain English. I'll cover what a webhook is, how it differs from an API, what the data looks like, how retries and security work, and five uses worth building first.

Key takeaways

  • Push, not pull. A webhook tells you when something happens, so you don't have to keep asking.
  • The payload is just JSON. It's a list of named fields you map, like email, company and form name.
  • Expect duplicates. Senders retry, so your receiver should check an event ID before acting.
  • Verify the sender. Check the signature header, or anyone with the URL can fake a lead.
  • Answer fast, work later. Reply with a 200 right away, then do the slow steps.

How does a webhook work?

Every webhook has four parts. Once you see them, every tool's settings page makes sense.

Part What it is Example
Event The thing that happened A form was submitted
Sender The app where it happened Your form tool or Stripe
Endpoint The web address that receives it A Zapier or n8n webhook URL
Payload The data about the event Name, email, company, form ID

Here's the flow. You give the sender your endpoint URL. You pick which events it should send. When one happens, the sender makes an HTTP POST to that URL with the payload. Your endpoint replies with a status code, like 200 for "got it." Then your workflow does its job.

That's event-driven architecture in one sentence: things happen, and systems react, instead of checking on a timer.

What is the difference between a webhook and an API?

An API is a door you knock on. Your tool asks, "any new leads?" and the app answers. A webhook is a doorbell. The app rings you when a lead shows up.

API call Webhook
Who starts it Your tool The other app
When On your schedule The moment the event happens
Typical speed As fast as you check Seconds
Cost of checking Every check uses a call, even when nothing changed Nothing, until an event happens
Best for Reading or updating data on demand Reacting to events

Most real automations use both. The webhook says "deal 4417 just closed." Then an API call fetches the deal's line items, because the webhook didn't include them. The API basics guide covers the second half.

What does a webhook payload look like?

A payload is JSON: named fields with values, in curly brackets. Here's a trimmed example of what a form tool might send.

{
  "event_id": "evt_8f2c41",
  "event_type": "form.submitted",
  "occurred_at": "2026-12-02T14:03:11Z",
  "form": { "id": "demo-request", "page": "/pricing" },
  "contact": {
    "email": "dana@northwind.io",
    "first_name": "Dana",
    "company": "Northwind",
    "employees": "51-200"
  },
  "utm": { "source": "linkedin", "campaign": "q4-demo" }
}

Read it top to bottom. There's an ID for this exact event. A type that says what happened. A timestamp. Then the details you care about. In Zapier or n8n, each of these becomes a field you can map into the next step.

Every sender names fields differently. That's normal. The work is mapping their names to your CRM's names once, then reusing that mapping.

How do retries work, and why do duplicates happen?

Webhooks fail. Your endpoint might be down, slow or returning an error. So good senders try again.

HubSpot's workflow webhook docs say failed webhooks retry for up to three days, starting one minute after the failure, with gaps up to eight hours. Workflows don't retry after a 4XX error, except 429, which means "too many requests." Stripe's webhook docs say it retries for up to three days with exponential backoff in live mode.

Retries are great for reliability. But they create a side effect. If your endpoint did the work and then timed out before replying, the sender thinks it failed and sends the event again. Now you have two leads, two Slack alerts or two welcome emails.

Stripe says it plainly. Endpoints might get the same event more than once, so log the event IDs you've processed and skip repeats. Stripe also doesn't promise events arrive in order. That's called idempotency: running the same event twice has the same result as running it once. The idempotency guide shows the pattern in Zapier, n8n and code.

How do you keep webhooks secure?

Your endpoint URL is public. Anyone who finds it can post fake data to it. So you need a way to know the message came from the real sender.

Most serious senders sign each message. Stripe adds a Stripe-Signature header, built from the payload, a timestamp and a secret only you and Stripe know. Your code checks it before trusting anything. Stripe's libraries also reject messages older than 5 minutes by default, which blocks replays of old messages.

HubSpot workflow webhooks have three auth options, per the same HubSpot page. A request signature in an X-HubSpot-Signature header, an API key in a header or query parameter, or a bearer token. The URL must use HTTPS.

The checklist I use for every endpoint:

  1. HTTPS only.
  2. Verify the signature, or require a secret header the sender includes.
  3. Reject old timestamps.
  4. Check the event ID against a log to skip duplicates.
  5. Never put a secret in the URL if the tool offers a header instead.

Worked example: form to rep in under a minute

Say a team gets 300 demo requests a month. Their CRM sync runs every 15 minutes, and a rep alert fires after the sync. On average, a lead waits half the sync gap, about 7.5 minutes, before anyone knows it exists. Before they tightened the sync, it ran hourly, and the average wait was 30 minutes.

Bar chart of average wait before a rep alert: hourly sync 30 minutes, 15-minute sync 7.5 minutes, webhook about 1 minute.Bar chart of average wait before a rep alert: hourly sync 30 minutes, 15-minute sync 7.5 minutes, webhook about 1 minute.
Worked example with assumed timings: a sync waits half its gap on average, while a webhook waits only for the workflow to run. Worked example from this guide.

Now they switch to a webhook. The form posts to an n8n endpoint. n8n creates or updates the contact, routes it and posts to Slack. Total time from submit to alert: about 1 minute, mostly routing logic.

The numbers are a worked example, not a benchmark. The mechanism is what matters. With a sync, the delay is half the sync gap on average. With a webhook, the delay is however long your workflow takes.

Setup Average wait before alert Checks per month
Hourly sync 30 minutes 720
15-minute sync 7.5 minutes 2,880
Webhook About 1 minute 300, one per lead

Look at the last column too. A 15-minute sync checks 2,880 times a month, even when nothing changed. The webhook fires 300 times, once per lead. On tools that bill per task, that's real money.

Speed to first touch is where webhooks pay off most. The speed to lead playbook covers the routing and follow-up side, and the speed to lead use case shows a full build. The goal is speed to lead measured in minutes, not hours.

Which five webhooks should marketers build first?

Start with the events where minutes matter or where data goes missing today.

Event Sender What the webhook does Playbook
Demo form submitted Form tool Create contact, route, alert rep in Slack Form to CRM and Slack webhook
Payment succeeded or failed Stripe Update the customer record and lifecycle stage Stripe to CRM webhook
Meeting booked Scheduling tool Mark the lead as meeting set, notify the owner Webhooks for GTM playbook
Trial signup Your product Create a contact with plan and workspace ID Same playbook
Deal closed won CRM Send a conversion to ad platforms, start onboarding Same playbook

Each one replaces a sync, a manual step or a daily export. Build one, run it for two weeks, then add the next.

Which tools can send and receive webhooks?

You don't need to write code to start. Most automation tools give you an endpoint in one click.

Tool Receives webhooks Sends webhooks Notes
Zapier Yes, with Webhooks by Zapier Yes Easiest start. See Zapier for RevOps
n8n Yes, Webhook node Yes, HTTP Request node Cheaper at volume. See GTM engineering with n8n
HubSpot workflows Through apps and the API Yes, Send a webhook action Needs Data Hub Professional or Enterprise
Stripe No Yes, per event type Up to 16 event destinations per account
Pipedrive No Yes Company and app webhooks, per its API docs

The HubSpot plan detail matters. Per HubSpot's workflow actions list, the Send a webhook action needs Data Hub Professional or Enterprise. HubSpot also lets you rate limit a webhook action, which helps when the receiving tool can't take a burst.

What breaks webhook automations?

Most failures are quiet. Nothing errors loudly. Leads just stop arriving.

  • The endpoint changed. Someone rebuilt the Zap, and the sender still points at the old URL.
  • A field got renamed. The form team renamed "Company" to "Company name," and the mapping now sends blanks.
  • The receiver is slow. It times out, the sender retries, and you get duplicates.
  • The secret rotated. Signature checks start failing, and every event gets rejected.
  • Nobody watches it. Retries run out after three days, and the events are gone.

The fix is monitoring. Log every event you receive, count them daily and alert when the count drops to zero on a weekday. The GTM ops observability guide covers what to watch.

How do you set up your first webhook this week?

  1. Pick one event. Demo form submissions are the best first choice.
  2. Create an endpoint. In Zapier or n8n, add a webhook trigger and copy the URL.
  3. Point the sender at it. Paste the URL in your form tool's webhook settings.
  4. Send a test. Submit the form yourself and look at the payload.
  5. Map the fields. Email, name, company and source into your CRM.
  6. Add the safety steps. Check for a duplicate event ID, then alert the owner in Slack.
  7. Watch it for a week. Compare webhook counts to form counts every day.

That's an afternoon of work. If you'd rather have it built and monitored, our GTM engineering services cover it. The marketing leaders page shows the other automations we usually ship next.

Webhooks aren't a developer thing. They're how your tools tell each other what just happened. Learn the four parts, expect duplicates and check the sender, and you can build most of the fast automations your team keeps asking for.

FAQ

What is a webhook in simple terms?

A webhook is an automatic message one app sends to another when something happens. A form gets filled, a payment succeeds, a meeting gets booked, and the app posts the details to a web address you gave it. The receiving app reads the message and acts on it, like creating a CRM record or posting to Slack.

What is the difference between a webhook and an API?

With an API, your tool asks another app for data whenever it wants. With a webhook, the other app tells your tool when something changes. An API is like calling a store to ask if your order shipped. A webhook is the store texting you the moment it ships. Most automations use both: a webhook to learn about the event, then an API call for more detail.

Do I need to code to use webhooks?

No. Tools like Zapier, Make and n8n give you a webhook address and show the incoming data as fields you can map. HubSpot workflows can also send webhooks without code on the right plan. Code helps when you need to verify signatures, handle high volume or transform data in ways a no-code step can't.

Are webhooks secure?

They can be, if you check them. Anyone who finds your webhook address can send it fake data. Good senders sign each message with a secret, like the Stripe-Signature header, and your receiver should verify that signature before acting. Use HTTPS, keep the address private and reject messages that are too old or fail the check.

What happens if a webhook fails?

Most senders retry. HubSpot workflows retry failed webhooks for up to three days, and Stripe retries for up to three days in live mode. Retries mean your receiver can get the same message twice, so it should check an event ID before acting. If retries run out, the event is lost unless you log and replay it.

What can marketers use webhooks for?

Common uses are sending form fills to a CRM and Slack in seconds, alerting sales when a target account books a demo, syncing payments into the CRM, starting onboarding emails after signup and pushing closed deals to ad platforms as conversions. Any time you want something to happen right after an event, a webhook is usually the fastest route.

More like this

Glossary: API Endpoint, Payload

Startup? Let's talk.

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.