Webhook
A webhook is an HTTP callback through which a system automatically sends an event notification or related information to a configured endpoint.
The Design of Web APIs, Second Edition
A webhook call is an HTTP request sent automatically to notify a consumer when an event occurs.
- How it is used
- Notifies API consumers of provider-side events without requiring frequent polling.
- How deep it goes
- Works through interface design, security, receipt, failure recovery, and OpenAPI description, while leaving specific security measures to expert assessment.
- Examples
- Uses bank transaction notifications, a consumer-hosted endpoint, GET /transactions as a fallback, and an OpenAPI webhook identifier.
- What you can do after
- Build it from scratch by specifying a consumer-implemented POST endpoint, its payload and security, success response, and delivery recovery.
Read how The Design of Web APIs, Second Edition explains webhook →
Contract Testing in Action
A webhook is an HTTP callback that delivers an event notification from one system to another when a specified event occurs.
- How it is used
- Triggers provider verification automatically when a consumer publishes a changed contract across separate CI/CD pipelines.
- How deep it goes
- Walks through token storage, event selection, request payloads, provider configuration, and mismatch testing; defers other webhook event types.
- Examples
- Uses WebConsumer, MoviesAPI, GitHub repository dispatches, and a 200-to-201 response-status mismatch.
- What you can do after
- Operate/configure Pact webhooks to dispatch provider verification and surface changed-contract mismatches in CI/CD.
Effective Platform Engineering
A webhook is an HTTP callback mechanism that delivers event notifications from one system to another when specified events occur.
- How it is used
- Uses event notifications to trigger platform upgrades, deployment workflows, and automated conformance testing.
- How deep it goes
- Explains webhook publication, subscription, and operational benefits, but stops short of protocol-level implementation details.
- Examples
- Uses repository pushes, tags, cluster upgrades, CI tests, deployment workflows, logs, and Jira tickets as concrete event artifacts.
- What you can do after
- Operate/configure subscribers that trigger upgrades, tests, and issue updates from platform events.
Platform Engineering on Kubernetes
A webhook is an HTTP callback that allows one system to notify another system when an event occurs.
- How it is used
- Triggers service and environment pipelines when Git repositories report source or configuration changes.
- How deep it goes
- Explains webhook registration and pipeline triggering, while stopping short of protocol-level implementation details.
- Examples
- Uses merged source changes and environment-configuration changes as webhook-triggered pipeline events.
- What you can do after
- Operate/configure pipelines that react to repository changes while retaining polling as a synchronization fallback.
Read how Platform Engineering on Kubernetes explains webhook →
Secure APIs
A webhook is an HTTP callback that delivers event notifications to a user-specified URL.
- How it is used
- Uses user-configured callbacks to trigger automated responses to payment and other API events.
- How deep it goes
- Traces webhook operation through SSRF abuse, internal-service discovery, and resulting attack preparation.
- Examples
- Illustrates payment notifications, local-network scanning, PostgreSQL discovery, and Jenkins compromise.
- What you can do after
- Evaluate webhook configurations for their potential to trigger requests to internal and external services.
Effective Conversational AI
A webhook is an API endpoint that is invoked automatically when a specified event occurs in another system.
- How it is used
- Uses event-triggered API calls in a chatbot’s orchestration layer to access external systems or handle conversational tasks.
- How deep it goes
- Defines pre- and post-processing events and illustrates transcript updates with pseudocode, while deferring platform-specific terminology and formats.
- Examples
- Shows a post-webhook appending user messages and bot replies as labeled lines in a transcript.
- What you can do after
- Apply a post-webhook to update a transcript with available user messages and bot replies.
Also covered in
What to know first
- JSONJSON is a text-based, language-independent data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- clientA client is a person, organization, or software component that requests, receives, or uses a product, service, or capability provided by another party or system.
- eventA software event is an occurrence, state change, or notification that can be detected, recorded, communicated, or handled by a system.
- HTTP requestAn HTTP request is a message sent by a client to a server using the Hypertext Transfer Protocol, specifying a method and target and optionally including headers and a body.
Related concepts
- contractkind of · A contract is an agreement or specification defining conditions, obligations, or behavioral expectations that govern interactions between parties or software components.
- business problemaddresses · A business problem is an organizational need, challenge, or opportunity that a solution is intended to address.
- HTTP requestconfigured by · An HTTP request is a message sent by a client to a server using the Hypertext Transfer Protocol, specifying a method and target and optionally including headers and a body.
- JSONuses · JSON is a text-based, language-independent data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- OpenAPI specificationconfigured by · The OpenAPI Specification is a machine-readable standard for describing HTTP APIs, including their operations, inputs, outputs, data structures, and security requirements.
- Pact Broker CLIproduced by · A command-line interface for publishing and managing Pact contracts and interacting with a Pact Broker.
Questions about webhook
What is webhook?
A webhook is an HTTP callback through which a system automatically sends an event notification or related information to a configured endpoint.
Which Manning books explain webhook?
The Design of Web APIs, Second Edition, Contract Testing in Action, Effective Platform Engineering, Platform Engineering on Kubernetes, Secure APIs and Effective Conversational AI.
What should I know before learning webhook?
Manning books that teach webhook usually introduce JSON, client, event and HTTP request first.
What is webhook a kind of?
Webhook is a kind of contract. A contract is an agreement or specification defining conditions, obligations, or behavioral expectations that govern interactions between parties or software components.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





