Batch
POSTapi.dizo.ai/v1/batchSame as each item
Up to 10,000 lookups per job. Async, webhook on completion, results as JSONL or CSV.
Same per-item price as the underlying endpoint, and misses are still free. Poll GET /v1/batch/{id} or receive batch.completed.
Cost: Same as each item. Charged per item, same rules.
MCP tool:
MCP tool:
dizo_batchParameters
| Name | Type | Description |
|---|---|---|
| endpointrequired | string | Any lookup endpoint path, e.g. /v1/email/find. |
| itemsrequired | object[] | Up to 10,000 request bodies. |
| webhook_url | string | Notified on completion. |
| format | "jsonl" | "csv" | Result file format. |
| dry_run | boolean | Return a cost quote and spend 0 credits. |
| max_credits | number | Hard ceiling on credits this request may spend. |
Example
{
"endpoint": "/v1/email/find",
"items": [
{
"first_name": "Maya",
"last_name": "Okafor",
"company_domain": "ledgerline.io"
},
"…"
],
"webhook_url": "https://example.com/hooks/dizo",
"max_credits": 10000
}{
"id": "bat_3Jx8",
"status": "queued",
"items": 2500,
"quote": {
"credits_max": 2500
},
"credits_used": 0
}curl -X POST https://api.dizo.ai/v1/batch \
-H "Authorization: Bearer $DIZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"endpoint":"/v1/email/find","items":[{"first_name":"Maya","last_name":"Okafor","company_domain":"ledgerline.io"},"…"],"webhook_url":"https://example.com/hooks/dizo","max_credits":10000}'import os, requests
r = requests.post(
"https://api.dizo.ai/v1/batch",
headers={"Authorization": f"Bearer {os.environ['DIZO_API_KEY']}"},
json={"endpoint":"/v1/email/find","items":[{"first_name":"Maya","last_name":"Okafor","company_domain":"ledgerline.io"},"…"],"webhook_url":"https://example.com/hooks/dizo","max_credits":10000},
)
print(r.json(), r.headers["x-dizo-credits-used"])const r = await fetch("https://api.dizo.ai/v1/batch", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.DIZO_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({"endpoint":"/v1/email/find","items":[{"first_name":"Maya","last_name":"Okafor","company_domain":"ledgerline.io"},"…"],"webhook_url":"https://example.com/hooks/dizo","max_credits":10000}),
});
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/batch.md.