> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encrata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Domain Exposure

> Assess a company's breach exposure by domain. Aggregates every leaked credential tied to the domain into a single summary: exposed accounts, source breaches, plaintext passwords, and an overall risk level.

## Authentication

Requires an API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_API_KEY
```

## Request

<ParamField body="domain" type="string" required>
  The company domain to assess, e.g. `example.com`. Scheme, path, and `www.` prefixes are stripped automatically.
</ParamField>

## Response

Returns an aggregated breach-exposure summary rather than raw dark web hits.

<ParamField body="domain" type="string">
  The normalized domain that was assessed.
</ParamField>

<ParamField body="total_records" type="number">
  Total number of breach records found tied to the domain.
</ParamField>

<ParamField body="account_count" type="number">
  Number of distinct exposed accounts.
</ParamField>

<ParamField body="plaintext_accounts" type="number">
  Number of accounts whose password was exposed in plaintext.
</ParamField>

<ParamField body="risk_level" type="string">
  Overall exposure severity: `critical`, `high`, `medium`, or `low`.
</ParamField>

<ParamField body="breaches" type="array">
  Breaches that leaked accounts for this domain, each with a `name` and `count`, sorted by count.
</ParamField>

<ParamField body="accounts" type="array">
  Exposed accounts, each with `email`, the `breaches` that leaked it, and a `plaintext` flag, sorted by breach count.
</ParamField>

<ResponseExample>
  ```json theme={"dark"}
  {
    "domain": "example.com",
    "total_records": 128,
    "account_count": 47,
    "plaintext_accounts": 12,
    "risk_level": "high",
    "credits": 1,
    "breaches": [
      { "name": "ComboList2026", "count": 31 },
      { "name": "MegaBreach2024", "count": 16 }
    ],
    "accounts": [
      {
        "email": "ceo@example.com",
        "breaches": ["ComboList2026", "MegaBreach2024"],
        "plaintext": true
      },
      {
        "email": "support@example.com",
        "breaches": ["ComboList2026"],
        "plaintext": false
      }
    ]
  }
  ```
</ResponseExample>

## Credits

1 credit per assessment.
