Webhook

Technical terms
About 1 min read

An HTTP-based event notification mechanism where a server sends real-time data to a specified URL when a specific event occurs.

Also known as
Webhook

Detailed explanation

Also known as a 'reverse API,' a webhook is an efficient way to exchange real-time data between applications. Unlike polling, where a client requests data from a server, the server sends an HTTP POST request to a pre-registered URL when a specific event occurs (such as payment completion, code push, or AI task completion). This allows systems to perform follow-up tasks immediately upon event occurrence without wasting resources. It is an essential technical element, especially when building generative AI APIs with long processing times or automated workflows.

Why It Matters in AI Tool Selection

Large language models (LLMs) and image generation AIs often involve asynchronous tasks that take time to output results. In these cases, choosing tools that support webhooks allows you to receive results efficiently and execute the next steps when the task is completed, instead of waiting indefinitely.

What to Check

  • Does it support signature verification (Secret Key/HMAC) for security?
  • Is retry logic implemented for transmission failures?
  • Is the transmitted data format (such as JSON) compatible with existing systems?
  • Does it provide log checking and simulation features for testing?

Real-World Examples

When a user requests a complex analysis from a chatbot, the AI service, after finishing the analysis, sends a result message to a pre-specified Slack webhook URL to notify the user immediately.

Confusing Terms

Polling

A method where the client periodically asks the server if there is data (high resource consumption)

Webhook

A method where the server notifies the client only when an event occurs (high real-time capability and efficiency)

Related terms

APIREST