# Introduction

> Heimdal checks an email address and an IP address at signup and tells you whether they look like trouble. One endpoint, one JSON answer.

Heimdal is a signup-protection API. Before you create an account, send the visitor's IP address, email address, or both. Heimdal answers with a set of risk signals and a `block` recommendation, and you decide what to do with them.

`GET /v1/check`

```sh
curl -G "https://heimdal.codebrewerz.com/api/v1/check" \
  -H "Authorization: Bearer $HEIMDAL_API_KEY" \
  --data-urlencode "ip=185.220.101.1" \
  --data-urlencode "email=test@mailinator.com"
```

```json
{
  "block": true,
  "reasons": ["disposable_email", "tor", "vpn", "bad_isp"],
  "email": {
    "address": "test@mailinator.com",
    "domain": "mailinator.com",
    "disposable": true
  },
  "ip": {
    "address": "185.220.101.1",
    "tor": true,
    "vpn": true,
    "proxy": false,
    "bad_isp": true,
    "asn": 60729,
    "isp": "TORSERVERS-NET Stiftung Erneuerbare Freiheit"
  },
  "custom": { "matched": [] }
}
```

## What it checks

| Signal             | True when                                                                     |
| ------------------ | ----------------------------------------------------------------------------- |
| `email.disposable` | The email's domain belongs to a disposable mail provider. 150,000+ domains.   |
| `ip.tor`           | The address is a Tor exit node.                                               |
| `ip.proxy`         | The address is a known open proxy.                                            |
| `ip.vpn`           | The address belongs to a VPN provider's network.                              |
| `ip.bad_isp`       | The address belongs to a hosting, datacenter or VPN network. 2,000+ networks. |
| `custom.matched`   | The email, its domain or the address is on one of your own lists.             |

`block` is `true` when at least one of them fires. If that is stricter than you want, ignore `block` and read the individual signals. [Signals explained](https://heimdal.codebrewerz.com/docs/reference/signals/) covers what each one does and does not tell you.

## How it works

- **Local lists.** Heimdal keeps its lists on its own servers and refreshes them every hour (Tor, proxies) or every day (everything else). A check is a lookup: Heimdal never connects to the address you send and never contacts the mail server.
- **Server to server.** You call the API from your backend with a secret key. It is not meant for browsers or mobile apps.
- **Your decision.** Heimdal reports. Whether a signal blocks a signup, triggers a CAPTCHA or is only logged is up to you. [Best practices](https://heimdal.codebrewerz.com/docs/guides/best-practices/) has a sensible starting policy.

## Pricing

There is one plan, Shield, and it includes everything: $59 a month, or $590 a year (ten months).

| Included                 |                                                           |
| ------------------------ | --------------------------------------------------------- |
| API calls                | Unlimited                                                 |
| Email and IP checks      | Disposable domains, Tor, open proxies, VPNs, bad ISPs     |
| Custom lists             | 20 lists, 50,000 entries per account |
| Monitoring and analytics | Counts per reason over time, and a log of recent checks   |
| Priority support         | Yes                                                       |

The first subscription for an email address starts with a 7-day free trial. A card is required to start it and is not charged until the trial ends. "Unlimited" means there is no monthly quota. A per-key rate limit protects the service: 100 requests a second. See [Rate limits](https://heimdal.codebrewerz.com/docs/reference/rate-limits/).

## What Heimdal stores

Hourly counters (total, blocked, and one per reason) kept for 12 months, with no IP addresses or emails in them. The recent-checks log in the dashboard holds the checked IP address and email, capped at the newest 10,000 checks per account and 30 days. Under heavy load the log is a sample; the counters stay exact. Checks made from the dashboard's playground are not stored.

## What Heimdal does not do

- It does not verify that a mailbox exists or that a domain can receive mail.
- It has no allowlists. Lists only add reasons to block; handle exceptions in your own code.
- It returns no location data for an IP address, only the network it belongs to (`ip.asn`, `ip.isp`).
- It has no client SDK and needs none: the API is one HTTP request.
- It sends no webhooks or email alerts.

## Using an AI assistant?

Every page has **Copy as Markdown** and **Copy LLM prompt** under its title, and the whole site is available as [`llms.txt`](https://heimdal.codebrewerz.com/docs/llms.txt), [`llms-full.txt`](https://heimdal.codebrewerz.com/docs/llms-full.txt) and an [OpenAPI spec](https://heimdal.codebrewerz.com/docs/openapi.json). [Docs for AI agents](https://heimdal.codebrewerz.com/docs/ai-agents/) has a ready setup prompt.

## Next steps

  - [Quickstart](): Create a key and make your first check.
  - [Check endpoint](): Every parameter and response field.
  - [Best practices](): Timeouts, failing open, and which signals to act on.
  - [Better Auth](): Guard email sign-up with a before hook.
