Plain definition
Definition of Webhooks
Automated HTTP POST callbacks that one web service sends to a URL on your server the moment a specific event occurs, such as a completed payment or a repository push.
Provider Event -> HTTP POST (JSON payload + signature header) -> Your Endpoint -> 2xx ACKWorked example
Take a made-up form-analytics tool called HookRelay that uses Stripe for subscriptions. When a user completes checkout, HookRelay does not trust the browser redirect to `/success` alone because the user might close the tab before the redirect loads, or a monthly renewal happens automatically at 3 a.m. with no browser open. Before launch, the founder forwards test events locally using the Stripe CLI to confirm every edge case.
In production, Stripe sends an HTTP POST request carrying a `checkout.session.completed` or `invoice.paid` JSON event to `https://api.hookrelay.example/webhooks/stripe`. HookRelay verifies the cryptographic `Stripe-Signature` header against its endpoint secret using the raw request body, checks its database to confirm that event ID was not already processed, upgrades the workspace to Pro, queues the welcome email in a background job, and returns HTTP `200 OK` within two seconds. If HookRelay's server momentarily returns a `500`, Stripe retries delivery automatically with backoff.
Why it matters when you launch
Almost every modern indie SaaS relies on webhooks for its most critical state transitions: activating paid plans, revoking access after a failed renewal, syncing inbound emails, or triggering site rebuilds when content changes. If your webhook handler breaks on launch day, paying customers get charged while their account stays stuck on the free tier.
Testing webhooks against live-like failure modes takes an hour before launch and prevents your worst possible day-one support tickets. Make sure your endpoint verifies signatures, handles duplicate deliveries safely, and acknowledges receipt fast before doing heavy downstream work.
Common mistakes
- Skipping signature verification on your webhook route, which lets anyone on the internet forge a fake JSON payload and grant themselves free Pro access.
- Parsing the request body into JSON before checking the signature when providers require the exact raw bytes to compute the HMAC digest.
- Failing to make handlers idempotent, causing duplicate emails, double credits, or database errors whenever a provider retries the same event ID.
- Running slow third-party API calls synchronously inside the webhook handler so it times out, triggers retries, and processes the event multiple times.
Tools and guides that use it
Free tool
Launch Day ChecklistEverything to check before, during and after launch day, saved in your browser.Free tool
Live Launch Readiness CheckerInspect any live URL for HTTPS, title, meta description, canonical, Open Graph cards, JSON-LD and AI search crawler access.Founder guide
A 30-Day Launch Plan for Solo Founders (2026)What to do each week, from 30 days out to the week after launch, with the review times and queues that decide when to submit where.Founder guide
The Next.js Technical SEO Launch Checklist (2026)What to check before and after launch day: crawlability, metadata, canonical URLs, structured data, sitemaps, internal links, Core Web Vitals and AI crawlers.Related glossary terms
Official sources
Pritam Ghosh runs Hauntboard and maintains this glossary.
Published · Updated
Building something real? Launch it in public.
A person reviews every launch on Hauntboard, and every view and visit it sends your site is published on your launch page. Free to submit.