Webhooks
POSTapi.dizo.ai/v1/webhooksFree
Register an endpoint once and receive signed events for finished jobs, job changes, monitor results and billing alerts.
Every delivery has a Dizo-Signature header (t=) and is retried with backoff for 24 hours. The signing secret is shown once; rotate it with POST /v1/webhooks/{id}/rotate.
Cost: Free. Charged never.
Parameters
| Name | Type | Description |
|---|---|---|
| urlrequired | string | HTTPS endpoint. |
| events | string[] | batch.completed, list.completed, monitor.new_results, signal.job_change, billing.refilled, billing.cap_warning, billing.cap_reached, billing.low_balance. Default all. |
| description | string | Label. |
Example
{
"url": "https://example.com/hooks/dizo",
"events": [
"batch.completed",
"signal.job_change",
"billing.cap_warning"
]
}{
"id": "wh_4Ks0",
"url": "https://example.com/hooks/dizo",
"events": [
"batch.completed",
"signal.job_change",
"billing.cap_warning"
],
"secret": "whsec_…shown once…"
}curl -X POST https://api.dizo.ai/v1/webhooks \
-H "Authorization: Bearer $DIZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/hooks/dizo","events":["batch.completed","signal.job_change","billing.cap_warning"]}'import os, requests
r = requests.post(
"https://api.dizo.ai/v1/webhooks",
headers={"Authorization": f"Bearer {os.environ['DIZO_API_KEY']}"},
json={"url":"https://example.com/hooks/dizo","events":["batch.completed","signal.job_change","billing.cap_warning"]},
)
print(r.json(), r.headers["x-dizo-credits-used"])const r = await fetch("https://api.dizo.ai/v1/webhooks", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.DIZO_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({"url":"https://example.com/hooks/dizo","events":["batch.completed","signal.job_change","billing.cap_warning"]}),
});
console.log(await r.json(), r.headers.get("x-dizo-credits-used"));Errors follow the standard error shape. Add "dry_run": true for a free quote and "max_credits" to cap spend. Agents: this page is also at /docs/webhooks.md.