$linuxjunkies
>

webhook

also: HTTP callback, POST hook

A webhook is an automated HTTP callback that sends real-time data from one application to another when a specific event occurs, eliminating the need for constant polling.

A webhook is a user-defined HTTP POST request triggered by an event in a source application. Instead of repeatedly checking for updates, the source system proactively pushes data to a specified URL (the webhook endpoint) whenever something happens, such as a code push, form submission, or payment completion.

Webhooks are commonly used in DevOps and CI/CD pipelines. For example, when you push code to a Git repository like GitHub, it can trigger a webhook that notifies a Jenkins server to start a build pipeline automatically. The webhook sends a POST request with JSON payload containing details about the event.

To receive webhooks on Linux, you typically run a web server or application that listens on a specific port and endpoint, then processes the incoming HTTP requests. Tools like curl, netcat, or dedicated webhook services can be used to test or debug webhook delivery.

Related terms