What is a webhook?

A webhook is an automated HTTP POST request that one application sends to a configured URL whenever a specific event occurs—such as a failed payment, new support ticket, or form submission. In agent architectures, signed webhooks trigger event-driven runs immediately without constantly polling an external API.

By Sacha Arbonel, Founder and CTOLast updated
  • Also called
  • Signed webhook
  • Event callback

Why does webhook matter?

Webhooks let agents react within seconds of a real business event. Because any public URL can receive forged or retried requests, production webhook handlers must verify cryptographic signatures and deduplicate repeated deliveries.

Instead of checking for changes, a system can call a URL you provide whenever an event happens: a payment fails, a form is submitted, a ticket is created. That call is a webhook, and it’s a common way to trigger an agent.

Webhooks should be verified, since anyone can call a URL, and handled so that the same event arriving twice doesn’t cause two runs.

Key characteristics of webhook

  • Push-based delivery triggers agents immediately when an external event happens.
  • Cryptographic signatures (such as HMAC headers) prove the request genuinely came from the sender.
  • Idempotent handling ignores retried deliveries of the same event ID so actions never double-fire.
  • Acknowledges receipt quickly (HTTP 2xx) and hands work to a durable background job.

Webhooks vs. scheduled polling

DimensionWebhook (push)Scheduled polling (pull)
LatencyStarts within seconds of the eventDelayed until the next cron interval
Idle costZero work when no events occurRuns checks even when nothing changed
Security checkMust verify cryptographic request signatureUses outbound API credentials
Duplicate riskUpstream retries require event deduplicationMust track cursor or processed IDs

Example in practice

How Norilu handles webhook

Frequently asked questions

Why must agent webhooks verify signatures?
Without signature verification, anyone who discovers your webhook URL could forge fake events and trick your agent into running unauthorized workflows.
What happens if an agent takes 30 seconds to run after receiving a webhook?
Most webhook senders time out after a few seconds and retry the request. Acknowledge the webhook immediately and run the agent asynchronously in a durable background job.

Go deeper