# mails.fit documentation Source: https://mails.fit/docs. Generated from the same files as the docs pages. --- URL: https://mails.fit/docs # mails.fit developer docs mails.fit checks whether an email address can receive mail: syntax, DNS and MX, a polite SMTP probe (no mail is sent), catch-all, disposable, role and free-provider flags, and spam-trap risk. Use it from code, from a spreadsheet upload, or from an AI agent over MCP. ## Start here - [Quickstart](/docs/quickstart): key, first request, response explained in 60 seconds. - [Authentication](/docs/authentication): API keys, scopes and where to keep them. - [Verify](/docs/verify): one address, or up to 100 in one call. - [Lists](/docs/lists): upload a CSV, XLSX or JSON list, follow progress, download results. - [Tools](/docs/tools): DNS, SPF, DKIM, DMARC, blacklist and spam-trap checks, email finder. - [Webhooks](/docs/webhooks): events, signatures and verification code. - [Errors](/docs/errors): status codes and error codes. - [Rate limits and credits](/docs/rate-limits): headers, limits and what costs a credit. - [MCP](/docs/mcp): use mails.fit from Claude, Cursor or any MCP client. - [Widget](/docs/widget): check addresses in your signup form. - [SDK snippets](/docs/sdks): small copy-ready clients in six languages. - [API reference](/docs/api): every endpoint, generated from the OpenAPI spec. ## Base URL All endpoints live under `https://api.mails.fit/v1`. The same paths work on `https://mails.fit/v1`. The machine-readable spec is [/v1/openapi.json](/v1/openapi.json). ## For AI tools Every docs page is also plain Markdown: add `.md` to its URL (for example [/docs/quickstart.md](/docs/quickstart.md)). [/llms.txt](/llms.txt) lists the pages; [/llms-full.txt](/llms-full.txt) is all of them in one file. --- URL: https://mails.fit/docs/quickstart # Quickstart From zero to your first verified address in about a minute. ## 1. Get a key [Create an account](/signup) (100 free credits, no card), confirm your email address, then open **Dashboard → API keys** and create a key with the `verify` scope. Keys start with `mf_live_` and are shown once. ```bash export MAILSFIT_KEY="mf_live_..." ``` ## 2. Send your first request ```bash curl https://api.mails.fit/v1/verify \ -H "Authorization: Bearer $MAILSFIT_KEY" \ -H "Content-Type: application/json" \ -d '{"email": "jane@example.com"}' ``` ```javascript const res = await fetch("https://api.mails.fit/v1/verify", { method: "POST", headers: { Authorization: `Bearer ${process.env.MAILSFIT_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ email: "jane@example.com" }), }); const result = await res.json(); console.log(result.status, result.score, result.reason); ``` ```python import os, requests res = requests.post( "https://api.mails.fit/v1/verify", headers={"Authorization": f"Bearer {os.environ['MAILSFIT_KEY']}"}, json={"email": "jane@example.com"}, timeout=30, ) result = res.json() print(result["status"], result["score"], result["reason"]) ``` ```go body := strings.NewReader(`{"email": "jane@example.com"}`) req, _ := http.NewRequest("POST", "https://api.mails.fit/v1/verify", body) req.Header.Set("Authorization", "Bearer "+os.Getenv("MAILSFIT_KEY")) req.Header.Set("Content-Type", "application/json") res, err := (&http.Client{Timeout: 30 * time.Second}).Do(req) if err != nil { log.Fatal(err) } defer res.Body.Close() var result map[string]any json.NewDecoder(res.Body).Decode(&result) fmt.Println(result["status"], result["score"], result["reason"]) ``` ```php $ch = curl_init("https://api.mails.fit/v1/verify"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 30, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("MAILSFIT_KEY"), "Content-Type: application/json", ], CURLOPT_POSTFIELDS => json_encode(["email" => "jane@example.com"]), ]); $result = json_decode(curl_exec($ch), true); echo $result["status"], " ", $result["score"], " ", $result["reason"]; ``` ```rust let result: serde_json::Value = reqwest::Client::new() .post("https://api.mails.fit/v1/verify") .bearer_auth(std::env::var("MAILSFIT_KEY")?) .json(&serde_json::json!({ "email": "jane@example.com" })) .send() .await? .json() .await?; println!("{} {} {}", result["status"], result["score"], result["reason"]); ``` ## 3. Read the response ```json { "id": 1842, "state": "done", "email": "jane@example.com", "status": "deliverable", "reason": "accepted", "score": 95, "suggestion": null, "did_you_mean": null, "disposable": false, "free": false, "role": false, "catch_all": false, "mx_found": true, "mx_group": "other", "smtp_provider": "other", "mx_host": "mx.example.com", "smtp_code": 250 } ``` - `status` is the answer: `deliverable` (send), `risky` (send with care), `undeliverable` (remove) or `unknown` (we could not tell; the credit is refunded). - `reason` says why, for example `user_unknown`, `catch_all`, `disposable` or `no_mx`. See [Verify](/docs/verify#reasons) for the full list. - `score` is 0–100: 80–100 send, 50–79 care, 0–49 drop. - `state` is `pending` (HTTP 202) when the mail server is slow; poll `GET /v1/verify/{id}`. ## Next - Many addresses at once: [batch verify](/docs/verify#batch) (up to 100) or [lists](/docs/lists) (up to 1,000,000 rows). - From an AI agent: [MCP](/docs/mcp). --- URL: https://mails.fit/docs/authentication # Authentication Every `/v1` request (except the public tools and the widget) needs an API key in the `Authorization` header: ```text Authorization: Bearer mf_live_0123456789abcdef... ``` ## Private and public keys Create keys in **Dashboard → API keys** and pick a type: - **Private** (`mf_live_...`): must be kept secret; only use it in server-side code where it will not be exposed. Shown once; we store only its SHA-256 hash. It has the scopes below and an optional IP allowlist. - **Public** (`mf_pub_...`): can be used publicly, e.g. in your website's JavaScript. It only calls `POST /v1/verify` and `GET /v1/verify/{id}`, and only with an `Origin` header that exactly matches one of its allowed origins (scheme included, like `https://example.com`); other or missing origins get 403 `origin_not_allowed`. Any other endpoint (lists, credits, monitors, hooks, tools, MCP) answers 403 `public_key_not_allowed`. It has its own rate limit (bursts of 10, 2 per second) and a daily cap (default 500, up to 50,000; past it 429 `daily_cap_reached`). Responses carry CORS headers for its origins and never show your balance. Signup [widget](/docs/widget) keys are public keys. ```javascript // In the browser, on https://example.com (listed on the key) const res = await fetch("https://api.mails.fit/v1/verify", { method: "POST", headers: { Authorization: "Bearer mf_pub_...", "Content-Type": "application/json" }, body: JSON.stringify({ email: "jane@example.org", wait: 5 }), }); ``` ## Scopes Each private key has scopes: | Scope | Allows | |---|---| | `verify` | `POST /v1/verify`, `POST /v1/verify/batch`, `GET /v1/verify/{id}`, email finder, domain search, blacklist monitors, enrichment, `verify.completed` hooks | | `lists` | `/v1/lists` upload, progress, download and monitoring, `list.*` hooks | `GET /v1/credits` works with any key. A request without the needed scope gets 403 `missing_scope`. ## IP allowlist A private key can be limited to IP addresses or CIDR ranges (up to 50, IPv4 or IPv6), set when you create it or later under **API keys → Allowed IPs**. A request from any other address gets 403 `ip_not_allowed` and is not charged. Leave the list empty to allow any IP. ```json { "error": { "code": "ip_not_allowed", "message": "This API key is not allowed from 198.51.100.7. ..." } } ``` ## Good practice - Keep private keys on the server side. In a browser, use a public key (`mf_pub_...`) or the [widget](/docs/widget). - Give each app or agent its own key, so you can revoke one without touching the others. Revoking takes effect at once. - The account email address must be confirmed before keys work (403 `email_not_verified`). - Failed authentication attempts are limited per client IP; after too many you get 429 with `Retry-After`. ## Check a key ```bash curl https://api.mails.fit/v1/credits -H "Authorization: Bearer $MAILSFIT_KEY" ``` ```javascript const res = await fetch("https://api.mails.fit/v1/credits", { headers: { Authorization: `Bearer ${process.env.MAILSFIT_KEY}` }, }); console.log(await res.json()); // { balance: 100 } ``` ```python import os, requests res = requests.get( "https://api.mails.fit/v1/credits", headers={"Authorization": f"Bearer {os.environ['MAILSFIT_KEY']}"}, timeout=10, ) print(res.json()) # {'balance': 100} ``` ```go req, _ := http.NewRequest("GET", "https://api.mails.fit/v1/credits", nil) req.Header.Set("Authorization", "Bearer "+os.Getenv("MAILSFIT_KEY")) res, err := http.DefaultClient.Do(req) if err != nil { log.Fatal(err) } defer res.Body.Close() io.Copy(os.Stdout, res.Body) // {"balance":100} ``` ```php $ch = curl_init("https://api.mails.fit/v1/credits"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("MAILSFIT_KEY")], ]); echo curl_exec($ch); // {"balance":100} ``` ```rust let credits: serde_json::Value = reqwest::Client::new() .get("https://api.mails.fit/v1/credits") .bearer_auth(std::env::var("MAILSFIT_KEY")?) .send() .await? .json() .await?; println!("{credits}"); // {"balance":100} ``` --- URL: https://mails.fit/docs/verify # Verify Check one address, or up to 100 in one call. Each address costs one credit; `unknown` results are refunded automatically. Results come from the 30-day result cache when possible (still one credit). ## One address `POST /v1/verify` with `{"email": "...", "wait": 25}`. `wait` (0–25 seconds, default 25) is how long to hold the connection for the SMTP probe. If the probe has not finished by then you get **202** with `state: "pending"`; poll `GET /v1/verify/{id}` until `state` is `done`. Send an `Idempotency-Key` header (1–200 characters) to make retries free: the same key returns the same request instead of charging again. ```bash curl https://api.mails.fit/v1/verify \ -H "Authorization: Bearer $MAILSFIT_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: signup-42" \ -d '{"email": "jane@example.com", "wait": 10}' ``` ```javascript async function verify(email) { const headers = { Authorization: `Bearer ${process.env.MAILSFIT_KEY}` }; let res = await fetch("https://api.mails.fit/v1/verify", { method: "POST", headers: { ...headers, "Content-Type": "application/json" }, body: JSON.stringify({ email, wait: 10 }), }); let v = await res.json(); while (v.state === "pending") { await new Promise((r) => setTimeout(r, 2000)); v = await (await fetch(`https://api.mails.fit/v1/verify/${v.id}`, { headers })).json(); } return v; } ``` ```python import os, time, requests API = "https://api.mails.fit/v1" HEADERS = {"Authorization": f"Bearer {os.environ['MAILSFIT_KEY']}"} def verify(email): v = requests.post(f"{API}/verify", headers=HEADERS, json={"email": email, "wait": 10}, timeout=30).json() while v.get("state") == "pending": time.sleep(2) v = requests.get(f"{API}/verify/{v['id']}", headers=HEADERS, timeout=30).json() return v ``` ```go func verify(email string) (map[string]any, error) { payload, _ := json.Marshal(map[string]any{"email": email, "wait": 10}) req, _ := http.NewRequest("POST", "https://api.mails.fit/v1/verify", bytes.NewReader(payload)) req.Header.Set("Authorization", "Bearer "+os.Getenv("MAILSFIT_KEY")) req.Header.Set("Content-Type", "application/json") res, err := (&http.Client{Timeout: 30 * time.Second}).Do(req) if err != nil { return nil, err } defer res.Body.Close() var v map[string]any err = json.NewDecoder(res.Body).Decode(&v) return v, err // poll GET /v1/verify/{id} while v["state"] == "pending" } ``` ```php function verify(string $email): array { $ch = curl_init("https://api.mails.fit/v1/verify"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 30, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("MAILSFIT_KEY"), "Content-Type: application/json", ], CURLOPT_POSTFIELDS => json_encode(["email" => $email, "wait" => 10]), ]); return json_decode(curl_exec($ch), true); // poll GET /v1/verify/{id} while state is pending } ``` ```rust async fn verify(client: &reqwest::Client, key: &str, email: &str) -> reqwest::Result { let mut v: serde_json::Value = client .post("https://api.mails.fit/v1/verify") .bearer_auth(key) .json(&serde_json::json!({ "email": email, "wait": 10 })) .send().await?.json().await?; while v["state"] == "pending" { tokio::time::sleep(std::time::Duration::from_secs(2)).await; let url = format!("https://api.mails.fit/v1/verify/{}", v["id"]); v = client.get(url).bearer_auth(key).send().await?.json().await?; } Ok(v) } ``` ## Batch `POST /v1/verify/batch` with `{"emails": [...], "wait": 25}` verifies 1 to 100 addresses through the same pipeline, one credit each, and waits for them together. It always answers **200** with one item per address, in order: - a verification (same fields as above; `state` may be `pending`, poll its `id`), or - `{"email": "...", "error": {"code": "...", "message": "..."}}` when that address was not charged (for example an empty string). The whole batch is refused with 402 `insufficient_credits` when your balance cannot cover it. With `Idempotency-Key: K`, item `i` uses the key `K:i`, so a retry charges only addresses not sent before (`K` at most 190 characters). For more than 100 addresses, upload a [list](/docs/lists). ```bash curl https://api.mails.fit/v1/verify/batch \ -H "Authorization: Bearer $MAILSFIT_KEY" \ -H "Content-Type: application/json" \ -d '{"emails": ["jane@example.com", "info@example.org"], "wait": 20}' ``` ```javascript const res = await fetch("https://api.mails.fit/v1/verify/batch", { method: "POST", headers: { Authorization: `Bearer ${process.env.MAILSFIT_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ emails: ["jane@example.com", "info@example.org"], wait: 20 }), }); const { results, pending } = await res.json(); for (const r of results) console.log(r.email, r.status ?? r.error?.code); ``` ```python res = requests.post( "https://api.mails.fit/v1/verify/batch", headers={"Authorization": f"Bearer {os.environ['MAILSFIT_KEY']}"}, json={"emails": ["jane@example.com", "info@example.org"], "wait": 20}, timeout=60, ) for r in res.json()["results"]: print(r["email"], r.get("status") or r["error"]["code"]) ``` ```go payload, _ := json.Marshal(map[string]any{ "emails": []string{"jane@example.com", "info@example.org"}, "wait": 20, }) req, _ := http.NewRequest("POST", "https://api.mails.fit/v1/verify/batch", bytes.NewReader(payload)) req.Header.Set("Authorization", "Bearer "+os.Getenv("MAILSFIT_KEY")) req.Header.Set("Content-Type", "application/json") res, err := (&http.Client{Timeout: 60 * time.Second}).Do(req) if err != nil { log.Fatal(err) } defer res.Body.Close() var out struct { Results []map[string]any `json:"results"` Pending int `json:"pending"` } json.NewDecoder(res.Body).Decode(&out) ``` ```php $ch = curl_init("https://api.mails.fit/v1/verify/batch"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 60, CURLOPT_HTTPHEADER => [ "Authorization: Bearer " . getenv("MAILSFIT_KEY"), "Content-Type: application/json", ], CURLOPT_POSTFIELDS => json_encode(["emails" => ["jane@example.com", "info@example.org"], "wait" => 20]), ]); foreach (json_decode(curl_exec($ch), true)["results"] as $r) { echo $r["email"], " ", $r["status"] ?? $r["error"]["code"], "\n"; } ``` ```rust let out: serde_json::Value = reqwest::Client::new() .post("https://api.mails.fit/v1/verify/batch") .bearer_auth(std::env::var("MAILSFIT_KEY")?) .json(&serde_json::json!({ "emails": ["jane@example.com", "info@example.org"], "wait": 20 })) .send() .await? .json() .await?; for r in out["results"].as_array().into_iter().flatten() { println!("{} {}", r["email"], r.get("status").unwrap_or(&r["error"]["code"])); } ``` ```json { "results": [ { "id": 1843, "state": "done", "email": "jane@example.com", "status": "deliverable", "reason": "accepted", "score": 95, "...": "..." }, { "id": 1844, "state": "pending" } ], "pending": 1 } ``` ## Response fields | Field | Type | Meaning | |---|---|---| | `id` | integer | Request id; poll `GET /v1/verify/{id}` | | `state` | `done` or `pending` | `pending` comes with HTTP 202 | | `email` | string | The address as checked | | `status` | string | `deliverable`, `risky`, `undeliverable` or `unknown` | | `reason` | string | Why; see the table below | | `score` | 0–100 | 80–100 send, 50–79 care, 0–49 drop | | `suggestion` / `did_you_mean` | string or null | Typo fix, for example `jane@gmail.com` for `jane@gmial.com` (same value) | | `disposable` | boolean | Throwaway inbox provider | | `free` | boolean | Free mailbox provider (gmail.com, outlook.com, ...) | | `role` | boolean | Role address (info@, sales@, ...) | | `catch_all` | boolean or null | The domain accepts any address; `null` when not tested | | `mx_found` | boolean or null | The domain publishes MX hosts; `null` when DNS was not read | | `mx_group` / `smtp_provider` | string | `google`, `microsoft`, `yahoo`, `mimecast` or `other` (same value) | | `mx_host` | string or null | The MX host that answered | | `smtp_code` | integer or null | SMTP reply code to RCPT TO | | `spam_trap_risk` | array | `typo_domain`, `listed_domain`, `trap_local_part`; omitted when empty. A risk signal, never a verdict | ## Reasons Each `reason` maps to exactly one `status`. | Reason | Status | Meaning | |---|---|---| | `accepted` | deliverable | The mailbox server accepted the recipient | | `invalid_syntax` | undeliverable | Not a valid address | | `no_mx` | undeliverable | The domain has no mail server | | `user_unknown` | undeliverable | The server says the mailbox does not exist | | `mx_not_public` | undeliverable | Every MX address is private or unreachable from the internet | | `catch_all` | risky | The domain accepts any address, so this one cannot be confirmed | | `role` | risky | Accepted, but a shared role mailbox | | `disposable` | risky | Throwaway inbox provider | | `mailbox_full` | risky | The mailbox exists but is full | | `provider_unverifiable` | risky | Microsoft 365 or Yahoo accepted without a clear answer for a random control address | | `greylisted` | unknown | Temporary deferral; try later | | `blocked` | unknown | The server refused our probe, not the mailbox | | `timeout` | unknown | No answer in time | | `dns_error` | unknown | DNS lookup failed temporarily | | `inconclusive` | unknown | A refusal that proves nothing about the mailbox | | `suppressed` | unknown | The domain or address [opted out](/optout); nothing was checked | --- URL: https://mails.fit/docs/lists # Lists Upload a whole list, follow its progress, then download the results. Duplicate addresses are checked and charged once; `unknown` results are refunded. Needs a key with the `lists` scope. ## Upload `POST /v1/lists` takes either: - **multipart** with a `file` part (CSV or XLSX, up to 50 MB and 1,000,000 rows) and optional `name`, `email_column` (header name or 0-based index) and `webhook_url`; or - **JSON**: an array of addresses, or `{"emails": [...], "name": "...", "webhook_url": "https://..."}` (up to 5 MB). It answers **202** with the list. A list may hold up to twice your credit balance in distinct addresses (at least 1,000), and at most 3 lists may be open at once. Processing pauses when credits run out and resumes when you add credits. ```bash curl https://api.mails.fit/v1/lists \ -H "Authorization: Bearer $MAILSFIT_KEY" \ -F file=@contacts.csv \ -F name="March newsletter" \ -F webhook_url=https://example.com/hooks/mailsfit ``` ```javascript import { readFile } from "node:fs/promises"; const form = new FormData(); form.append("file", new Blob([await readFile("contacts.csv")]), "contacts.csv"); form.append("name", "March newsletter"); const res = await fetch("https://api.mails.fit/v1/lists", { method: "POST", headers: { Authorization: `Bearer ${process.env.MAILSFIT_KEY}` }, body: form, }); const list = await res.json(); // { id, status: "ingesting", ... } ``` ```python with open("contacts.csv", "rb") as f: res = requests.post( "https://api.mails.fit/v1/lists", headers={"Authorization": f"Bearer {os.environ['MAILSFIT_KEY']}"}, files={"file": ("contacts.csv", f, "text/csv")}, data={"name": "March newsletter"}, timeout=120, ) list_id = res.json()["id"] ``` ```go var buf bytes.Buffer w := multipart.NewWriter(&buf) part, _ := w.CreateFormFile("file", "contacts.csv") f, err := os.Open("contacts.csv") if err != nil { log.Fatal(err) } io.Copy(part, f) w.WriteField("name", "March newsletter") w.Close() req, _ := http.NewRequest("POST", "https://api.mails.fit/v1/lists", &buf) req.Header.Set("Authorization", "Bearer "+os.Getenv("MAILSFIT_KEY")) req.Header.Set("Content-Type", w.FormDataContentType()) res, err := http.DefaultClient.Do(req) ``` ```php $ch = curl_init("https://api.mails.fit/v1/lists"); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("MAILSFIT_KEY")], CURLOPT_POSTFIELDS => [ "file" => new CURLFile("contacts.csv", "text/csv"), "name" => "March newsletter", ], ]); $list = json_decode(curl_exec($ch), true); ``` ```rust let file = reqwest::multipart::Part::bytes(std::fs::read("contacts.csv")?).file_name("contacts.csv"); let form = reqwest::multipart::Form::new().part("file", file).text("name", "March newsletter"); let list: serde_json::Value = reqwest::Client::new() .post("https://api.mails.fit/v1/lists") .bearer_auth(std::env::var("MAILSFIT_KEY")?) .multipart(form) // reqwest feature "multipart" .send() .await? .json() .await?; ``` ## Progress `GET /v1/lists/{id}` returns `status` (`ingesting`, `processing`, `paused`, `done`, `failed`), `rows`, `unique_emails`, `progress` counts by status and `eta_seconds`. `GET /v1/lists` returns your 100 most recent lists. Poll every few seconds, or pass `webhook_url` and wait for `list.completed` (see [Webhooks](/docs/webhooks)). ```bash curl https://api.mails.fit/v1/lists/77 -H "Authorization: Bearer $MAILSFIT_KEY" ``` ```json { "id": 77, "name": "March newsletter", "status": "processing", "rows": 12000, "unique_emails": 11640, "progress": { "pending": 0, "queued": 5210, "deliverable": 5102, "risky": 911, "undeliverable": 380, "unknown": 37 }, "eta_seconds": 640 } ``` ## Download `GET /v1/lists/{id}/download` streams CSV: your original rows and columns, then `mf_status`, `mf_reason`, `mf_score`, `mf_suggestion`, `mf_disposable`, `mf_free`, `mf_role` and `mf_catch_all`. Filter with `?filter=deliverable` or a comma list such as `?filter=deliverable,risky`. Cells a spreadsheet would run as formulas are prefixed with `'`. Before the list is done the answer is 409. ```bash curl -o clean.csv "https://api.mails.fit/v1/lists/77/download?filter=deliverable" \ -H "Authorization: Bearer $MAILSFIT_KEY" ``` ## Monitoring `PUT /v1/lists/{id}/monitor` re-verifies a finished list every 7 or 30 days and reports changed results (`list.monitor_changed`). See the [API reference](/docs/api) for the body. --- URL: https://mails.fit/docs/tools # Tools Deliverability lookups you can call from code. The DNS tools and the spam-trap checker need no key; the email finder and domain search need a key with the `verify` scope (or a signed-in session). ## Public lookups `GET /v1/tools/{slug}?q=`, where `slug` is one of `mx-lookup`, `dns-lookup`, `spf-checker`, `dkim-checker` (add `&selector=...`), `dmarc-checker`, `blacklist-checker` or `spam-trap-checker`. Limits per client IP: 30 a minute and 300 a day (some tools cost 2–3 units); the spam-trap checker also 5 a minute and 60 a day. The answer is `{"tool": "", "result": {...}}`. ```bash curl "https://api.mails.fit/v1/tools/dmarc-checker?q=example.com" ``` ```javascript const res = await fetch("https://api.mails.fit/v1/tools/mx-lookup?q=example.com"); const { tool, result } = await res.json(); ``` ```python r = requests.get("https://api.mails.fit/v1/tools/spf-checker", params={"q": "example.com"}, timeout=20) print(r.json()["result"]) ``` ```go res, err := http.Get("https://api.mails.fit/v1/tools/blacklist-checker?q=" + url.QueryEscape("example.com")) if err != nil { log.Fatal(err) } defer res.Body.Close() io.Copy(os.Stdout, res.Body) ``` ```php $q = http_build_query(["q" => "example.com"]); $result = json_decode(file_get_contents("https://api.mails.fit/v1/tools/dmarc-checker?$q"), true); ``` ```rust let r: serde_json::Value = reqwest::get("https://api.mails.fit/v1/tools/mx-lookup?q=example.com") .await? .json() .await?; println!("{}", r["result"]); ``` ## Email finder and domain search - `POST /v1/tools/email-finder` with `{"first_name": "Jane", "last_name": "Doe", "domain": "example.com"}` - `POST /v1/tools/domain-search` with `{"domain": "example.com"}` Both answer **202** with `{"id": 12, "status_url": "/v1/tools/runs/12"}`; poll `GET /v1/tools/runs/{id}` for the result. 20 runs per tool per account per rolling 24 hours. Domains that opted out are skipped. ```bash curl https://api.mails.fit/v1/tools/email-finder \ -H "Authorization: Bearer $MAILSFIT_KEY" \ -H "Content-Type: application/json" \ -d '{"first_name": "Jane", "last_name": "Doe", "domain": "example.com"}' ``` > Tool endpoints report errors as `{"error": "message"}` (a plain string), unlike the `/v1/verify` and `/v1/lists` family. See [Errors](/docs/errors). ## Monitoring, enrichment and placement Blacklist monitors (`/v1/monitors`), domain enrichment (`POST /v1/enrich`) and inbox placement tests (`/v1/placement-tests`, in development) are listed in the [API reference](/docs/api). --- URL: https://mails.fit/docs/webhooks # Webhooks mails.fit POSTs JSON to your HTTPS endpoint when something finishes, so you do not have to poll. ## Events | Event | When | Subscribe with | |---|---|---| | `list.completed` | A list finished | `webhook_url` on upload, the account webhook (Dashboard → API keys), or a REST hook | | `verify.completed` | A `/v1/verify` request finished | REST hook (`verify` scope) | | `monitor.changed` | A blacklist monitor found a listing or delisting | Account webhook or REST hook | | `list.monitor_changed` | A monitored list changed on re-verification | Account webhook or REST hook | REST hooks are for Zapier, Make and your own code: `POST /v1/hooks` with `{"target_url": "https://...", "event": "list.completed"}`, and `DELETE /v1/hooks/{id}` to stop. A target that answers `410 Gone` is unsubscribed. At most 25 per account. ```bash curl https://api.mails.fit/v1/hooks \ -H "Authorization: Bearer $MAILSFIT_KEY" \ -H "Content-Type: application/json" \ -d '{"target_url": "https://example.com/hooks/mailsfit", "event": "list.completed"}' ``` ## Delivery - Targets must be public `https` URLs. Redirects are not followed. - Any 2xx acknowledges. Otherwise we retry 3 times (after 2 s, 10 s and 60 s). - `verify.completed` carries the same fields as the [verify response](/docs/verify#response-fields) plus `event`. ## Signatures Every delivery has three headers: - `X-Mailsfit-Event`: the event name - `X-Mailsfit-Timestamp`: unix seconds - `X-Mailsfit-Signature`: `sha256=` + hex HMAC-SHA256 of `"{timestamp}.{raw body}"`, keyed with your signing secret (`whsec_...`, shown under Dashboard → API keys) Verify it on the **raw** body before parsing, compare in constant time, and reject timestamps older than 5 minutes to stop replays. ```javascript import crypto from "node:crypto"; // Express: app.post("/hooks/mailsfit", express.raw({ type: "*/*" }), handler) function verifyMailsfit(rawBody, headers, secret) { const ts = headers["x-mailsfit-timestamp"]; const sig = headers["x-mailsfit-signature"] ?? ""; if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; const expected = "sha256=" + crypto.createHmac("sha256", secret).update(`${ts}.`).update(rawBody).digest("hex"); return sig.length === expected.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected)); } ``` ```python import hashlib, hmac, time def verify_mailsfit(raw_body: bytes, headers, secret: str) -> bool: ts = headers.get("X-Mailsfit-Timestamp", "") sig = headers.get("X-Mailsfit-Signature", "") if not ts.isdigit() or abs(time.time() - int(ts)) > 300: return False mac = hmac.new(secret.encode(), f"{ts}.".encode() + raw_body, hashlib.sha256) return hmac.compare_digest(sig, "sha256=" + mac.hexdigest()) ``` ```go func verifyMailsfit(rawBody []byte, h http.Header, secret string) bool { ts := h.Get("X-Mailsfit-Timestamp") sec, err := strconv.ParseInt(ts, 10, 64) if err != nil || math.Abs(float64(time.Now().Unix()-sec)) > 300 { return false } mac := hmac.New(sha256.New, []byte(secret)) mac.Write([]byte(ts + ".")) mac.Write(rawBody) expected := "sha256=" + hex.EncodeToString(mac.Sum(nil)) return hmac.Equal([]byte(h.Get("X-Mailsfit-Signature")), []byte(expected)) } ``` ```php function verify_mailsfit(string $rawBody, string $ts, string $sig, string $secret): bool { if (!ctype_digit($ts) || abs(time() - (int) $ts) > 300) { return false; } $expected = "sha256=" . hash_hmac("sha256", $ts . "." . $rawBody, $secret); return hash_equals($expected, $sig); } // $ok = verify_mailsfit(file_get_contents("php://input"), // $_SERVER["HTTP_X_MAILSFIT_TIMESTAMP"] ?? "", $_SERVER["HTTP_X_MAILSFIT_SIGNATURE"] ?? "", $secret); ``` ```rust use hmac::{Hmac, Mac}; use sha2::Sha256; fn verify_mailsfit(raw_body: &[u8], ts: &str, sig: &str, secret: &str, now: u64) -> bool { let Ok(sent) = ts.parse::() else { return false }; if now.abs_diff(sent) > 300 { return false; } let Some(hex_sig) = sig.strip_prefix("sha256=") else { return false }; let Ok(sig_bytes) = hex::decode(hex_sig) else { return false }; let mut mac = Hmac::::new_from_slice(secret.as_bytes()).expect("any key length"); mac.update(ts.as_bytes()); mac.update(b"."); mac.update(raw_body); mac.verify_slice(&sig_bytes).is_ok() // constant time } ``` ```bash # Check a captured delivery by hand printf '%s.%s' "$TS" "$(cat body.json)" | openssl dgst -sha256 -hmac "$WHSEC" | sed 's/^.* /sha256=/' ``` --- URL: https://mails.fit/docs/errors # Errors Errors use HTTP status codes and a JSON body with a stable machine-readable `code` and a human `message` (the message may change; match on `code`): ```json { "error": { "code": "insufficient_credits", "message": "Your credit balance is 0. Add credits in the dashboard to keep verifying." } } ``` ## Status codes | Status | Code | What to do | |---|---|---| | 200 | | Done | | 202 | | Accepted: still checking (`state: "pending"`) or processing in the background; poll | | 401 | `unauthorized` | Send `Authorization: Bearer mf_live_...` with a live key | | 402 | `insufficient_credits` | Add credits; nothing was charged | | 403 | `missing_scope` | Use a key with the needed scope | | 403 | `email_not_verified` | Confirm the account email address | | 403 | `ip_not_allowed` | Call from an address in the key's IP allowlist, or edit the list in the dashboard | | 404 | `not_found` | Wrong id, or it belongs to another account | | 409 | | The list is not finished yet (download) | | 413 | `too_large` | Body or file over the limit; upload a file or split it | | 415 | `unsupported_media_type` | Send JSON or multipart as documented | | 422 | `invalid_request` | Fix the request; the message says what is wrong | | 429 | `rate_limited`, `limit_reached`, `too_many_open_lists` | Wait `Retry-After` seconds (when sent) and retry | | 500 | `internal` | Retry with backoff; safe with an `Idempotency-Key` | | 503 | `busy`, `not_configured` | Temporarily unavailable; retry later | Other endpoint-specific codes (for example `already_monitored`, `monitor_limit`, `too_many_hooks`) are listed per endpoint in the [API reference](/docs/api). ## Retries - Retry 429, 500, 502, 503 and 504 with exponential backoff, honouring `Retry-After`. - Send an `Idempotency-Key` on `POST /v1/verify` and `/v1/verify/batch` so a retry never charges twice. - Do not retry 4xx errors other than 429 without changing the request. ## Tools endpoints `/v1/tools/*` answer errors as `{"error": "message"}` with the same status codes (429 also carries `retry_after` in the body). ## Handling errors in code ```bash curl -sS -w '\nHTTP %{http_code}\n' https://api.mails.fit/v1/verify \ -H "Authorization: Bearer $MAILSFIT_KEY" \ -H "Content-Type: application/json" \ -d '{"email": "jane@example.com"}' ``` ```javascript const res = await fetch("https://api.mails.fit/v1/verify", { method: "POST", headers, body }); if (!res.ok && res.status !== 202) { const { error } = await res.json(); if (res.status === 429) await sleep(Number(res.headers.get("Retry-After") ?? 1) * 1000); throw new Error(`${res.status} ${error.code}: ${error.message}`); } ``` ```python res = requests.post(url, headers=headers, json=body, timeout=30) if res.status_code == 429: time.sleep(int(res.headers.get("Retry-After", "1"))) elif res.status_code >= 400: err = res.json()["error"] raise RuntimeError(f"{res.status_code} {err['code']}: {err['message']}") ``` ```go if res.StatusCode >= 400 { var e struct { Error struct{ Code, Message string } `json:"error"` } json.NewDecoder(res.Body).Decode(&e) return fmt.Errorf("%d %s: %s", res.StatusCode, e.Error.Code, e.Error.Message) } ``` ```php $status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE); if ($status >= 400) { $err = json_decode($body, true)["error"]; throw new RuntimeException("$status {$err['code']}: {$err['message']}"); } ``` ```rust let res = client.post(url).bearer_auth(&key).json(&body).send().await?; if res.status().is_client_error() || res.status().is_server_error() { let status = res.status(); let err: serde_json::Value = res.json().await?; anyhow::bail!("{status} {}: {}", err["error"]["code"], err["error"]["message"]); } ``` --- URL: https://mails.fit/docs/rate-limits # Rate limits and credits ## Rate limits Each API key allows bursts of **20 requests**, refilled at **10 per second**. Over that you get 429 `rate_limited` with a `Retry-After` header. Every `/v1` response authenticated with a key carries: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Bucket size (20) | | `X-RateLimit-Remaining` | Requests you can send right now | | `X-RateLimit-Reset` | Seconds until the bucket is full again | | `X-Credits-Remaining` | Your credit balance after this request | Other limits: - At most 5 `/v1/verify` or `/v1/verify/batch` requests per account and per client IP wait for a probe at once; beyond that a request answers at once with `state: "pending"`. - Batch: 100 addresses per call. Lists: 1,000,000 rows, 50 MB, 3 open lists. - Public tools: 30 a minute and 300 a day per client IP. Email finder and domain search: 20 runs per tool per day. - Failed authentication: limited per client IP. ```bash curl -sI https://api.mails.fit/v1/credits -H "Authorization: Bearer $MAILSFIT_KEY" | grep -i '^x-' ``` ## Credits - 1 credit = 1 address checked. New accounts get 100 free credits. - `unknown` results are refunded automatically. - Duplicates inside a list are removed before you are charged. - A request with an `Idempotency-Key` you already used is not charged again. - Pack credits never expire; monthly plan credits reset at each renewal. See [pricing](/pricing). - Public tools are free. `GET /v1/credits` returns `{"balance": n}`. --- URL: https://mails.fit/docs/mcp # MCP Use mails.fit from Claude, Cursor or any [Model Context Protocol](https://modelcontextprotocol.io) client. The hosted server is `https://mcp.mails.fit/mcp` (Streamable HTTP, stateless). It uses your API key, so the same scopes, credits and rate limits apply as for the API. ## Claude in one line ```bash claude mcp add --transport http mailsfit https://mcp.mails.fit/mcp \ --header "Authorization: Bearer $MAILSFIT_KEY" ``` Then ask: *"Verify jane@example.com with mails.fit"* or *"Check the DMARC record of example.com"*. ## Other clients ```json { "mcpServers": { "mailsfit": { "url": "https://mcp.mails.fit/mcp", "headers": { "Authorization": "Bearer mf_live_..." } } } } ``` That is the Cursor config (`~/.cursor/mcp.json`); most HTTP-capable clients use the same shape. Clients that only speak stdio (such as Claude Desktop) can bridge with `mcp-remote`: ```json { "mcpServers": { "mailsfit": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.mails.fit/mcp", "--header", "Authorization:${AUTH_HEADER}"], "env": { "AUTH_HEADER": "Bearer mf_live_..." } } } } ``` A local stdio binary, `mailsfit-mcp`, is also available from the source repository (`MAILSFIT_API_KEY` in its environment). ## Tools | Tool | What it does | Scope | |---|---|---| | `verify_email` | Verify one address | `verify` | | `verify_list` | Verify up to 500 addresses as a list | `lists` | | `get_list_result` | Progress and results of a list | `lists` | | `check_domain_dns` | MX, SPF, DMARC and DNS records of a domain | none | | `check_blacklist` | An IP or domain on public blocklists | none | | `find_email` | Find a person's address at a domain | `verify` | ## Safety - Give each agent its own key, verify-only unless it needs lists. Revoking the key stops it at once. - Text that comes from third parties (DNS records, web pages, blocklist answers, list names) is returned in an `untrusted_data` field, so the agent can tell data from instructions. - `verify_list` is capped at 500 addresses per call, so an agent steered by text it read cannot spend more than that per call. ## Docs for agents Point your agent at [/llms.txt](/llms.txt) (index) or [/llms-full.txt](/llms-full.txt) (all docs in one file). Every docs page is also Markdown at the same URL plus `.md`. --- URL: https://mails.fit/docs/widget # Widget Check addresses in your signup form as visitors type: typos, dead domains and throwaway inboxes are caught before they become accounts. ## Install 1. In **Dashboard → Integrations**, create a publishable key (`mf_pub_...`) and list the exact origins of your site (for example `https://example.com`). 2. Add the script and mark the field: ```html ``` The widget checks on blur, or 800 ms after typing stops, shows a message (and a typo suggestion) under the field, and blocks the form with `setCustomValidity` for the statuses in `data-mailsfit-block` (`invalid` by default, `invalid,risky`, or `none`). Network errors and refusals never block the form. ## Events ```javascript document.querySelector("input[data-mailsfit]").addEventListener("mailsfit:result", (e) => { console.log(e.detail); // { email, status: "ok" | "risky" | "invalid" | "unavailable", suggestion } }); ``` ## Cost and limits - One credit per check from the key owner's balance; `unknown` results are refunded. - A daily cap per key (default 500, 1 to 50,000, set in the dashboard); past it the answer is `unavailable`. - 30 checks a minute per key, 10 per key and visitor IP. - The publishable key and allowed origin are public, so the caps bound what a copied key can spend. It grants nothing else. ## Endpoint The script calls `POST /v1/widget/check?key=mf_pub_...` with `{"email": "..."}` and gets `{"status": "ok" | "risky" | "invalid" | "unavailable", "suggestion": null}`. Server-side code should use [`/v1/verify`](/docs/verify) with a secret key instead. --- URL: https://mails.fit/docs/sdks # SDK snippets There is no package to install: the API is small enough that a dozen lines cover it. Copy the client for your language, or generate one from the [OpenAPI spec](/v1/openapi.json) with any OpenAPI generator. Each snippet reads the key from `MAILSFIT_KEY`, verifies one address, verifies a batch and reads the balance. ```javascript // mailsfit.mjs (Node 18+, Deno, Bun, browsers server-side only) const API = "https://api.mails.fit/v1"; export function mailsfit(key = process.env.MAILSFIT_KEY) { async function call(method, path, body) { const res = await fetch(API + path, { method, headers: { Authorization: `Bearer ${key}`, "Content-Type": "application/json" }, body: body && JSON.stringify(body), }); const data = await res.json(); if (!res.ok && res.status !== 202) throw new Error(`${res.status} ${data.error?.code ?? data.error}`); return data; } return { verify: (email, wait = 25) => call("POST", "/verify", { email, wait }), verifyBatch: (emails, wait = 25) => call("POST", "/verify/batch", { emails, wait }), result: (id) => call("GET", `/verify/${id}`), credits: () => call("GET", "/credits"), }; } ``` ```python # mailsfit.py (requests) import os import requests class Mailsfit: def __init__(self, key=None, base="https://api.mails.fit/v1"): self.base = base self.s = requests.Session() self.s.headers["Authorization"] = f"Bearer {key or os.environ['MAILSFIT_KEY']}" def _call(self, method, path, **kw): r = self.s.request(method, self.base + path, timeout=60, **kw) if r.status_code >= 400: raise RuntimeError(f"{r.status_code} {r.text}") return r.json() def verify(self, email, wait=25): return self._call("POST", "/verify", json={"email": email, "wait": wait}) def verify_batch(self, emails, wait=25): return self._call("POST", "/verify/batch", json={"emails": emails, "wait": wait}) def result(self, id): return self._call("GET", f"/verify/{id}") def credits(self): return self._call("GET", "/credits")["balance"] ``` ```go // Package mailsfit is a minimal client for the mails.fit API. package mailsfit import ( "bytes" "encoding/json" "fmt" "net/http" "os" "time" ) type Client struct { Key string Base string HTTP *http.Client } func New() *Client { return &Client{Key: os.Getenv("MAILSFIT_KEY"), Base: "https://api.mails.fit/v1", HTTP: &http.Client{Timeout: 60 * time.Second}} } func (c *Client) call(method, path string, in, out any) error { var body bytes.Buffer if in != nil { if err := json.NewEncoder(&body).Encode(in); err != nil { return err } } req, err := http.NewRequest(method, c.Base+path, &body) if err != nil { return err } req.Header.Set("Authorization", "Bearer "+c.Key) req.Header.Set("Content-Type", "application/json") res, err := c.HTTP.Do(req) if err != nil { return err } defer res.Body.Close() if res.StatusCode >= 400 { return fmt.Errorf("mails.fit: HTTP %d", res.StatusCode) } return json.NewDecoder(res.Body).Decode(out) } func (c *Client) Verify(email string) (map[string]any, error) { var v map[string]any return v, c.call("POST", "/verify", map[string]any{"email": email}, &v) } func (c *Client) VerifyBatch(emails []string) (map[string]any, error) { var v map[string]any return v, c.call("POST", "/verify/batch", map[string]any{"emails": emails}, &v) } ``` ```php key = $key ?: (string) getenv("MAILSFIT_KEY"); } private function call(string $method, string $path, ?array $body = null): array { $ch = curl_init($this->base . $path); curl_setopt_array($ch, [ CURLOPT_CUSTOMREQUEST => $method, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 60, CURLOPT_HTTPHEADER => ["Authorization: Bearer {$this->key}", "Content-Type: application/json"], CURLOPT_POSTFIELDS => $body === null ? null : json_encode($body), ]); $raw = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE); if ($raw === false || $status >= 400) { throw new RuntimeException("mails.fit: HTTP $status"); } return json_decode($raw, true); } public function verify(string $email): array { return $this->call("POST", "/verify", ["email" => $email]); } public function verifyBatch(array $emails): array { return $this->call("POST", "/verify/batch", ["emails" => $emails]); } public function credits(): int { return $this->call("GET", "/credits")["balance"]; } } ``` ```rust // Cargo.toml: reqwest = { version = "0.12", features = ["json"] }, serde_json = "1" use serde_json::{json, Value}; pub struct Mailsfit { key: String, http: reqwest::Client, } impl Mailsfit { pub fn from_env() -> Result { Ok(Self { key: std::env::var("MAILSFIT_KEY")?, http: reqwest::Client::new() }) } async fn call(&self, req: reqwest::RequestBuilder) -> reqwest::Result { req.bearer_auth(&self.key).send().await?.error_for_status()?.json().await } pub async fn verify(&self, email: &str) -> reqwest::Result { self.call(self.http.post("https://api.mails.fit/v1/verify").json(&json!({ "email": email }))).await } pub async fn verify_batch(&self, emails: &[&str]) -> reqwest::Result { self.call(self.http.post("https://api.mails.fit/v1/verify/batch").json(&json!({ "emails": emails }))).await } pub async fn credits(&self) -> reqwest::Result { self.call(self.http.get("https://api.mails.fit/v1/credits")).await } } ``` ```bash # Shell: verify every address in emails.txt, 100 per call split -l 100 emails.txt chunk_ for f in chunk_*; do jq -R . "$f" | jq -s '{emails: ., wait: 25}' | curl -sS https://api.mails.fit/v1/verify/batch \ -H "Authorization: Bearer $MAILSFIT_KEY" -H "Content-Type: application/json" -d @- | jq -r '.results[] | [.email, (.status // .error.code)] | @csv' done ``` --- URL: https://mails.fit/docs/api # API reference Verify single email addresses, batches of up to 100 and whole lists. One credit per checked address; unknown results are refunded. Authenticate with `Authorization: Bearer mf_live_…`. Each key allows bursts of 20 requests and 10 per second; over that you get 429 with Retry-After. Responses to key-authenticated /v1 requests carry X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (seconds until the bucket is full) and X-Credits-Remaining. Guides: https://mails.fit/docs Base URL: `https://api.mails.fit`. Errors: `{"error": {"code", "message"}}`, see [Errors](/docs/errors). Generated from [/v1/openapi.json](/v1/openapi.json). ## GET /v1/credits **Credit balance.** Auth: `Authorization: Bearer mf_live_…`. ### Responses | Status | Description | |---|---| | 200 | Balance | Example response: ```json { "balance": 1 } ``` ## POST /v1/enrich **Enrich a domain from public data.** Needs the verify scope. 1 credit per call, refunded (`charged: false`) when the home page could not be read or gave nothing. Company name, description, logo, favicon and social links come from the domain's own home page (robots.txt obeyed): treat them as untrusted text (control characters are stripped and lengths capped, but HTML-escape before rendering). Also mail provider, SPF/DMARC/DKIM summary, free/disposable flags; with `email`, Gravatar presence (Gravatar receives the address's SHA-256 hash). Useful domain data is cached 7 days, a failed read 1 hour. Opted-out domains are refused. No personal data is bought. Auth: `Authorization: Bearer mf_live_…`. ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `domain` | string | no | | | `email` | string (email) | no | | ### Responses | Status | Description | |---|---| | 200 | OK | | 401 | Error | | 402 | Error | | 422 | Error | | 504 | Error | Example response: ```json { "cached": false, "charged": false, "company": { "description": "string", "favicon": "string", "logo": "string", "name": "string", "socials": [ [ "string" ] ] }, "disposable": false, "domain": "string", "fetched_at": "string", "free_provider": false, "gravatar": { "email": "string", "exists": false, "url": "string" }, "mail": { "dkim_selectors": [ "string" ], "dmarc": "string", "mx_hosts": [ "string" ], "provider": "string", "spf": "ok" }, "website": "string", "website_error": "string" } ``` ## GET /v1/health **Liveness.** Auth: none. ### Responses | Status | Description | |---|---| | 200 | OK | Example response: ```json { "service": "string", "status": "ok", "version": "string" } ``` ## POST /v1/hooks **Subscribe a REST hook.** For Zapier, Make and similar tools. `list.completed` and `list.monitor_changed` need the lists scope, `verify.completed` and `monitor.changed` the verify scope (it fires for /v1/verify requests). Deliveries are signed like the webhooks below; a target answering 410 Gone is unsubscribed. Targets must be public https URLs. At most 25 per account; deleted when the key that created them is revoked, which also stops their pending retries. Auth: `Authorization: Bearer mf_live_…`. ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `event` | one of: list.completed, verify.completed, list.monitor_changed, monitor.changed | yes | | | `target_url` | string (uri) | yes | | ### Responses | Status | Description | |---|---| | 201 | Subscribed | | 401 | Error | | 403 | Error | | 422 | Error | Example response: ```json { "event": "string", "id": 1, "target_url": "string" } ``` ## DELETE /v1/hooks/{id} **Unsubscribe a REST hook.** Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 204 | Deleted | | 404 | Error | ## GET /v1/lists **Your 100 most recent lists.** Auth: `Authorization: Bearer mf_live_…`. ### Responses | Status | Description | |---|---| | 200 | Lists | Example response: ```json { "lists": [ { "created_at": "2026-12-05T09:30:00Z", "finished_at": "2026-12-05T09:30:00Z", "id": 1, "name": "string", "rows": 1, "status": "ingesting", "unique_emails": 1 } ] } ``` ## POST /v1/lists **Upload a list.** Multipart with a `file` part (CSV or XLSX, up to 50 MB and 1,000,000 rows) and optional `name`, `email_column` (header name or 0-based index) and `webhook_url`; or JSON: an array of addresses or `{"emails": [...], "name": ..., "webhook_url": ...}`. JSON bodies are capped at 5 MB; send bigger lists as a file. A list may hold up to twice your credit balance in distinct addresses (at least 1,000), and at most 3 of your lists may be open (not done or failed) at once (429 `too_many_open_lists`). Distinct addresses are checked and charged once. Processing pauses when credits run out and resumes when you add credits. Auth: `Authorization: Bearer mf_live_…`. ### Request body (application/json) Form 1: array of string Type: array of string Form 2: object | Field | Type | Required | Description | |---|---|---|---| | `emails` | array of string | yes | | | `name` | string | no | | | `webhook_url` | string (uri) | no | | ### Request body (multipart/form-data) | Field | Type | Required | Description | |---|---|---|---| | `email_column` | string | no | | | `file` | string | yes | | | `name` | string | no | | | `webhook_url` | string (uri) | no | | ### Responses | Status | Description | |---|---| | 202 | Accepted; processing in the background | | 402 | Error | | 413 | Error | | 415 | Error | | 422 | Error | Example response: ```json { "created_at": "2026-12-05T09:30:00Z", "error": "string", "eta_seconds": 1, "finished_at": "2026-12-05T09:30:00Z", "id": 1, "name": "string", "pause_reason": "string", "progress": { "deliverable": 1, "pending": 1, "queued": 1, "risky": 1, "undeliverable": 1, "unknown": 1 }, "rows": 1, "status": "ingesting", "unique_emails": 1 } ``` ## GET /v1/lists/{id} **Progress of a list.** Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | List | | 404 | Error | Example response: ```json { "created_at": "2026-12-05T09:30:00Z", "error": "string", "eta_seconds": 1, "finished_at": "2026-12-05T09:30:00Z", "id": 1, "name": "string", "pause_reason": "string", "progress": { "deliverable": 1, "pending": 1, "queued": 1, "risky": 1, "undeliverable": 1, "unknown": 1 }, "rows": 1, "status": "ingesting", "unique_emails": 1 } ``` ## GET /v1/lists/{id}/download **Results as CSV.** Your original rows and columns, followed by mf_status, mf_reason, mf_score, mf_suggestion, mf_disposable, mf_free, mf_role, and mf_catch_all. Cells a spreadsheet would run as formulas start with '. Streamed. Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | | `filter` | query | string | no | `all` (default) or a comma list of deliverable, risky, undeliverable, unknown | ### Responses | Status | Description | |---|---| | 200 | CSV | | 404 | Error | | 409 | Error | | 422 | Error | ## GET /v1/lists/{id}/monitor **List monitoring state and run history.** Needs the lists scope. Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | OK | | 404 | Error | Example response: ```json { "monitor": {}, "runs": [ { "changed": 1, "checked": 1, "finished_at": "string", "id": 1, "newly_undeliverable": 1, "note": "string", "probed": 1, "reused": 1, "started_at": "string", "status": "running", "unpaid": 1 } ] } ``` ## PUT /v1/lists/{id}/monitor **Re-verify a finished list every 7 or 30 days.** Results younger than the interval are reused; the rest are probed again. One credit per address whose status changed; unchanged and unknown re-checks are free. Changes beyond the balance are not applied (newly undeliverable first) and counted as `unpaid`. A run needs a positive balance, else it is recorded as skipped. Changes mail the owner and fire `list.monitor_changed`. Monitored lists are kept past the 30-day retention. Lists up to 100,000 addresses; monitored lists per account capped per plan. Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `interval_days` | one of: 7, 30 | yes | | ### Responses | Status | Description | |---|---| | 200 | OK | | 404 | Error | | 422 | Error | Example response: ```json { "monitor": {} } ``` ## DELETE /v1/lists/{id}/monitor **Stop monitoring the list.** Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 204 | Stopped | | 404 | Error | ## GET /v1/monitors **List blacklist monitors.** Needs the verify scope. Checks run every 6 hours and cost no credits; the number of monitors is capped per plan (`limit`). Auth: `Authorization: Bearer mf_live_…`. ### Responses | Status | Description | |---|---| | 200 | OK | | 401 | Error | Example response: ```json { "data": [ { "created_at": "2026-12-05T09:30:00Z", "id": 1, "kind": "ip", "last_checked_at": "2026-12-05T09:30:00Z", "listed": [ { "delist": "https://example.com/hooks/mailsfit", "subject": "string", "zone": "string" } ], "next_check_at": "2026-12-05T09:30:00Z", "target": "string", "verified": false, "verify_record": "string" } ], "interval_hours": 1, "limit": 1 } ``` ## POST /v1/monitors **Monitor an IP or domain on public blocklists.** Needs a confirmed email address. The first check runs within a minute. On the Free plan a domain is checked only after its owner publishes the TXT record in `verify_record` and calls POST /v1/monitors/{id}/verify; IPs and paid-plan domains need no proof. A listing or delisting mails the account owner and fires `monitor.changed`. Lists that refuse or do not answer keep their previous state. Spamhaus is queried over DQS when the operator configured a key. Auth: `Authorization: Bearer mf_live_…`. ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `target` | string | yes | Public IPv4/IPv6 address or domain | ### Responses | Status | Description | |---|---| | 201 | Created | | 401 | Error | | 403 | Error | | 409 | Error | | 422 | Error | Example response: ```json { "created_at": "2026-12-05T09:30:00Z", "id": 1, "kind": "ip", "last_checked_at": "2026-12-05T09:30:00Z", "listed": [ { "delist": "https://example.com/hooks/mailsfit", "subject": "string", "zone": "string" } ], "next_check_at": "2026-12-05T09:30:00Z", "target": "string", "verified": false, "verify_record": "string" } ``` ## GET /v1/monitors/{id} **A monitor and its last 50 checks.** Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | OK | | 404 | Error | Example response: ```json { "checks": [ { "added": [ "string" ], "checked_at": "string", "listed": [ "string" ], "removed": [ "string" ], "unanswered": 1 } ], "monitor": { "created_at": "2026-12-05T09:30:00Z", "id": 1, "kind": "ip", "last_checked_at": "2026-12-05T09:30:00Z", "listed": [ { "delist": "https://example.com/hooks/mailsfit", "subject": "string", "zone": "string" } ], "next_check_at": "2026-12-05T09:30:00Z", "target": "string", "verified": false, "verify_record": "string" } } ``` ## DELETE /v1/monitors/{id} **Stop monitoring.** Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 204 | Deleted | | 404 | Error | ## POST /v1/monitors/{id}/verify **Prove ownership of a monitored domain.** Looks up the domain's TXT records for the monitor's `verify_record`; on success the monitor is verified and checked at once. Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | Verified | | 404 | Error | | 422 | Error | Example response: ```json { "created_at": "2026-12-05T09:30:00Z", "id": 1, "kind": "ip", "last_checked_at": "2026-12-05T09:30:00Z", "listed": [ { "delist": "https://example.com/hooks/mailsfit", "subject": "string", "zone": "string" } ], "next_check_at": "2026-12-05T09:30:00Z", "target": "string", "verified": false, "verify_record": "string" } ``` ## GET /v1/openapi.json **This OpenAPI document.** Auth: none. ### Responses | Status | Description | |---|---| | 200 | OpenAPI 3.1 JSON | Example response: ```json {} ``` ## GET /v1/placement-tests **Your inbox placement tests.** Auth: `Authorization: Bearer mf_live_…`. ### Responses | Status | Description | |---|---| | 200 | OK | | 401 | Error | Example response: ```json { "data": [ { "created_at": "string", "expires_at": "string", "id": 1, "score": 1, "seeds": [ { "address": "string", "dkim": "string", "dmarc": "string", "folder": "inbox", "found_at": "string", "name": "string", "provider": "string", "spf": "string" } ], "sent_at": "string", "status": "waiting", "token": "string" } ] } ``` ## POST /v1/placement-tests **Start an inbox placement test.** Needs the verify scope. Free, 10 per 24 hours and 3 open at once. Send your message with `token` to every seed address, then call POST /v1/placement-tests/{id}/sent: the seeds are searched for 30 minutes from then. Tests never confirmed close after 24 hours without a score. 503 `not_configured` while no seed mailboxes are set up, 503 `busy` at capacity. Auth: `Authorization: Bearer mf_live_…`. ### Responses | Status | Description | |---|---| | 201 | Created | | 401 | Error | | 429 | Error | | 503 | Error | Example response: ```json { "created_at": "string", "expires_at": "string", "id": 1, "score": 1, "seeds": [ { "address": "string", "dkim": "string", "dmarc": "string", "folder": "inbox", "found_at": "string", "name": "string", "provider": "string", "spf": "string" } ], "sent_at": "string", "status": "waiting", "token": "string" } ``` ## GET /v1/placement-tests/{id} **A placement test report.** Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | OK | | 404 | Error | Example response: ```json { "created_at": "string", "expires_at": "string", "id": 1, "score": 1, "seeds": [ { "address": "string", "dkim": "string", "dmarc": "string", "folder": "inbox", "found_at": "string", "name": "string", "provider": "string", "spf": "string" } ], "sent_at": "string", "status": "waiting", "token": "string" } ``` ## POST /v1/placement-tests/{id}/sent **Confirm the test message was sent.** Starts the 30-minute search window. Idempotent. At most 20 tests are searched at once across all accounts (503 `busy`, retry later). Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | Window started | | 404 | Error | | 422 | Error | | 503 | Error | Example response: ```json { "created_at": "string", "expires_at": "string", "id": 1, "score": 1, "seeds": [ { "address": "string", "dkim": "string", "dmarc": "string", "folder": "inbox", "found_at": "string", "name": "string", "provider": "string", "spf": "string" } ], "sent_at": "string", "status": "waiting", "token": "string" } ``` ## POST /v1/tools/domain-search **Find public addresses on a domain.** Crawls the domain's public pages and verifies up to 10 addresses found. Same access and limits as the email finder. Auth: `Authorization: Bearer mf_live_…`. ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `domain` | string | yes | | ### Responses | Status | Description | |---|---| | 202 | Started | | 401 | No key or session | | 403 | Missing verify scope or unconfirmed email | | 422 | Invalid input | | 429 | Daily runs used up or rate limited | | 503 | Busy; not counted | Example response: ```json { "id": 1, "status_url": "/v1/tools/runs/12" } ``` ## POST /v1/tools/email-finder **Find a person's address at a domain.** API key with the verify scope (or a signed-in session). 20 runs per tool per rolling 24 hours. Poll the returned status_url. Errors are `{"error": "message"}`. Auth: `Authorization: Bearer mf_live_…`. ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `domain` | string | yes | | | `first_name` | string | yes | | | `last_name` | string | yes | | ### Responses | Status | Description | |---|---| | 202 | Started | | 401 | No key or session | | 403 | Missing verify scope or unconfirmed email | | 422 | Invalid input | | 429 | Daily runs used up or rate limited | | 503 | Busy; not counted | Example response: ```json { "id": 1, "status_url": "/v1/tools/runs/12" } ``` ## GET /v1/tools/runs/{id} **A finder or domain-search run.** The run and its results; poll while results are pending. Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | Run | | 401 | No key or session | | 404 | No such run | Example response: ```json {} ``` ## GET /v1/tools/spam-trap-checker **Spam-trap risk of an address or domain.** No API key needed; rate-limited per client IP. Signals: recently registered domain (RDAP, < 90 days), typo of a big provider, parked domain, no mail server, reserved or published trap domain, complaint mailboxes. A risk indicator, never a verdict. Auth: none. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `q` | query | string | yes | | ### Responses | Status | Description | |---|---| | 200 | OK | | 422 | Invalid input | | 429 | Rate limited | Example response: ```json { "result": { "mx": [ "string" ], "ns": [ "string" ], "registered": "string", "registered_days": 1, "risk": "none", "signals": [ { "code": "string", "detail": "string", "risk": "string" } ] }, "tool": "spam-trap-checker" } ``` ## GET /v1/tools/{slug} **Run a public DNS or deliverability tool.** No API key needed; limited per client IP (30 units a minute, 300 a day; dns-lookup and spf-checker cost 2, blacklist-checker and spam-trap-checker 3). Errors are `{"error": "message"}`; 429 adds `retry_after`. Auth: none. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `slug` | path | one of: mx-lookup, dns-lookup, spf-checker, dkim-checker, dmarc-checker, blacklist-checker, spam-trap-checker | yes | | | `q` | query | string | yes | Domain, address or IP | | `selector` | query | string | no | DKIM selector (dkim-checker) | ### Responses | Status | Description | |---|---| | 200 | Result | | 404 | Unknown tool | | 422 | Invalid input | | 429 | Rate limited | Example response: ```json { "result": {}, "tool": "string" } ``` ## POST /v1/verify **Verify one address.** Answers from the 30-day result cache when possible (still one credit). Otherwise waits up to `wait` seconds (0–25, default 25) for the probe; if it has not finished, answers 202 with an id to poll. Send `Idempotency-Key` to make retries charge once. At most 5 requests per account and per client IP wait at once; beyond that a request answers 202 at once. Needs a confirmed email address (403 `email_not_verified`). Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `Idempotency-Key` | header | string | no | | ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `email` | string | yes | | | `wait` | integer | no | | ### Responses | Status | Description | |---|---| | 200 | Finished | | 202 | Still checking; poll GET /v1/verify/{id} | | 401 | Error | | 402 | Error | | 403 | Error | | 422 | Error | | 429 | Error | Example response: ```json { "catch_all": false, "did_you_mean": null, "disposable": false, "email": "jane@example.com", "free": false, "id": 1842, "mx_found": true, "mx_group": "other", "mx_host": "mx.example.com", "reason": "accepted", "role": false, "score": 95, "smtp_code": 250, "smtp_provider": "other", "state": "done", "status": "deliverable", "suggestion": null } ``` ## POST /v1/verify/batch **Verify up to 100 addresses.** Runs each address through the same path as POST /v1/verify (one credit each, cache, refunds) and waits up to `wait` seconds for them together. Always 200 with one item per address, in order: a Verification (poll pending ids at GET /v1/verify/{id}) or `{email, error: {code, message}}` when that address was not charged. Refused as a whole with 402 when the balance cannot cover it. With `Idempotency-Key: K` (at most 190 characters) item i uses the key `K:i`, so retries charge only new items. Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `Idempotency-Key` | header | string | no | | ### Request body (application/json) | Field | Type | Required | Description | |---|---|---|---| | `emails` | array of string | yes | | | `wait` | integer | no | | ### Responses | Status | Description | |---|---| | 200 | One result per address | | 401 | Error | | 402 | Error | | 403 | Error | | 422 | Error | | 429 | Error | Example response: ```json { "pending": 1, "results": [ { "catch_all": false, "did_you_mean": null, "disposable": false, "email": "jane@example.com", "free": false, "id": 1842, "mx_found": true, "mx_group": "other", "mx_host": "mx.example.com", "reason": "accepted", "role": false, "score": 95, "smtp_code": 250, "smtp_provider": "other", "state": "done", "status": "deliverable", "suggestion": null } ] } ``` ## GET /v1/verify/{id} **Result of an earlier verification.** Auth: `Authorization: Bearer mf_live_…`. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `id` | path | integer | yes | | ### Responses | Status | Description | |---|---| | 200 | Finished | | 202 | Still checking | | 404 | Error | Example response: ```json { "catch_all": false, "did_you_mean": null, "disposable": false, "email": "jane@example.com", "free": false, "id": 1842, "mx_found": true, "mx_group": "other", "mx_host": "mx.example.com", "reason": "accepted", "role": false, "score": 95, "smtp_code": 250, "smtp_provider": "other", "state": "done", "status": "deliverable", "suggestion": null } ``` ## POST /v1/widget/check **Signup form widget check.** Called by /widget.js from a customer's page. Authenticated by a publishable key (`mf_pub_…`) in the query string; the Origin header must be one of the key's allowed origins, and CORS headers are sent only for those. The body is JSON (any content type; the widget sends text/plain to skip the preflight). Charges the key owner one credit (unknown results refunded). Limits: the key's daily cap (default 500, set in the dashboard; past it the answer is `unavailable`), 30 a minute per key, 10 a minute per key and client IP, 20 a minute per client IP. Errors about the owner's account or the server are one generic 503 `unavailable`. OPTIONS answers the preflight for allowed origins. Auth: none. ### Parameters | Name | In | Type | Required | Description | |---|---|---|---|---| | `key` | query | string | yes | | | `Origin` | header | string | yes | | ### Request body (text/plain) | Field | Type | Required | Description | |---|---|---|---| | `email` | string | yes | | ### Responses | Status | Description | |---|---| | 200 | Coarse result | | 401 | Error | | 403 | Error | | 422 | Error | | 429 | Error | | 503 | Error | Example response: ```json { "status": "ok", "suggestion": "string" } ``` ## Webhook events Signed as described in [Webhooks](/docs/webhooks). ### list.completed A list finished Headers: X-Mailsfit-Event, X-Mailsfit-Timestamp (unix seconds), X-Mailsfit-Signature: sha256=. Retried 3 times with backoff on non-2xx. ```json { "counts": { "deliverable": 1, "pending": 1, "queued": 1, "risky": 1, "undeliverable": 1, "unknown": 1 }, "event": "list.completed", "finished_at": "2026-12-05T09:30:00Z", "list_id": 1, "name": "string", "rows": 1, "status": "string", "unique_emails": 1 } ``` ### list.monitor_changed A list monitoring run found changed results Sent to the account webhook URL and to REST hook subscribers; signed like list.completed. ```json { "changed": 1, "checked": 1, "event": "list.monitor_changed", "list_id": 1, "name": "string", "newly_undeliverable": 1, "run_id": 1, "unpaid": 1 } ``` ### monitor.changed A blacklist monitor found a listing or delisting Sent to the account webhook URL and to REST hook subscribers; signed like list.completed. ```json { "added": [ { "delist": "https://example.com/hooks/mailsfit", "subject": "string", "zone": "string" } ], "event": "monitor.changed", "kind": "string", "listed": [ { "delist": "https://example.com/hooks/mailsfit", "subject": "string", "zone": "string" } ], "monitor_id": 1, "removed": [ { "delist": "https://example.com/hooks/mailsfit", "subject": "string", "zone": "string" } ], "target": "string" } ``` ### verify.completed A /v1/verify request finished (REST hook subscribers only) Signed like list.completed. The body is the verification result plus `event`. ```json { "catch_all": false, "did_you_mean": null, "disposable": false, "email": "jane@example.com", "event": "verify.completed", "free": false, "id": 1842, "mx_found": true, "mx_group": "other", "mx_host": "mx.example.com", "reason": "accepted", "role": false, "score": 95, "smtp_code": 250, "smtp_provider": "other", "state": "done", "status": "deliverable", "suggestion": null } ``` ## Schemas ### BlacklistMonitor | Field | Type | Required | Description | |---|---|---|---| | `created_at` | string (date-time) | no | | | `id` | integer | no | | | `kind` | one of: ip, domain | no | | | `last_checked_at` | string or null (date-time) | no | | | `listed` | array of Listing | no | | | `next_check_at` | string (date-time) | no | | | `target` | string | no | | | `verified` | boolean | no | Only verified monitors are checked. IPs and paid-plan domains are verified at once; Free-plan domains after the TXT proof. | | `verify_record` | string or null | no | TXT record (mailsfit-verify=) to publish on the domain while unverified | ### List | Field | Type | Required | Description | |---|---|---|---| | `created_at` | string (date-time) | no | | | `error` | string or null | no | | | `eta_seconds` | integer or null | no | null while estimating | | `finished_at` | string or null (date-time) | no | | | `id` | integer | no | | | `name` | string | no | | | `pause_reason` | string or null | no | | | `progress` | Progress | no | | | `rows` | integer | no | | | `status` | one of: ingesting, processing, paused, done, failed | no | | | `unique_emails` | integer | no | | ### ListMonitorRun | Field | Type | Required | Description | |---|---|---|---| | `changed` | integer | no | | | `checked` | integer | no | | | `finished_at` | string or null | no | | | `id` | integer | no | | | `newly_undeliverable` | integer | no | | | `note` | string or null | no | | | `probed` | integer | no | | | `reused` | integer | no | | | `started_at` | string | no | | | `status` | one of: running, done, skipped | no | | | `unpaid` | integer | no | | ### ListSummary | Field | Type | Required | Description | |---|---|---|---| | `created_at` | string (date-time) | no | | | `finished_at` | string or null (date-time) | no | | | `id` | integer | no | | | `name` | string | no | | | `rows` | integer | no | | | `status` | one of: ingesting, processing, paused, done, failed | no | | | `unique_emails` | integer | no | | ### Listing | Field | Type | Required | Description | |---|---|---|---| | `delist` | string or null (uri) | no | | | `subject` | string | no | The IP or domain the list answered for | | `zone` | string | no | | ### PlacementTest | Field | Type | Required | Description | |---|---|---|---| | `created_at` | string | no | | | `expires_at` | string | no | End of the search window, or (before the send is confirmed) when the unconfirmed test closes, 24 h after creation | | `id` | integer | no | | | `score` | integer or null | no | Inbox 100, Gmail tab 75, spam or missing 0; unreadable seeds do not count | | `seeds` | array of object | no | | | `sent_at` | string or null | no | When the send was confirmed; seeds are searched for 30 minutes from here | | `status` | one of: waiting, done | no | | | `token` | string | no | Put it in the subject or body of the message you send to every seed | ### Progress | Field | Type | Required | Description | |---|---|---|---| | `deliverable` | integer | no | | | `pending` | integer | no | | | `queued` | integer | no | | | `risky` | integer | no | | | `undeliverable` | integer | no | | | `unknown` | integer | no | | ### Verification | Field | Type | Required | Description | |---|---|---|---| | `catch_all` | boolean or null | no | | | `did_you_mean` | string or null | no | Same value as suggestion | | `disposable` | boolean | no | | | `email` | string | no | | | `free` | boolean | no | | | `id` | integer | yes | | | `mx_found` | boolean or null | no | The domain publishes MX hosts; null when DNS was not read (invalid syntax, DNS error, opted out) | | `mx_group` | one of: google, microsoft, yahoo, mimecast, other | no | | | `mx_host` | string or null | no | | | `reason` | one of: accepted, invalid_syntax, no_mx, user_unknown, catch_all, role, disposable, mailbox_full, provider_unverifiable, greylisted, blocked, timeout, dns_error, mx_not_public, inconclusive, suppressed | no | | | `role` | boolean | no | | | `score` | integer | no | | | `smtp_code` | integer or null | no | | | `smtp_provider` | one of: google, microsoft, yahoo, mimecast, other | no | Same value as mx_group | | `spam_trap_risk` | array of one of: typo_domain, listed_domain, trap_local_part | no | Spam-trap risk indicators that need no lookup. A risk signal, never a verdict. Omitted when empty. | | `state` | one of: done, pending | yes | | | `status` | one of: deliverable, risky, undeliverable, unknown | no | | | `suggestion` | string or null | no | Typo fix, e.g. jane@gmail.com for jane@gmial.com |