API & SDK 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.
Documentation Portals
Official Zero-Dependency SDKs
Install with npm install mailveri or pip install mailveri — sync, async, TypeScript types, and zero third-party deps.
Interactive REST API Docs
Explore detailed endpoint specifications, 1M-row batch uploads, webhook signatures, and error codes.
Model Context Protocol (MCP) Docs
Connect MailVeri directly into Claude Desktop, Cursor, Windsurf, Claude Code, and Antigravity.
Language & Framework Validation Guides
Production snippets for Python, Node.js/TypeScript, Next.js Server Actions, PHP, Laravel, Django, Go, and Edge Workers.
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.
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 install mailveriimport { 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('[email protected]')
console.log(check.status, check.is_deliverable, check.credits_used)
// 2. Bulk list verification & remaining non-expiring credits
const job = await client.submitBatch(['[email protected]', '[email protected]'])
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
pip install mailveriimport asyncio
from mailveri import AsyncMailVeri, MailVeri
# Reads MAILVERI_API_KEY from env automatically when api_key is omitted
client = MailVeri()
check = client.verify("[email protected]")
print(check["status"], check["is_deliverable"], check["credits_used"])
job = client.submit_batch(["[email protected]", "[email protected]"])
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("[email protected]")
print(res["status"], res["balance"])
asyncio.run(main())Quick Start
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
Get your API key
Sign up for a free account and copy your API key or MCP server URL from the Developer Hub.

Make your first request
Use the API endpoint with your key to verify any email address.
# 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": "[email protected]"}'
# 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 protected]"
# Response (Returns dual keys: email and mail)
{
"error": 0,
"message": "Verified [email protected] successfully",
"status": "VALID",
"email": "[email protected]",
"mail": "[email protected]",
"balance": 999,
"credits_used": 1,
"quality_score": 98,
"is_forwarding": false
}Handle the response
Parse the JSON response and use the verification status in your application.
Code Examples
Python
import requests
API_KEY = "YOUR_API_KEY"
email = "[email protected]"
# 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
const API_KEY = 'YOUR_API_KEY';
const email = '[email protected]';
// 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
$apiKey = 'YOUR_API_KEY';
$email = '[email protected]';
$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
/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)/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)/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//v1/download-zip/Download full compressed ZIP archive containing categorized result lists
Parameters
id(string)required– Job ID from /v1/verify-mails//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'/v1/get-balance/Get current account credit balance (plus optional daily_limit, daily_remaining, and daily_used fields for daily-quota / lifetime-deal accounts)
/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
VALIDEmail exists and can actively receive messagesINVALIDMailbox does not exist, is disabled, or has syntax/MX errorsDISPOSABLETemporary or burner email address (100,000+ domains blocked)ROLE_ACCOUNTVerified deliverable role address (info@, contact@, support@) — only returned after confirming the mailbox is VALID and not catch-allCATCH_ALLDomain accepts all incoming emails (detected across custom domains, Google Workspace & Microsoft 365 at 1 credit flat)FULL_INBOXMailbox exists but is over storage quotaUNKNOWNCould 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_KEYGet your API key from the MailVeri dashboard.
Platform Integrations & Connectors
Ready-to-use official packages, 1-click automation apps, scraper actors, and CRM playbooks:
Ready to integrate?
Get up to 1,000 free API credits when you sign up. Start building in minutes.