webhook

An HTTP request a provider sends to an address you registered, to tell you an event happened, instead of you polling for it.

In more detail

The receiver must authenticate each delivery, usually by checking a signature, validate its shape and acknowledge quickly with a 2xx. Providers retry when they do not get a success, so duplicates are normal: store the delivery identifier and process each event idempotently. A 2xx means received, not that all downstream work finished.

Examples

X-Hub-Signature-256: sha256=<HMAC of the request body>
hmac.compare_digest(good, header)
Notifying chat when an automated rollback happens.
Kubernetes can send audit events to a webhook back end instead of a file, and admission webhooks let external services approve or change objects.

Related terms

Taught in

References

Certification courses