# Email Verification REST API, Official SDKs & MCP Docs | MailVeri

> Developer docs for MailVeri email verification: zero-dependency Python & Node.js/TypeScript SDKs, real-time REST API, 1M-row batch webhooks, and native MCP server.

- **Source**: https://mailveri.com/docs
- **AI Reference**: https://mailveri.com/llms-full.txt

---

REST API Documentation

Verify emails with our zero-dependency Node.js/TypeScript & Python SDKs, REST API, or native MCP server from $0.0002/check — keeping bounce rates under 2% with 0 credits charged on UNKNOWN.

[Get API Key](https://app.mailveri.com/accounts/signup/) · [Official SDKs](#sdks) · [Quick Start](#quickstart)

<1s Response

Average latency

99.9% Uptime

SLA guarantee

REST API

Any language

Batch & Real-time

Parallel processing

npm & PyPI

### Official Zero-Dependency SDKs

Install with `npm install mailveri` or `pip install mailveri` — sync, async, TypeScript types, and zero third-party deps.

[Explore Official SDKs](#sdks)

Full API Reference

### Interactive REST API Docs

Explore detailed endpoint specifications, 1M-row batch uploads, webhook signatures, and error codes.

[Open REST API Documentation](https://mailveri.com/docs/api)

AI Agents & IDEs

### Model Context Protocol (MCP) Docs

Connect MailVeri directly into Claude Desktop, Cursor, Windsurf, Claude Code, and Antigravity.

[Open MCP Documentation](https://mailveri.com/docs/mcp)

Framework Guides

### Language & Framework Validation Guides

Production snippets for Python, Node.js/TypeScript, Next.js Server Actions, PHP, Laravel, Django, Go, and Edge Workers.

[Browse SDK & Framework Guides](https://mailveri.com/docs/guides)

Bounce Diagnostics

### SMTP Bounce & Error Code Directory

Look up Gmail, Microsoft 365, Yahoo, and RFC 5321/3463 bounce codes (550 5.1.1, 550 5.4.1, 451 4.7.1) and automated fixes.

[Explore SMTP Bounce Codes](https://mailveri.com/smtp-codes)

Official Packages • Zero Runtime Dependencies

## Official SDKs (npm & PyPI)

Ship email verification in minutes with typed official clients that keep bounce rates strictly under 2% without bloating your dependency tree. Built-in retries handle rate limits safely, `UNKNOWN` results cost 0 credits, and pay-as-you-go credits start at $9/10K, $59/100K, or $299/1M ($0.0002/check at 5M) and never expire.

### JavaScript / TypeScript

Node 18+, native fetch, dual ESM/CJS & .d.ts types

[npm: mailveri →](https://www.npmjs.com/package/mailveri)

0 Dependencies · ESM + CJS · TypeScript

```bash
npm install mailveri
```

```typescript
import { MailVeri } from 'mailveri'

// Reads process.env.MAILVERI_API_KEY automatically when apiKey is omitted
const client = new MailVeri({ apiKey: process.env.MAILVERI_API_KEY })

// 1. Real-time verification (keep bounce rate <2%, 0 credits on UNKNOWN)
const check = await client.verify('user@example.com')
console.log(check.status, check.is_deliverable, check.credits_used)

// 2. Bulk list verification & remaining non-expiring credits
const job = await client.submitBatch(['alice@example.com', 'bob@example.com'])
const balance = await client.getBalance()
console.log('Job:', job.job_id, 'Credits:', balance.available_credits)
```

### Python (Sync & Async)

Python 3.10+, stdlib urllib, PEP 561 py.typed

[PyPI: mailveri →](https://pypi.org/project/mailveri/)

0 Dependencies · Sync & Async · py.typed

```bash
pip install mailveri
```

```python
import asyncio
from mailveri import AsyncMailVeri, MailVeri

# Reads MAILVERI_API_KEY from env automatically when api_key is omitted
client = MailVeri()
check = client.verify("user@example.com")
print(check["status"], check["is_deliverable"], check["credits_used"])

job = client.submit_batch(["alice@example.com", "bob@example.com"])
balance = client.get_balance()
print("Job:", job["job_id"], "Credits:", balance["available_credits"])

# Async support (zero external dependencies)
async def main():
    async_client = AsyncMailVeri()
    res = await async_client.verify("user@example.com")
    print(res["status"], res["balance"])

asyncio.run(main())
```

## Quick Start

app.mailveri.com

1:15 · Silent Walkthrough

Watch the 75-second end-to-end walkthrough (Dashboard, Single Check, Bulk CSV, API, MCP & Webhooks).

Dashboard · Single Check · Bulk CSV · Report & Export · API · MCP · Webhooks

[Open on YouTube](https://youtu.be/oCMY9qjNhAE)

1

### Get your API key

Sign up for a free account and copy your API key or MCP server URL from the Developer Hub.

[Get API Key](https://app.mailveri.com/accounts/signup/)

app.mailveri.com/api-keys/

Developer Hub

![MailVeri Developer Hub API Keys management interface](https://mailveri.com/images/product/mailveri-developer-api-keys.png)

2

### Make your first request

Use the API endpoint with your key to verify any email address.

```bash
# Option 1: JSON payload (Recommended)
curl -X POST "https://api.mailveri.com/v1/verify-mail/" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "test@example.com"}'

# Option 2: URL-encoded / Form Data (Quick cURL & Webhooks)
curl -X POST "https://api.mailveri.com/v1/verify-mail/" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d "email=test@example.com"

# Response (Returns dual keys: email and mail)
{
  "error": 0,
  "message": "Verified test@example.com successfully",
  "status": "VALID",
  "email": "test@example.com",
  "mail": "test@example.com",
  "balance": 999,
  "credits_used": 1,
  "quality_score": 98,
  "is_forwarding": false
}
```

3

### Handle the response

Parse the JSON response and use the verification status in your application.

## Code Examples

### Python

```python
import requests

API_KEY = "YOUR_API_KEY"
email = "test@example.com"

# Option 1: JSON payload (Recommended)
response = requests.post(
    "https://api.mailveri.com/v1/verify-mail/",
    json={"email": email},
    headers={"Authorization": f"Bearer {API_KEY}"}
)

# Option 2: Form data (also supported: data={"email": email})
# response = requests.post("https://api.mailveri.com/v1/verify-mail/", data={"email": email}, headers={"Authorization": f"Bearer {API_KEY}"})

result = response.json()
print(f"Status: {result['status']}")
print(f"Remaining Credits: {result['balance']}")
```

### JavaScript

```javascript
const API_KEY = 'YOUR_API_KEY';
const email = 'test@example.com';

// Option 1: JSON payload (Recommended)
const response = await fetch(
  'https://api.mailveri.com/v1/verify-mail/',
  {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${API_KEY}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ email: email })
  }
);

// Option 2: URL-encoded form data is also supported:
// body: new URLSearchParams({ email: email })

const result = await response.json();
console.log('Status:', result.status);
console.log('Remaining Credits:', result.balance);
```

### PHP

```php
<?php
$apiKey = 'YOUR_API_KEY';
$email = 'test@example.com';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.mailveri.com/v1/verify-mail/");
curl_setopt($ch, CURLOPT_POST, true);

// Option 1: JSON payload (Recommended)
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['email' => $email]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer " . $apiKey,
    "Content-Type: application/json"
]);

// Option 2: Form-encoded (also supported)
// curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(['email' => $email]));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
$result = json_decode($response, true);

echo "Status: " . $result['status'];
echo "Balance: " . $result['balance'];
?>
```

## API Endpoints

POST · `/v1/verify-mail/`

Verify a single email address in real time (Rate limits per account tier — Standard <$500 spend: 10 req/s & 5 concurrent; VIP $500+: 25 req/s & 15 concurrent; VVIP $2,000+ or KYC-verified: 50 req/s & 40 concurrent). Accepts application/json (recommended) or form-urlencoded.

Parameters

`email` · (string) · required · – Email address to verify (legacy alias "mail" is also accepted)

POST · `/v1/verify-mails/`

Upload a file for distributed bulk verification (up to 1,000,000 emails per batch) with optional webhook callback on completion.

Parameters

`file` · (file) · required · – Text (.txt), CSV (.csv), or Excel (.xlsx, .xls) file (up to 1,000,000 emails per batch, max 100MB; max row limit applies to raw non-empty rows before deduplication; min 2 unique valid emails after deduplication; malformed lines are skipped and counted in "skipped"; if deduplication/filtering leaves 1 email, error 4 returns "email" for POST /v1/verify-mail/; UNKNOWN results are 100% auto-refunded)

GET · `/v1/get-status/`

Get batch status (QUEUED, PROCESSING, CANCELING, CANCELED, DONE, MERGED), completion percentage, and download_link (/v1/download-result/?id=...)

Parameters

`id` · (string) · required · – Job ID returned from /v1/verify-mails/

GET · `/v1/download-zip/`

Download full compressed ZIP archive containing categorized result lists

Parameters

`id` · (string) · required · – Job ID from /v1/verify-mails/

GET · `/v1/download-result/`

Download full ZIP archive (default) or custom filtered CSV results by deliverability status and column format

Parameters

`id` · (string) · required · – Job ID from /v1/verify-mails/

`format` · (string) · – Set to 'csv' for filtered CSV export (defaults to full ZIP archive when omitted)

`status` · (string) · – Filter statuses for CSV export (defaults to 'VALID,ROLE_ACCOUNT'; e.g. 'VALID,ROLE_ACCOUNT', 'VALID')

`columns` · (string) · – Layout: 'original' (default), 'compact', or 'email'

GET · `/v1/get-balance/`

Get current account credit balance (plus optional daily_limit, daily_remaining, and daily_used fields for daily-quota / lifetime-deal accounts)

DELETE · `/v1/delete-list/`

Delete a finished or canceled list from storage to free a Free-plan stored-list slot (active lists in QUEUED, PROCESSING, or CANCELING state cannot be deleted and return HTTP 409 with error: 3 and code: "list_active")

Parameters

`id` · (string) · required · – Job ID from /v1/verify-mails/

## Response Status Codes

`VALID` · Email exists and can actively receive messages

`INVALID` · Mailbox does not exist, is disabled, or has syntax/MX errors

`DISPOSABLE` · Temporary or burner email address (100,000+ domains blocked)

`ROLE_ACCOUNT` · Verified deliverable role address (info@, contact@, support@) — only returned after confirming the mailbox is VALID and not catch-all

`CATCH_ALL` · Domain accepts all incoming emails (detected across custom domains, Google Workspace & Microsoft 365 at 1 credit flat)

`FULL_INBOX` · Mailbox exists but is over storage quota

`UNKNOWN` · Could not verify (0 credits charged on real-time API; 100% auto-refunded on batch jobs)

## Authentication

All API requests require authentication using a Bearer token. Include your API key in the Authorization header:

`Authorization: Bearer YOUR_API_KEY`

Get your API key from the [MailVeri dashboard](https://app.mailveri.com).

## Platform Integrations & Connectors

Ready-to-use official packages, 1-click automation apps, scraper actors, and CRM playbooks:

[Browse All 17+ Integrations →](https://mailveri.com/integrations)

[Apify Actor](https://mailveri.com/integrations/apify) · [n8n Node](https://mailveri.com/integrations/n8n) · [Activepieces](https://mailveri.com/integrations/activepieces) · [Zapier App](https://mailveri.com/integrations/zapier) · [Make.com App](https://mailveri.com/integrations/make) · [Pabbly Connect](https://mailveri.com/integrations/pabbly) · [viaSocket & MCP](https://mailveri.com/integrations/viasocket) · [Google Sheets](https://mailveri.com/integrations/google-sheets) · [Clay Waterfall](https://mailveri.com/integrations/clay) · [All Integrations](https://mailveri.com/integrations)

## Ready to integrate?

Get up to 1,000 free API credits when you sign up. Start building in minutes.

[Get API Key](https://app.mailveri.com/accounts/signup/) · [View API Pricing ($59 / 100K)](https://mailveri.com/pricing) · [Wholesale OEM API](https://mailveri.com/wholesale-api)

Developer Guides & Integrations: [Full REST API Reference](https://mailveri.com/docs/api) · [MCP Server for AI Agents](https://mailveri.com/docs/mcp) · [API Integration Guide](https://mailveri.com/blog/email-verification-api-integration-guide) · [MCP Setup Guide](https://mailveri.com/blog/mailveri-mcp-email-verification-ai-agents) · [All Integrations](https://mailveri.com/integrations) · [Apify Store](https://mailveri.com/integrations/apify) · [n8n Node & Workflows](https://mailveri.com/integrations/n8n) · [Activepieces](https://mailveri.com/integrations/activepieces) · [Zapier](https://mailveri.com/integrations/zapier) · [Make.com](https://mailveri.com/integrations/make) · [Pabbly Connect](https://mailveri.com/integrations/pabbly) · [viaSocket](https://mailveri.com/integrations/viasocket) · [Google Sheets](https://mailveri.com/integrations/google-sheets) · [Clay HTTP API](https://mailveri.com/integrations/clay) · [AWS SES Protection](https://mailveri.com/integrations/aws-ses) · [Compare 36 Verifiers →](https://mailveri.com/compare)
