Esc
  • Jump to
  • The board
  • All launchesSort and filter by week or category
  • Open statsEvery number, in public
  • Maker storiesApps that stopped hiding
  • Submit a launch
  • AICategory
  • AnalyticsCategory
  • API & BackendCategory
  • Audio & VoiceCategory
  • AutomationCategory
  • CommunityCategory
↑↓ to move↵ to openPress / anywhere
Sign in

What is 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.

Updated · Building

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.

Formula / syntaxProvider Event -> HTTP POST (JSON payload + signature header) -> Your Endpoint -> 2xx ACK

Worked 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

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.

Launch free →

On the board

All →

Still hiding your app?

Put it on the board. Reviewed by a person, free to launch.

Launch free
Submit a launch