webhooks
Webhooks are a user-defined HTTP callback mechanism that enables real-time communication between services. A source system emits events and sends notifications to a URL provided by the consumer. When a specified event occurs, the provider issues an HTTP request to the endpoint, typically a POST, carrying a payload that describes the event, often in JSON or form-encoded data. The receiving application processes the payload and responds with an appropriate HTTP status; a 2xx response is usually considered a successful delivery, while 4xx indicates a client error and 5xx a temporary server error that may trigger retries.
Key components include the event type, the payload, the destination URL, and a security mechanism such as
Delivery and reliability: webhooks depend on the sender’s ability to reach the endpoint. Because delivery is
Use cases: common in continuous integration, payment processing, version-control and issue-tracking platforms, chat and collaboration tools,
Security considerations: expose a public endpoint with TLS, validate signatures, and consider IP whitelisting where possible.