Webhook¶
A webhook is an HTTP callback mechanism where a server notifies a client by sending an HTTP POST request to a pre-registered URL when a specific event occurs. Rather than polling for updates, the receiving application exposes an endpoint and waits for the provider to push data to it.
Webhooks are widely used for event-driven integrations: payment confirmations, repository push events, form submissions, or status updates from external services. Because the provider may retry delivery on failure, webhook consumers must be idempotent to avoid processing the same event twice.
A webhook endpoint typically reads the raw request body, validates a signature header to authenticate the sender, and dispatches the payload to a queue or handler.
See also Webhook — Wikipedia and Handling Webhooks in PHP.
Related : Idempotent, Event Driven, Hyper Text Transfer Protocol (HTTP), HTTP Headers, Payload, Retry, Deduplication, Queue, Signature
Related packages : spatie/laravel-webhook-client