Skip to content

mailfloss for developers

Build email verification into your product, agent or app

One REST API, typed SDKs for Node.js, Python, Ruby and Go, and a hosted MCP server, all on the same verification engine.

The free plan includes 500 verifications a month. Each verification uses one credit.

curl -G https://api.mailfloss.com/v1/verify \
  -d [email protected] \
  -H "Authorization: Bearer $MAILFLOSS_API_KEY"
200 OKResponse
{
  "email": "[email protected]",
  "domain": "acme.com",
  "status": "passed",
  "reason": "available",
  "passed": true,
  "disposable": false,
  "role": false,
  "free": false,
  "suggestion": ""
}

Three ways to add email verification

Each path uses the same verification engine and the same credits, so you can start with one and add another later.

Verification inside your product

Check signups, checkouts and imports in real time from your own code. Use plain HTTPS, or a typed SDK that handles retries and idempotency for you.

GET /v1/verify

Verification for AI agents

Give an agent tools to verify an address before it’s saved, run a batch and check credits. mailfloss hosts the server, so there’s nothing to install.

Claude Code · Cursor · any MCP client

Webhooks

A JSON POST to your server when a status changes, a contact is fixed or a cleaning job finishes. Business plan or add-on.

JavaScript widget (beta)

Checks addresses on signup and contact forms as people type, before they reach your list.

Postman and Apidog

Try every endpoint from a ready-made collection before you write a line of code.

Your first verification request in three steps

  1. Create a restricted key

    An owner or admin opens Developers → API keys, chooses Restricted and the Verify emails permission. The key shows once, so store it as MAILFLOSS_API_KEY.

  2. Send one address

    Call GET /v1/verify with the address, from any HTTP client or an SDK. Each successful verification uses one credit.

  3. Act on the verdict

    Keep, reject or correct the address from the fields in the response. The Quick Start takes you from here to batch jobs.

Reading the result

Four fields carry the decision. disposable, role and free are flags you can act on too.

status
passed, undeliverable, risky or unknown.
passed
true when the address is safe to send to.
reason
why, such as available, disposable or inbox_full.
suggestion
a typo fix when one is detected, such as gmail.com for gmial.com.

How do AI agents connect to mailfloss?

Through the hosted MCP server at https://api.mailfloss.com/mcp. Sign in with OAuth from Claude Code, Cursor or any client that supports remote servers, or send an API key from a headless agent.

claude mcp add --transport http \
  mailfloss https://api.mailfloss.com/mcp

In ChatGPT, add the URL as a custom connector. In Claude, add the mailfloss connector from the directory. The MCP guide lists every tool.

You

Verify [email protected] before I add her to the newsletter.

Tool call · 1 credit

verify_email({
  "email": "[email protected]"
})

Result

{
  "status": "passed",
  "reason": "available",
  "passed": true
}

Agent

[email protected] passed verification, so she’s safe to add.

An example. Every tool call is the matching REST call, with the same credits and rate limits. Tools cover single and batch verification, credits and usage, and your connected email platforms.

How do you build an app other mailfloss users connect?

An owner or admin registers it under Developers → Your apps with its name, redirect URLs and permissions. Users disconnect it any time under Account Settings → Connected apps.

  1. Your app sends the user to mailfloss

    With the permissions it registered.

  2. They sign in and approve access

    Limited by those permissions and their role.

  3. Your app works with that account

    Until they disconnect it.

Unverified
Connections
Up to 100 active OAuth connections; more than one from the same account can count.
What users see
A notice that mailfloss hasn’t verified the app.
✓ Verified by mailfloss
Connections
No unverified-app connection limit. Rate and plan limits still apply.
What users see
The Verified by mailfloss badge.

To get verified, submit from the app’s Get verified tab with a clear description, working website and support links, a privacy policy, screenshots, a demonstration video, setup instructions and why it needs each permission. Use made-up data in review materials.

Verification reviews what you submit. It isn’t a security audit, an endorsement or a guarantee, and approval isn’t automatic. The app review guidelines have the full terms.

Questions before you start

Do I need to install anything to use the MCP server?

No. mailfloss hosts it at https://api.mailfloss.com/mcp. Add that URL to your MCP client, then sign in with OAuth or send an API key as a Bearer token.

Read the MCP guide

Do I need an SDK to use the email verification API?

No. Every endpoint is plain HTTPS and JSON, with your API key sent as a Bearer token. The official SDKs for Node.js, Python, Ruby and Go save you the plumbing: authentication, retries and idempotency keys.

Read the SDK guide

Do users need to give my app an API key?

No. An app built with mailfloss’s OAuth connection flow receives an access token after the user approves it. Keep the connection implementation aligned with the app-building guide.

Can I test an app before it is verified?

Yes. Unverified apps can connect accounts within the active-connection limit, with the unverified-app notice shown to users. The review guidelines require at least one successful connection; your own account counts.

Read the app review guidelines

Make your first verification request

Create a restricted key and follow the Quick Start, from one address to a full batch. The free plan includes 500 verifications a month.

Read the API Quick Start