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

# Endpoints & Authentication

The Data Breaches API has four `GET` endpoints. All authenticate with your API `token`.

## Search

`GET`

```bash
https://api.webz.io/breaches?token=YOUR_TOKEN&email_domain=example.com
```

Returns compromised records matching your [Search Scope](https://docs.tools.webz.io/docs/webz/data-breach-scope) and [Filters](https://docs.tools.webz.io/docs/webz/data-breach-filters). This is the main endpoint.

## Natural Language Search

`GET`

```bash
https://api.webz.io/breaches/ask?q=YOUR_QUESTION
```

Describe the search in plain English; it runs as a standard `/breaches` query and returns the same response. See [Natural Language Search](https://docs.tools.webz.io/docs/webz/data-breach-natural-language-search).

## Email Lookup

`GET`

```bash
https://api.webz.io/breaches/getEmail?token=YOUR_TOKEN&email=jane@example.com
```

Returns every record for one email address across the full history. Requires the email-search permission. See [Search by Email](https://docs.tools.webz.io/docs/webz/data-breach-search-by-email).

## Breach Catalog

`GET`

```bash
https://api.webz.io/breachCatalog?token=YOUR_TOKEN&query=linkedin
```

Looks up known breaches by name and returns their UUIDs, so you can then search a single breach with `breach_uuid`. See [Breach Catalog](https://docs.tools.webz.io/docs/webz/data-breach-catalog).

## Authentication

- Send your `token` as a query parameter, or as an `Authorization: Bearer YOUR_TOKEN` header. A missing token returns `401`; an unknown token returns `404`.
- Your account needs the Data Breaches permission and authorization for the domains you search. Otherwise requests return `401` or `403`.

> [!NOTE]
> Need access or more domains? Contact **sales@webz.io**.

