What Is a Webhook? Definition, examples, and use cases

Quick Answer: A webhook is an HTTP callback that sends data from one application to another in real time when a specific event occurs. Instead of polling for changes, the source application sends an HTTP POST request with event data to a registered URL. Webhooks are the primary trigger mechanism in automation platforms like Zapier, Make, and n8n, enabling near-instant workflow execution when events occur in connected applications.

Definition

A webhook is an HTTP callback that sends data from one application to another in real time when a specific event occurs. Unlike traditional APIs where the consuming application must poll (repeatedly request) for new data, webhooks push data to a designated URL immediately after the triggering event. This event-driven communication pattern eliminates polling overhead and enables near-instant data synchronization between systems.

The receiving application registers a webhook by providing a URL endpoint to the sending application. When the specified event occurs (e.g., a customer places an order, a payment is processed, a file is uploaded), the sending application makes an HTTP POST request to the registered URL with event data in the request body, typically formatted as JSON.

How Webhooks Work

  1. Registration: Application B provides Application A with a callback URL (e.g., https://app-b.com/webhook/orders).
  2. Event occurs: A customer places an order in Application A.
  3. HTTP POST: Application A sends an HTTP POST request to Application B's callback URL with order data in the JSON body.
  4. Processing: Application B receives the request, validates the payload, and processes the data (creates a record, triggers a workflow, sends a notification).
  5. Response: Application B returns an HTTP 200 status code to confirm receipt. If Application B returns an error, Application A may retry the delivery.

Webhooks vs Polling vs WebSockets

Aspect Webhooks Polling WebSockets
Direction Server pushes to client Client requests from server Bidirectional
Latency Near-real-time (seconds) Up to one polling interval Real-time (milliseconds)
Connection Stateless HTTP (new connection per event) Stateless HTTP (repeated requests) Persistent connection
Resource usage Efficient -- only fires when events occur Wasteful -- runs even when no new data Efficient but requires connection management
Scalability Scales with event volume Scales with polling frequency x endpoints Limited by concurrent connection capacity
Use case Application integrations, automation triggers Legacy systems without webhook support Live chat, real-time dashboards, gaming

Webhook Security Considerations

  • Signature verification: Sending applications sign webhook payloads with a shared secret (HMAC-SHA256). The receiver verifies the signature to confirm the request came from the expected sender. Stripe, GitHub, Shopify, and most SaaS platforms include signatures in webhook headers.
  • HTTPS enforcement: Webhook URLs should always use HTTPS to encrypt data in transit.
  • IP whitelisting: Some organizations restrict webhook receipt to known IP ranges of the sending application.
  • Replay protection: Include timestamps in webhook payloads and reject payloads older than a threshold (e.g., 5 minutes) to prevent replay attacks.
  • Idempotency keys: Include unique event IDs so the receiver can detect and ignore duplicate deliveries.

Webhooks in Automation Platforms

Webhooks are the primary trigger mechanism in modern automation platforms:

Platform Webhook Support
Zapier "Instant" triggers use webhooks; custom webhook trigger available
Make Instant triggers via webhooks; custom webhook module for any source
n8n Webhook node creates custom endpoints; used by most instant triggers
Pipedream HTTP webhook trigger with automatic request parsing
Power Automate "When an HTTP request is received" trigger

When a SaaS application supports webhooks, automation platforms use them for instant triggers. When webhooks are unavailable, platforms fall back to polling (checking for changes at intervals), which introduces latency and consumes API quota.

Common Webhook Events by Application

  • Stripe: payment_intent.succeeded, customer.created, invoice.paid, charge.refunded
  • GitHub: push, pull_request.opened, issues.created, workflow_run.completed
  • Shopify: orders/create, products/update, customers/create, fulfillments/create
  • Slack: message.channels, app_mention, reaction_added, member_joined_channel

Use Cases

  • Payment processing: Stripe webhook fires when payment succeeds, triggering order fulfillment, receipt generation, and CRM update.
  • CI/CD: GitHub webhook fires on pull request merge, triggering build, test, and deployment pipeline.
  • Customer notifications: E-commerce webhook fires on shipping status change, triggering SMS and email notifications to the customer.
  • Data synchronization: CRM webhook fires on contact update, triggering sync to email marketing platform and data warehouse.

Related Questions

Written & reviewed by Rafal Fila · Last updated:

Related Tools

Related Rankings

Dive Deeper

comparison

Frends vs MuleSoft in 2026: Process Metering, Mule Credits and What They Do to Your Architecture

Frends and MuleSoft both run integrations in their cloud or inside yours, but they bill for different things, and that difference will shape your architecture more than any feature list. Frends counts deployed processes and runs on .NET; MuleSoft sells annual packages of Mule Credits drawn down by usage. We compared them from public sources read on 14 and 15 September 2026.

guide

How to turn a no-API portal into a REST endpoint

Public portals that will never ship a developer API are usually scraped, badly, by code coupled to their HTML. There is a more durable method: recover the wire format the portal's own front end already speaks, and call that instead. This guide sets out the method AutomationAtlas used against a Polish court-auction portal and a US county parcel portal, the five checks worth running before trusting what comes back, and what changes when the target is old enough to have no front end worth reading.

comparison

Workato vs Zapier in 2026: Enterprise iPaaS vs Tiered No-Code Automation

Workato and Zapier are two of the most widely shortlisted platforms for connecting ten or more business systems. Workato, founded in 2013, is a quote-priced enterprise iPaaS built on environment-promoted recipes and 1,200+ deep connectors; Zapier, founded in 2011, is a self-serve no-code platform spanning 9,000+ apps that also ships code steps, an SDK, and an MCP interface, and whose Team and Enterprise tiers add SSO, audit logs, and admin controls. This comparison covers execution architecture, connector depth, AI and MCP capabilities, published pricing, and tier-by-tier governance, verified against both vendors' official pages in July 2026.