What a webhook is
A webhook is an HTTP request that a service sends to a URL you control when something happens. You register the URL once, say which events you care about, and from then on the service calls you. A typical delivery is a POST with a JSON body that names the event type and includes the relevant data, such as the id of a finished job or the details of a change.
The easiest way to understand webhooks is to compare them with polling. With polling, your code asks the service every few seconds or minutes whether anything has changed. Most of those requests return nothing new, and you still learn about events late. With a webhook, the service tells you when the event happens, and your code does nothing while things are quiet.
Webhooks are sometimes called callbacks or event notifications. Whatever the name, the pattern is the same: the provider becomes the client, and your endpoint becomes a small server that listens for events.
Why webhooks matter for GTM teams and AI agents
Many GTM data jobs are asynchronous. Enriching ten thousand records, building a list, or watching contacts for job changes takes minutes or months, not milliseconds. Webhooks let those jobs report back on their own, so a workflow can start the next step the moment data is ready rather than on the next scheduled check.
Some data only exists as events. A job change happens at an unpredictable time. A new company starts matching your saved search on a random Tuesday. Without webhooks, you would have to re-check every contact or re-run every search continuously, which costs far more and still misses the timing.
For AI agents, webhooks turn a long-running task into a trigger. An agent does not need to sit in a loop waiting for a batch. It starts the batch, ends its turn, and a webhook wakes the next step when results arrive. The job-change webhooks feature is a good example of that trigger pattern.
How webhooks work, step by step
First you build an endpoint: a public HTTPS URL on your server, in a serverless function, or in a workflow tool that can receive HTTP requests. Then you register it with the provider and choose events. Many providers return a signing secret at this point, which you store like any other credential.
When an event fires, the provider sends a POST to your URL. Your endpoint verifies the signature, checks the event type, records the event id, and returns a 2xx status quickly. If it returns an error or times out, the provider retries later, usually with increasing delays. Heavy work, such as enriching a CRM record or drafting an email, belongs in a background queue after you have acknowledged the delivery.
A solid receiver does five things on every delivery:
- Verifies the signature against the raw request body before parsing it.
- Rejects deliveries whose timestamp is too old, to block replayed requests.
- Checks whether the event id was already processed, and skips it if so.
- Returns a success status within a few seconds.
- Hands the real work to a queue or background job.
Common mistakes with webhooks
The most serious mistake is skipping signature verification. Webhook URLs are public, and anyone who learns yours can send it fake events. Without verification, a forged event could trigger outreach, update records or move money in your own systems. Always verify, and verify against the exact raw body, because parsing and re-serializing JSON can change the bytes and break the signature check.
A second mistake is assuming each event arrives exactly once. Retries mean the same event can arrive twice, for example when your endpoint processed it but the response timed out. Make the handler idempotent by recording processed event ids and ignoring repeats.
A third mistake is doing slow work before responding. If your endpoint takes thirty seconds to enrich and score a lead before returning, the provider may treat it as a failure and retry, creating duplicates. Acknowledge first, then process.
How to evaluate and monitor a webhook setup
When comparing providers, check which events are available, whether deliveries are signed, how long retries continue, and whether you can rotate the signing secret without downtime. Also check whether the API offers a polling fallback, so you can recover if your endpoint was down longer than the retry window.
On your side, monitor three numbers: delivery success rate, processing latency from receipt to completed work, and the size of any backlog in your queue. A falling success rate usually means a deploy broke the endpoint or a secret was rotated on one side only.
Log every delivery with its event id, type and outcome. When someone asks why a record did not update, that log answers the question in seconds instead of hours.
How webhooks work in Dizo
Dizo uses webhooks for everything that finishes later. Register an endpoint with POST /v1/webhooks, which is free, passing an HTTPS url, an optional description and the events you want. Available events are batch.completed, list.completed, monitor.new_results, signal.job_change, billing.refilled, billing.cap_warning, billing.cap_reached and billing.low_balance. All events are sent by default. The webhooks reference has the full request.
Every delivery includes a Dizo-Signature header with two parts: t, a Unix timestamp, and v1, a signature. The signature is an HMAC-SHA256 of the timestamp, a period and the raw body, computed with your signing secret. To verify, recompute that value with your secret and compare it with v1 using a constant-time comparison. Deliveries are retried with backoff for 24 hours.
The signing secret is shown once when you register the endpoint. Rotate it with POST /v1/webhooks/{id}/rotate. Some endpoints also accept a webhook_url directly, such as batch, lists, monitors and job-change watchlists, which is handy when one job needs its own destination.
Example: a batch that reports back
A RevOps engineer needs work emails for 2,500 CRM contacts. Instead of 2,500 separate calls, they send one POST /v1/batch with endpoint set to /v1/email/find, the items, a webhook_url and max_credits of 2,500. The response returns a batch id immediately with status queued. Their code stores the id and exits.
When the job finishes, Dizo sends batch.completed to the endpoint. The handler verifies the signature, then fetches GET /v1/batch/{id}, which is free and returns the hit count and a results_url for the JSONL or CSV file. Results stay available for 7 days, so the handler downloads them right away and writes the emails back to the CRM.
If 2,100 emails were found, the job costs 2,100 credits, or $52.50 at $0.025 per credit. The 400 misses cost nothing. If the webhook endpoint was down for longer than the retry window, the engineer can still poll the batch status endpoint to recover.
Webhooks in agent and no-code workflows
Webhooks are the usual way to connect a data API to an agent or a workflow tool without writing a server from scratch. Most workflow platforms can create an inbound webhook trigger with its own URL. You register that URL with the provider, and each event starts a run: look up the record, update the CRM, notify a channel, or hand the event to an agent with instructions on what to do next.
The same rules still apply. Verify the signature if the platform allows it, de-duplicate by event id, and keep the first step fast. For agent workflows, give the agent a summary of the event rather than the raw payload, and set limits on what the agent may spend in response. A burst of events should never translate into an unlimited burst of paid calls.
Related concepts
Webhooks pair naturally with job-change signals and saved-search monitors, both of which only make sense as events. They also pair with JSONL, the line-delimited result format that large async jobs often produce.
Idempotency keys solve the mirror-image problem. They make your outgoing retries safe, while idempotent webhook handlers make incoming retries safe. A webhook signing secret is a credential like an API key and deserves the same care.
Frequently asked questions
What is the difference between a webhook and an API call?
With an API call, your code asks the service for something. With a webhook, the service calls your code when an event happens. Webhooks remove the need to poll and let you react soon after the event.
How do I know a webhook really came from the sender?
Verify its signature. The sender signs each delivery with a secret you share, and your endpoint recomputes the signature from the raw body and compares the two. Reject any delivery that does not match or has an old timestamp.
What happens if my endpoint is down?
Most providers retry with increasing delays for a period of time. Dizo retries deliveries with backoff for 24 hours. For batch jobs, you can also poll GET /v1/batch/{id} for free to recover results.
Can the same webhook arrive twice?
Yes. Retries can deliver an event your endpoint already processed, for example when your response timed out. Record processed event ids and skip repeats so duplicates do no harm.
Do Dizo webhooks cost credits?
Registering and receiving webhooks is free. You pay for the work that produced the event, such as each detected job change or each item found in a batch, at the normal rates.
Can I receive Dizo webhooks in a no-code tool?
Any tool that can expose an HTTPS endpoint and receive a POST can receive the events. Check your tool's own docs for how to create a webhook trigger and whether it can verify an HMAC signature.
Last reviewed 2026-11-24.