# Dizo API reference

REST over HTTPS, JSON in and out. Base URL `https://api.dizo.ai/v1`. Every endpoint is also an MCP tool on `https://mcp.dizo.ai/mcp`.

## Authentication
`Authorization: Bearer dz_live_…`. Test keys (`dz_test_…`) return synthetic data and never spend credits. Scopes: `data:read` (default), `billing:read` (default), `billing:write`, `keys:write`.

## Response headers
- `x-dizo-credits-used` — credits this request spent
- `x-dizo-credits-remaining` — account balance after the request
- `x-dizo-key-budget-remaining` — what this key may still spend this month
- `x-dizo-request-id`
- `x-ratelimit-limit`, `x-ratelimit-remaining`, `x-ratelimit-reset` (default 20 req/s, 10 concurrent per key)

## Dry runs and budgets
- `"dry_run": true` returns `quote.credits_max` and `quote.credits_expected` and spends nothing.
- `"max_credits": n` caps one request. Searches stop at the cap with `"truncated": true`; lookups that would exceed it fail with `402 request_budget_exceeded` before charging.

## Idempotency
Send `Idempotency-Key: <uuid>` on any POST. Repeats within 24 hours return the original response and are not charged.

## Errors
Shape: `{"error": {"code", "message", "fix", "retryable", "retry_after", "param", "docs"}}`

| Status | code | Retry | Fix |
|---|---|---|---|
| 400 | `invalid_request` | no | Fix the field named in error.param. |
| 401 | `invalid_api_key` | no | Check the key; ask a human for a new one. |
| 402 | `insufficient_credits` | no | Top up, or enable auto-refill. |
| 402 | `monthly_cap_reached` | no | Account cap hit; a human must raise it or wait for the 1st. |
| 402 | `budget_exceeded` | no | This key's daily or monthly cap is hit. |
| 402 | `request_budget_exceeded` | no | Raise max_credits or lower limit. |
| 403 | `ip_not_allowed` | no | Request came from an IP outside this key's allowlist. |
| 403 | `scope_denied` | no | Key lacks the scope or endpoint. |
| 404 | `not_found` | no | No match. Not charged. |
| 409 | `idempotency_conflict` | no | Same Idempotency-Key reused with a different body. |
| 429 | `rate_limited` | yes | Wait retry_after seconds. |
| 500 | `internal_error` | yes | Exponential backoff, max 5 tries. |

## Webhooks
Register endpoints with `POST /v1/webhooks`. Events: `batch.completed`, `list.completed`, `monitor.new_results`, `signal.job_change`, `billing.refilled`, `billing.cap_warning`, `billing.cap_reached`, `billing.low_balance`. Signed with `Dizo-Signature: t=<unix>,v1=HMAC_SHA256(secret, t + "." + body)`; retried with backoff for 24 hours.

