How do I use webhooks?
Register a URL with the app that sends events, verify each request's signature, answer quickly with a 2xx status, and process each event exactly once.
A webhook is a message one app sends another the moment something happens, such as a successful payment or a submitted form. It works like a doorbell, instead of checking the door every few minutes. Technically it's an HTTP POST request with a JSON body, sent to an address you chose, called your endpoint.
Handling webhooks well takes a few rules:
- Verify the signature. The sender signs each message with a shared secret; recompute the signature and compare it before trusting anything.
- Answer fast. Reply with a 2xx status quickly and do slow work in the background, or the sender may decide you failed and retry.
- Expect duplicates. Senders retry when they don't hear back, so store each event's id and skip events you've already processed.
- Expect odd order. Events can arrive out of sequence, so check the current state instead of assuming.
- Log failures, and keep a list of events that need a human look.
You can receive webhooks in your own code, for example on a Cloudflare Worker, or in tools like Zapier and n8n that start a workflow when one arrives.
Vumbli's Webhooks, Zapier, n8n & Agent Tools track covers verifying signatures and building the receiver, then deploying a signed, deduplicated webhook workflow. Automation & AI Workflows includes "Webhooks: read what apps send you".
Start with these missions
- Webhooks, end to end (Webhooks, Zapier, n8n & Agent Tools)
- Verify a webhook signature (Webhooks, Zapier, n8n & Agent Tools)
- What to automate (and what not to) (Automation & AI Workflows)
- Webhooks: read what apps send you (Automation & AI Workflows)
Tracks that teach it
More questions, answered by building