What Is a Webhook?

A webhook is a user-defined HTTP callback: instead of polling a service to ask whether something happened, you register a URL and the service sends it a request the moment an event occurs. It inverts the direction of an API — the server calls the client. For agents it is how a workflow reacts to the world in real time, and why delivery guarantees, retries, and idempotency keys matter: a webhook can arrive twice, or late.

What it is
A server-to-client HTTP callback on an event
Replaces
Polling — ask less, be told instead
Needs
Retries, verification, and idempotency

Events, not polls

Polling wastes requests and adds latency: an agent that checks every minute is both too slow and too chatty. A webhook flips it — the agent registers interest once and is notified when the event fires, so it reacts immediately and only when there is something to react to.

The cost of that inversion is delivery semantics: webhooks can be retried, duplicated, delayed, or spoofed, so a robust consumer verifies the signature and uses an idempotency key to make a repeated delivery harmless.

Related standards

Standard Webhooks specification

Questions

How is a webhook different from an API call?

An API call is the client asking the server; a webhook is the server telling the client — the same HTTP, opposite direction.

Why might a webhook arrive twice?

Networks and retries mean at-least-once delivery is common, which is why consumers pair webhooks with idempotency keys.

Keep reading

related
What Is JSON-RPC?
related
What Is an Idempotency Key?
related
When Should an AI Agent Escalate to a Human?
related
What Is Machine-to-Machine Commerce?
Protocols & Comparisons
MCP vs A2A: What Is the Difference?
Protocols & Comparisons
What Is the Model Context Protocol (MCP)?
Protocols & Comparisons
What Is Agent-to-Agent (A2A)?
Protocols & Comparisons
agents.txt vs llms.txt
Protocols & Comparisons
MCP vs REST APIs
Protocols & Comparisons
x402 vs AP2: Agent Payment Protocols Compared
Protocols & Comparisons
What Are Agent Skills?
Protocols & Comparisons
What Is AP2 (Agent Payments Protocol)?
Protocols & Comparisons
Agent Interoperability
Protocols & Comparisons
What Is a Smart Contract?

By Michael Gord · published 2026-10-09 · part of the Agentic Encyclopedia. Dates are the day of publication; events are cited at their own dates.