FOR AGENTSSkip the HTML: this page as .md · llms.txt · openapi.json · MCP mcp.dizo.ai/mcp

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=,v1=HMAC_SHA256(secret, t + "." + body)) 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

NameTypeDescription
urlrequiredstringHTTPS endpoint.
eventsstring[]batch.completed, list.completed, monitor.new_results, signal.job_change, billing.refilled, billing.cap_warning, billing.cap_reached, billing.low_balance. Default all.
descriptionstringLabel.

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.