# Batch — Dizo API

`POST https://api.dizo.ai/v1/batch`

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:** `dizo_batch` on https://mcp.dizo.ai/mcp

## Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| `endpoint` | string | yes | Any lookup endpoint path, e.g. /v1/email/find. |
| `items` | object[] | yes | 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 request
```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
}
```

## Example response
```json
{
  "id": "bat_3Jx8",
  "status": "queued",
  "items": 2500,
  "quote": {
    "credits_max": 2500
  },
  "credits_used": 0
}
```

## cURL
```bash
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}'
```
