Developers

Two calls. Then you poll.

Create a key under API Keys. It verifies into the audience you chose. The contract is openapi.json.

POST

/api/v1/verifications

Send Authorization: Bearer and an optional Idempotency-Key. The same key and address return the original id with status 200. The same key with a different address returns 409.

401 missing or revoked key. 402 no credits and no bring-your-own key. 403 the account is not active. 422 the address has no @, or the key’s audience is gone.

Request
curl -X POST https://YOUR_HOST/api/v1/verifications \
  -H "Authorization: Bearer mp_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: signup-ada-1" \
  -d '{"email":"[email protected]"}'
202
{ "id": "00000000-0000-4000-8000-000000000001", "status": "queued" }
402
{ "error": "No credits left" }

GET

/api/v1/verifications/{id}

The finished body is the same result as the detail page, including domain age. Those fields stay null until the worker finishes. status is queued, running, completed, or failed. A failed check is not charged. The provider payload is not included. 404 when the id is unknown or belongs to another account.

Request
curl https://YOUR_HOST/api/v1/verifications/00000000-0000-4000-8000-000000000001 \
  -H "Authorization: Bearer mp_..."
200 queued
{
  "id": "00000000-0000-4000-8000-000000000001",
  "email": "[email protected]",
  "status": "queued",
  "result": null,
  "risk": null,
  "score": null,
  "deliverable": null,
  "domain": null,
  "domainAgeDays": null,
  "audienceId": "00000000-0000-4000-8000-000000000002",
  "source": "api"
}
200 completed
{
  "id": "00000000-0000-4000-8000-000000000001",
  "email": "[email protected]",
  "status": "completed",
  "result": "Safe",
  "risk": "low",
  "score": 100,
  "deliverable": true,
  "validSyntax": true,
  "disposable": false,
  "roleAccount": false,
  "freeEmail": false,
  "catchAll": false,
  "disabled": false,
  "inboxFull": false,
  "domain": "hyu.me",
  "domainAgeDays": 1007,
  "hasMx": true,
  "smtpConnect": true,
  "mxRecords": [{ "priority": 0, "host": "mx.sendbun.com" }],
  "audienceId": "00000000-0000-4000-8000-000000000002",
  "source": "api"
}

POST

/subscribe/{token}

The token in the path is the list’s subscribe URL, not an API key. The row waits until the list is started. Sixty requests a minute. A repeat of the same address returns status duplicate. Unknown token is 404. A missing email is 422. Over the cap is 429.

Request
curl -X POST https://YOUR_HOST/subscribe/TOKEN \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]","first_name":"Dev"}'
202
{ "status": "queued" }
200 duplicate
{ "status": "duplicate" }

MCP

POST /mcp

JSON-RPC, protocol 2025-03-26. Initialize and tools/list need no key. tools/call needs the same bearer key. The tools are verify_email and get_verification. They run the same checks as the routes above. A tool error sets isError and returns the API body, with the status under structuredContent.httpStatus. A call without a key is the JSON-RPC error “API key required”.

Lists, audiences, and exports stay in the app. How those work.

initialize
curl -X POST https://YOUR_HOST/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"docs","version":"0"}}}'
tools/call
curl -X POST https://YOUR_HOST/mcp \
  -H "Authorization: Bearer mp_..." \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"verify_email","arguments":{"email":"[email protected]"}}}'