> 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>`.

# Search Scope

Every search is scoped to a domain or an email. At least one of the four parameters below must be present, or the request returns `400`.

| Parameter | Searches | Example |
| --- | --- | --- |
| `email` | One compromised email address | `email=jane@example.com` |
| `email_domain` | Compromised accounts by email domain | `email_domain=example.com` |
| `login_domain` | Credentials used to log into a domain. Contract plans only | `login_domain=example.com` |
| `domain` | Either the email domain or the login domain. On pay as you go, the email domain only | `domain=example.com` |

## Domain matching

- A **root domain** (`example.com`) in `login_domain` also matches its subdomains.
- A **subdomain** (`sub.example.com`) stays exact to that subdomain.
- `email` is matched exactly; its domain part is what gets authorized on your account. For the full history of one address, see [Search by Email](https://docs.tools.webz.io/docs/webz/data-breach-search-by-email).

Values are case-insensitive. On a contract plan you can combine `email_domain` with `login_domain` in one request, but you cannot send two values for the same parameter - search one domain at a time. On pay as you go, `domain` searches the email domain only and does not also match login-domain credentials. `login_domain` returns `403` with `"login_domain is not available on pay as you go."`

> [!NOTE]
> On contract plans you can only search domains authorized for your token. A new domain is added automatically on first use; a brand-new domain may take about 20 seconds to index on that first request. See [Errors, Rate Limits & Credits](https://docs.tools.webz.io/docs/webz/data-breach-errors-limits).

## Pay as you go: verified assets only

Pay-as-you-go accounts can only search what they own and have verified in the playground **Assets** page ([app.webz.io/playground/assets](https://app.webz.io/playground/assets)). The same rule applies to the [MFA Bypass Monitoring API](https://docs.tools.webz.io/docs/webz/mfa-bypass-monitoring-endpoints), the [Non-Human Identities (NHI) API](https://docs.tools.webz.io/docs/webz/nhi-endpoints), and [Dark Web Discover](https://docs.tools.webz.io/docs/webz/dark-web-api-discover).

| You search | Allowed when |
| --- | --- |
| A domain (`domain` or `email_domain`) | It equals a verified domain or sits under one - `sub.example.com` is covered by a verified `example.com`. `login_domain` is not available on pay as you go. |
| An email (`email`) | The address itself is a verified email asset, or its domain is covered by a verified domain. |

How to verify:

- **Domain** - add the DNS TXT record shown in the Assets page, then click verify. Your primary domain can also be approved by email: Webz.io sends a link to a security or admin mailbox of the domain (`admin@`, `security@`, `soc@`, `infosec@`, `csirt@`, `cert@`, or a contact from its `security.txt`), valid for 24 hours.
- **Email** - add the address and click the verification link sent to it.

A request for an unverified domain or email returns `403` with the header `X-RateLimit-Reason: unverified_asset` and no charge.

> [!NOTE]
> Verification proves ownership. It lets pay-as-you-go accounts monitor their own exposure without the sales-led domain authorization used on contract plans.

