Webhook

A webhook is an event notification transmitted via HTTP, the same protocol used for transferring webpage data. It is typically sent as a POST request, which contains data that is "posted" to a specific URL. The URL defines the location of a script, which processes the data in the POST request.

Webhooks can be built into any application, including web apps, mobile apps, and desktop software apps. Specific events can be programmed to generates webhooks, or "HTTP callbacks," which are event notifications sent over HTTP. The data may be formatted in whatever way the developer chooses, though JSON and XML formatting are commonly used.

The POST data, which is sent to a specific URL, is parsed by the corresponding script on a web server. The script may be written in one of many different server-side scripting languages, such as PHP, JSP, or C#. It may perform one or more actions, such as saving the data in a database, emailing the information to a specific address, or sending new data back to the source.

Webhooks are used for a wide variety of purposes. Examples include notifying businesses of sales, activating and deactivating software programs, updating customer information, and informing developers of software crashes. Some websites even provide APIs that allow users to send data to a URL when specific events happen. GitHub, for example, provides a list of events that can trigger a webhook, which developers can use to track changes to projects stored in their online repository.

While webhooks are an effective tool, they require an Internet connection between the data source and the web server to function. Additionally, a script must be present on the server at the destination URL and it must be able to recognize and parse the POST data. If the Internet connection or script is not available, the webhook will not work.

Updated June 12, 2017 by Per C.

quizTest Your Knowledge

Which type of cloud computing service leaves all software responsibility (including the operating system) to the customer?

A
Software as a Service (SaaS)
0%
B
Infrastructure as a Service (IaaS)
0%
C
Platform as a Service (PaaS)
0%
D
Framework as a Service (FaaS)
0%
Correct! Incorrect!     View the IaaS definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Webhook on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.