Send your key as a bearer token: Authorization: Bearer dz_live_…. Test keys (dz_test_…) return realistic synthetic data and never spend credits. Scopes: data:read (default), billing:read (default), billing:write, keys:write.
Credits & response headers
Header
Meaning
x-dizo-credits-used
Credits this request spent (0 for dry runs, misses and errors)
x-dizo-credits-remaining
Account balance after this request
x-dizo-key-budget-remaining
Credits this key may still spend this month (if capped)
x-dizo-request-id
Quote this when contacting support
Dry runs & per-request budgets
"dry_run": true returns a quote with credits_max and credits_expected and spends nothing.
"max_credits": 400 caps one request. Searches stop at the cap with "truncated": true; lookups that would exceed it fail with 402 request_budget_exceeded before charging.
Errors
One shape for every error. code values are stable; branch on them, not on message.
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.
Rate limits
Default 20 requests/second and 10 concurrent per key, higher on request. Headers: x-ratelimit-limit, x-ratelimit-remaining, x-ratelimit-reset. For more than ~50 lookups use batch.
Idempotency
Send Idempotency-Key: <uuid> on any POST. Repeats within 24 hours return the original response and are not charged again.
Webhooks
Events: batch.completed, signal.job_change, billing.refilled, billing.cap_warning, billing.cap_reached, billing.low_balance. Each delivery is signed with Dizo-Signature: t=…,v1=HMAC_SHA256(secret, t + "." + body) and retried with backoff for 24 hours.