## Endpoints
- [POST /v1/search](https://dizo.ai/docs/search.md) — Natural-language search: Describe the people or companies you want in plain English and get matching records back. (1 credit / 25 results)
- [POST /v1/people/search](https://dizo.ai/docs/people-search.md) — People search: Find professionals with structured filters: title, seniority, department, location, company size, industry and tech stack. (1 credit / 25 results)
- [POST /v1/companies/search](https://dizo.ai/docs/company-search.md) — Company search: Find accounts by industry, headcount, revenue, location, growth, funding and technologies used. (1 credit / 25 results)
- [POST /v1/count](https://dizo.ai/docs/count.md) — Count (TAM): How many people or companies match? Free counts for sizing a market, splitting territories and budgeting a job before you buy anything. (Free)
- [POST /v1/people/best-match](https://dizo.ai/docs/best-match.md) — Decision-maker finder: Give a list of companies and a ranked list of titles. Get back the best person at each company, falling through your titles in order. (1 credit / 25 people)
- [GET /v1/companies/{domain}/people](https://dizo.ai/docs/org-chart.md) — Org chart: Everyone we know at a company, grouped by department and seniority. Find the buying committee in one call. (1 credit / 25 results)
- [POST /v1/email/find](https://dizo.ai/docs/email-find.md) — Email finder: Name and company, or a profile URL, in. A work email verified in real time out. (1 credit)
- [POST /v1/phone/find](https://dizo.ai/docs/phone-find.md) — Phone finder: Mobile and direct-dial numbers with line type, carrier and Do Not Call flags. (10 credits)
- [POST /v1/people/enrich](https://dizo.ai/docs/people-enrich.md) — Person enrich: Identify a person from an email, profile URL, phone or name + company and get the full profile. (2 credits (+1 email, +10 phone))
- [POST /v1/companies/enrich](https://dizo.ai/docs/company-enrich.md) — Company enrich: A domain in; headcount, revenue band, industry, HQ, funding, technologies and socials out. (1 credit)
- [POST /v1/email/verify](https://dizo.ai/docs/email-verify.md) — Email verify: Deliverable, catch-all, risky or undeliverable. Clean a list before it hurts your sender reputation. (0.25 credits)
- [POST /v1/reverse/{kind}](https://dizo.ai/docs/reverse.md) — Reverse lookup: Got an email address or a phone number? Get the person and company behind it. (2 credits)
- [POST /v1/signals/watch](https://dizo.ai/docs/signals.md) — Job-change signals: Watch your contacts. Get a webhook when someone changes jobs, gets promoted or moves companies. (1 credit / change)
- [POST /v1/lists](https://dizo.ai/docs/lists.md) — Lists: Build a prospect list from a plain-English description or a CSV, add email, phone and company columns, dedupe against your suppression list, then export. (Search + lookup rates)
- [POST /v1/monitors](https://dizo.ai/docs/monitors.md) — Monitors: Run a saved search on a schedule and get a webhook with only the new people or companies that started matching since the last run. (1 credit / 25 new results)
- [POST /v1/batch](https://dizo.ai/docs/batch.md) — Batch: Up to 10,000 lookups per job. Async, webhook on completion, results as JSONL or CSV. (Same as each item)
- [GET /v1/batch/{id}](https://dizo.ai/docs/batch-get.md) — Batch status: Status, hit count and results_url for a batch job. (Free)
- [POST /v1/webhooks](https://dizo.ai/docs/webhooks.md) — Webhooks: Register an endpoint once and receive signed events for finished jobs, job changes, monitor results and billing alerts. (Free)
- [POST /v1/suppression](https://dizo.ai/docs/suppression.md) — Suppression list: Emails, domains or person ids that Dizo should never return to you: current customers, open opportunities and your own opt-outs. (Free)
- [POST /v1/feedback](https://dizo.ai/docs/feedback.md) — Data feedback: Report a bounced email, a wrong number or an outdated job. Confirmed reports are credited back automatically. (Free (refunds credits))
- [GET /v1/me](https://dizo.ai/docs/me.md) — Key info: What this API key is allowed to do: scopes, endpoint allow-list, remaining budget and rate limits. Call it first in a new session. (Free)
- [GET /v1/billing](https://dizo.ai/docs/billing.md) — Balance & usage: Balance, this month's spend, cap, refill settings and per-key usage. (Free)
- [POST /v1/billing/topup](https://dizo.ai/docs/billing-topup.md) — Top up: Buy credits now with the saved payment method. (Free (charges card on file))
- [PUT /v1/billing/auto-refill](https://dizo.ai/docs/billing-refill.md) — Auto-refill: When balance falls below a threshold, automatically buy a fixed dollar amount of credits. (Free)
- [PUT /v1/billing/limits](https://dizo.ai/docs/billing-limits.md) — Spend limits: Account-wide monthly cap in USD, alert thresholds and a lock. (Free)
- [POST /v1/keys](https://dizo.ai/docs/keys.md) — API keys: Create a key for an agent or teammate with its own caps and endpoint allow-list. (Free)
- [GET /v1/pricing](https://dizo.ai/docs/pricing.md) — Pricing: Price tiers and per-endpoint credit costs. No authentication. (Free, no auth)
