# 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=<hex HMAC-SHA256 of "{timestamp}.{body}" with your signing secret>. 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=<token>) 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 |

