# Scan a domain

> Start a free Moatlight scan. No login.

Open https://moatlight.tech/scan?d=<domain>. The page starts the scan, waits for it and opens the report at https://moatlight.tech/report/<domain>.

## API

Start a scan:

```
POST https://moatlight.tech/api/scan
Content-Type: application/json

{"domain": "example.com"}
```

- 200: a report from the last 6 hours exists. The response has `scan.status: "complete"`.
- 202: the scan is queued or running. Poll `statusUrl` (for example `/api/scan/<id>`) until `scan.status` is `complete`, `unreachable` or `error`. `scan.pollAfterMs` says when to ask again.
- 400: the domain is not valid. 429: too many scans from one address; wait `Retry-After` seconds.

A finished full scan returns `score`, `grade` and `rulesVersion`. The per-check report, fix prompts and generated files are on the report page.

Limits: 10 scans a minute and 30 a day per address. A cached report costs nothing.
