> For the complete documentation index, see [llms.txt](https://docs.tools.webz.io/llms.txt). Any docs page is also available as markdown at `https://docs.tools.webz.io/markdown/<environment>/<slug>`.

# Errors, Rate Limits & Credits

Requests are metered two ways - how fast you call, and what you spend: search credits on contract plans, dollars on pay as you go. Access also depends on domain authorization.

## Request rate

Requests are rate-limited per token, about **1 request per second**. Sending faster returns `429` with the `X-RateLimit-Reason: rate_limit` header.

## Credits (contract plans)

- Every request costs **1 credit**, including a request that returns 0 records and each Breach Catalog call.
- `requestsLeft` in every response shows your remaining balance.
- When credits run out, requests return `429` with the `X-RateLimit-Reason: insufficient_credits` header.

## Pay as you go

Pay-as-you-go accounts are billed in USD from their balance, per request and per record returned:

| | Price |
| --- | --- |
| Per request (any endpoint, including an empty page) | **$0.25** |
| Per data-breach record returned | **$0.50** |
| Per infostealer record returned | **$0.85** |

- Responses carry `cost` (this request) and `balance` (what is left) instead of `requestsLeft` - see [Response Format](https://docs.tools.webz.io/docs/webz/data-breach-response-format). Add `size` (`1`-`100`, default `100`; up to `1000` on `/breaches/getEmail`) to control how many records a page returns.
- Requests are accepted while your balance is above $0; a request that costs more than what is left takes the remainder. At $0, requests return `429` with `X-RateLimit-Reason: insufficient_credits`. Top up or enable auto-recharge at [app.webz.io/playground/settings/credits](https://app.webz.io/playground/settings/credits).
- Searches are limited to your verified assets - see [Search Scope](https://docs.tools.webz.io/docs/webz/data-breach-scope). An unverified domain or email returns `403` with `X-RateLimit-Reason: unverified_asset`.

> [!WARNING]
> Pay-as-you-go results are **partially masked**: passwords, device details (IP, hostname, OS, malware, location), publication source (file, post URL, site), and service classifications keep only their first character, for example `P********`. Identity fields - email, login domain and URL, dates, types, breach information - stay in clear. The results show *what* leaked, not the data itself. Contract plans receive full records - contact **sales@webz.io**.

## Domain authorization

On contract plans you can only search domains authorized for your token. A queried domain is added automatically; a brand-new domain may take about 20 seconds to index on the first request. A very large unauthorized domain (over 1,000,000 leak records in the past year) is blocked with `403` - contact support to enable it. For a pay-as-you-go `domain` search, which matches the email domain only, that count is email-domain volume only.

## Error responses

Errors return `{ "errorCode": <code>, "errors": ["message", ...] }`.

| Status | When |
| --- | --- |
| `400` | Missing, unknown, duplicated, or malformed parameter; or a time filter older than one year without `raw=true`. |
| `401` | Missing or invalid token, or your account lacks the Data Breaches role. |
| `402` | Account email is not verified. |
| `403` | No authorized domains, an unauthorized domain, or a domain blocked by the safeguard. Pay as you go: an unverified asset (`X-RateLimit-Reason: unverified_asset`). |
| `404` | Endpoint or resource not found, or no user for the token. |
| `429` | Rate limit exceeded, or insufficient credits / balance (see `X-RateLimit-Reason`). |
| `500` | Internal error. |
| `503` | Service temporarily unavailable. |

> [!TIP]
> Need access, more credits, full records, or additional domains? Contact **sales@webz.io**.

