MailVeri REST API Reference
The MailVeri API allows you to verify individual email deliverability, trigger high-speed distributed batch verification, track processing progress, download results, and subscribe to secure real-time webhooks.
Overview
MailVeri inspects mailbox existence directly against recipient mail exchangers without sending actual emails. It performs RFC syntax checks, DNS MX resolution, disposable email filtering, spam trap analysis, catch-all detection, full mailbox identification, and SMTP handshake verification.
npm install mailveri (npm package) or
pip install mailveri (PyPI package), view examples in the
SDK Quickstart →, or explore ready-made connectors for
n8n, Activepieces, Apify, Zapier, Make, Pabbly, viaSocket & Google Sheets on
Integrations →
| Status Code | Description | Deliverability Advice |
|---|---|---|
| VALID | Mailbox is verified and accepted by the destination SMTP server. | Safe to send. Lowest bounce probability. |
| INVALID | Mailbox does not exist, domain has no MX records, or address was explicitly rejected. | Do not send. Hard bounce guaranteed. |
| DISPOSABLE | Temporary, throwaway email service (e.g. GuerrillaMail, 10MinuteMail). | Block or filter out to preserve reputation. |
| ROLE_ACCOUNT | Verified deliverable role address (e.g. admin@, support@, info@, sales@) — only returned after confirming the mailbox is VALID and the domain is not catch-all. |
Deliverable, though generic inboxes carry higher complaint risk for cold outreach. |
| CATCH_ALL | The domain accepts any email address regardless of whether the mailbox exists. | Proceed cautiously; deliverability cannot be guaranteed. |
| FULL_INBOX | Mailbox exists but its storage quota has been exceeded. | Soft bounce. May retry later. |
| UNKNOWN | Remote server timed out, greylisted the probe, or refused connection. | 0 credits charged on real-time API; 100% auto-refunded on batch jobs. |
Authentication
Authenticate all API requests by providing your API key as a Bearer token in the Authorization HTTP header.
Authorization: Bearer mv_3f9a12bc4e89712a...
You can create up to 5 concurrent active API keys in your MailVeri Dashboard. Each key can have an optional expiration date (7, 30, 60, 90 days, or never). Keys can be renamed or revoked at any time. Revoked or expired keys immediately return
403 Forbidden.
Rate Limits & Throttling
Rate limits are enforced per account (across all API keys) to protect cluster resources:
/v1/get-balance/: Unthrottled (read-only balance check)./v1/verify-mail/: Tiered per-account limits — Standard (<$500 spend): 10 req/s (up to 5 concurrent); VIP ($500+): 25 req/s (up to 15 concurrent); VVIP / KYC ($2,000+ or KYC-verified): 50 req/s (up to 40 concurrent)./v1/verify-mails/: Up to 1,000,000 emails per batch. Free accounts parse 1 upload at a time (429 upload_in_progress,Retry-After: 1) and are capped at 2 concurrent active (QUEUED/PROCESSING) lists (error: 7) and 10 stored non-deleted lists (error: 9); paid accounts have no concurrent upload or batch job caps./v1/download-zip/&/v1/download-result/: 1 concurrent ZIP archive build per account (429 download_busy); filtered CSV streaming (format=csv) is exempt.
When rate or concurrency limits are exceeded, the API responds with HTTP 429 Too Many Requests (check Retry-After). Please implement exponential backoff retry strategies.
1. Get Account Balance
Retrieve your account's remaining email verification credit balance.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.mailveri.com/v1/get-balance/
{
"error": 0,
"message": "You have 5000 credits",
"balance": 5000
}
Daily-quota / lifetime-deal accounts (daily_limit > 0) also receive daily_limit, daily_remaining, and daily_used integer fields in this response.
2. Verify Single Email
Verify delivery status for a single email address in real time.
Parameters (JSON, Form Data, or URL-encoded)
| Field | Type | Required | Description |
|---|---|---|---|
email |
string | Required | The email address to verify (e.g. [email protected]). Legacy alias mail is also accepted. |
# 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: Form / URL-encoded
curl -X POST https://api.mailveri.com/v1/verify-mail/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "[email protected]"
{
"error": 0,
"message": "Verified [email protected] successfully",
"status": "VALID",
"email": "[email protected]",
"mail": "[email protected]",
"balance": 4999,
"credits_used": 1,
"quality_score": 98,
"is_forwarding": false
}
Response Fields
| Field | Type | Description |
|---|---|---|
status |
string | Primary deliverability status (VALID, INVALID, DISPOSABLE, ROLE_ACCOUNT, CATCH_ALL, FULL_INBOX, UNKNOWN). |
credits_used |
integer | Credits deducted for this call: 1 on conclusive verdicts (VALID, INVALID, DISPOSABLE, ROLE_ACCOUNT, CATCH_ALL, FULL_INBOX); 0 on UNKNOWN and standard HTTP 200 error responses (error: 1, 2, 3, 4) — except when concurrent requests overdraw credits below zero, where the withheld error: 2 response returns credits_used: 1 alongside the negative balance. |
quality_score |
integer | Deliverability confidence score (0–100) based on mailbox existence, provider reputation, role status, and relay penalties. |
is_forwarding |
boolean | true if the recipient domain routes incoming mail via an email forwarding relay (e.g. Cloudflare Email Routing, SimpleLogin, AnonAddy, Apple Private Relay). |
balance |
integer | Remaining account verification credit balance. |
daily_limit, daily_remaining |
integer (optional) | Returned on daily-quota / lifetime-deal accounts (daily_limit > 0) to show today's daily allowance and remaining checks (daily_used is included on /v1/get-balance/). |
3. Upload File for Bulk Verification
Submit a file containing a list of emails for distributed verification.
Parameters (Multipart Form-Data)
| Field | Type | Required | Description |
|---|---|---|---|
file |
file | Required | Text (.txt), CSV (.csv), or Excel (.xlsx, .xls) file. Max size: 100MB; accepts up to 1,000,000 emails per batch (the per-list row limit applies to raw non-empty rows before deduplication and returns error: 2 if exceeded). Requires at least 2 unique valid emails after deduplication and skipping malformed lines (if only 1 valid email remains, returns error: 4 with "email", "count": 1, and "skipped" so your integration can pass it directly to POST /v1/verify-mail/). Malformed non-empty rows are skipped without failing the upload. |
curl -H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
https://api.mailveri.com/v1/verify-mails/
{
"error": 0,
"message": "List leads.txt with 500 unique emails was uploaded and queued successfully",
"id": "sample_batch_id_9x8y7z",
"count": 500,
"skipped": 0
}
Response Fields
| Field | Type | Description |
|---|---|---|
id |
string | Unique batch identifier used with /v1/get-status/, /v1/download-result/, and /v1/delete-list/. |
count |
integer | Number of valid, deduplicated emails queued for verification. Credits are reserved up front and 100% of UNKNOWN rows are automatically refunded upon completion. |
skipped |
integer | Number of non-empty rows after the first line that contained no valid email address and were excluded from the batch. The first line is treated as a CSV header when it contains no valid email (if it contains a valid email, it is verified normally); integrations uploading plain headerless address lists should prepend a header line such as email so malformed entries on the first address are also counted in skipped. |
4. Get Batch Job Status
Poll verification progress (percentage completed) and receive the final download link.
Query Parameters
| Param | Type | Required | Description |
|---|---|---|---|
id |
string | Required | The batch verification job ID returned from /v1/verify-mails/. |
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mailveri.com/v1/get-status/?id=sample_batch_id_9x8y7z"
{
"error": 0,
"status": "QUEUED",
"percent": 0,
"download_link": ""
}
{
"error": 0,
"status": "PROCESSING",
"percent": 65,
"download_link": ""
}
{
"error": 0,
"status": "DONE",
"percent": 100,
"download_link": "https://api.mailveri.com/v1/download-result/?id=sample_batch_id_9x8y7z"
}
Batch Status Values
| Status | Percent | Meaning |
|---|---|---|
QUEUED |
0 |
Uploaded and waiting in the queue for worker pickup. |
PROCESSING |
0–99 |
Actively verifying across the distributed cluster. |
CANCELING |
0–99 |
Stopping early after a dashboard cancel action; settles remaining results and refunds unverified rows. |
DONE |
100 |
Completed; download_link is populated. There is no FAILED batch state — inconclusive addresses resolve to unbilled UNKNOWN (100% refunded). |
CANCELED |
100 |
Stopped from the MailVeri Dashboard; partial results remain downloadable and unverified rows are refunded. |
MERGED |
100 |
Completed with retried UNKNOWN results merged in from the MailVeri Dashboard; download_link is populated. |
5. Download Verification Results
Download a compressed ZIP archive containing categorized result lists (default on both /v1/download-result/ and /v1/download-zip/) or a custom filtered CSV when format=csv (or status/columns) is supplied. Unavailable or unknown downloads return HTTP 404 Not Found JSON distinguished by code ("list_not_ready" with status & id while running, "list_not_found" for unknown/deleted IDs, or "missing_parameter" when id is omitted).
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Required | The batch ID returned from /v1/verify-mails/. |
format |
string | Optional | Set to csv to stream a filtered CSV file. Defaults to full ZIP archive. |
status |
string | Optional | Comma-separated deliverability statuses (e.g. VALID,ROLE_ACCOUNT, VALID, INVALID). Default for CSV: VALID,ROLE_ACCOUNT. |
columns |
string | Optional | CSV column layout: original (preserves original columns with status column appended), compact (Email, Status), or email (Email only). Default: original. |
# 1. Download full result archive (ZIP - recommended):
curl -H "Authorization: Bearer YOUR_API_KEY" \
--remote-header-name --remote-name \
"https://api.mailveri.com/v1/download-zip/?id=sample_batch_id_9x8y7z"
# 2. Download custom filtered CSV (e.g. deliverable emails with original columns):
curl -H "Authorization: Bearer YOUR_API_KEY" \
--remote-header-name --remote-name \
"https://api.mailveri.com/v1/download-result/?id=sample_batch_id_9x8y7z&format=csv&status=VALID,ROLE_ACCOUNT&columns=original"
# 3. Download clean list of valid emails only (single column):
curl -H "Authorization: Bearer YOUR_API_KEY" \
--remote-header-name --remote-name \
"https://api.mailveri.com/v1/download-result/?id=sample_batch_id_9x8y7z&format=csv&status=VALID&columns=email"
6. Delete Batch Job
Delete a finished or canceled batch list from storage (freeing a Free-plan stored-list slot immediately). Lists that are not in a deletable state (such as QUEUED, PROCESSING, or CANCELING) cannot be deleted and return HTTP 409 Conflict with {"error": 3, "code": "list_active", "message": "...", "id": "<batch_id>"}; wait for completion or cancel from the MailVeri Dashboard first.
curl -X DELETE -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.mailveri.com/v1/delete-list/?id=sample_batch_id_9x8y7z"
{
"error": 0,
"message": "List leads.txt was deleted successfully",
"id": "sample_batch_id_9x8y7z"
}
Model Context Protocol (MCP) Server
Integrate MailVeri directly into AI tools (Claude Desktop, Claude Code, Codex, Cursor, Windsurf, Antigravity, OpenCode, Pi, Oh My Pi, VS Code) using the open-source MCP protocol.
{
"mcpServers": {
"mailveri": {
"url": "https://mcp.mailveri.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
| MCP Tool Name | Description |
|---|---|
mailveri_verify_email |
Verify deliverability of a single email address. |
mailveri_get_balance |
Fetch current account verification credits. |
mailveri_verify_batch |
Submit a list of emails for bulk verification. |
mailveri_get_batch_status |
Check batch completion percentage and download link. |
mailveri_download_batch_result |
Get secure URL to download batch results (full ZIP archive or custom filtered CSV by status and columns). |
mailveri_delete_batch |
Delete a finished or canceled batch job (active queued or processing jobs cannot be deleted). |
Webhooks & HMAC SHA-256 Signing
Configure an HTTPS endpoint in your Webhooks Dashboard to receive instant notifications as soon as bulk verifications complete. Outbound requests carry the official User-Agent: MailVeri/2.0 (+https://mailveri.com).
Event Payload Example
{
"id": "sample_batch_id_9x8y7z",
"status": "DONE",
"download_link": "https://api.mailveri.com/v1/download-result/?id=sample_batch_id_9x8y7z"
}
Verifying Signatures
When webhook signing is enabled, requests include the X-Webhook-Signature header formatted as t=<timestamp>,v1=<signature>.
import hmac
import hashlib
import json
def verify_mailveri_webhook(payload_body, sig_header: str, secret: str) -> bool:
pairs = dict(item.split('=', 1) for item in sig_header.split(','))
timestamp = pairs.get('t', '')
expected_sig = pairs.get('v1', '')
# Re-serialize to compact JSON (matches signing format)
data = json.loads(payload_body) if isinstance(payload_body, (str, bytes)) else payload_body
compact = json.dumps(data, separators=(',', ':'), sort_keys=True)
signed_payload = f"{timestamp}.{compact}"
computed_sig = hmac.new(secret.encode('utf-8'), signed_payload.encode('utf-8'), hashlib.sha256).hexdigest()
return hmac.compare_digest(computed_sig, expected_sig)
Delivery, Retries & URL Rules
- Trigger Scope: Webhook callbacks fire only for bulk batches submitted via the API (
POST /v1/verify-mails/); lists uploaded via the web dashboard do not trigger webhooks. - Retry Policy: Up to 3 sequential delivery attempts with a 3-second timeout per attempt (no backoff delay). Non-transient client responses (
400–499except408and429) stop immediately after 1 attempt;5xx,408,429, timeouts, and network errors retry up to 3 total attempts. - URL Rules: Must use
https://on a valid ASCII public domain name. IP addresses (IPv4/IPv6),localhost, internal/private hostnames, non-ASCII domains, andmailveri.com/*.mailveri.comdomains are rejected.
Error Codes Reference
HTTP-level errors on /v1/* (400–500, including unavailable downloads) return JSON {"error": <http_status>, "code": "<slug>", "message": "..."} (HTTP 409 on DELETE /v1/delete-list/ returns "error": 3 with "code": "list_active"). Endpoint validation/business errors return HTTP 200 with {"error": <int>, "message": "..."} (and machine-readable "code" slugs on batch quota errors) scoped per endpoint.
| HTTP Status | API Error Code | Endpoint | Message / Cause | Solution |
|---|---|---|---|---|
400 Bad Request |
400 (code: "bad_request") |
All /v1/* |
Malformed request syntax or invalid request parameters rejected before handler execution. | Check request headers, encoding, and parameters and retry. |
403 Forbidden |
403 (code: "forbidden") |
All /v1/* |
API key is missing, invalid, revoked, or expired, or the user account is disabled. | Generate or select an active key under API Keys or contact support if your account is disabled. |
404 Not Found |
404 (code: "list_not_ready") |
GET /v1/download-result/, /v1/download-zip/ |
Batch result is not ready yet because the list is still QUEUED, PROCESSING, or CANCELING (response includes status and id). |
Poll /v1/get-status/ until DONE, CANCELED, or MERGED. |
404 Not Found |
404 (code: "list_not_found" / "missing_parameter" / "not_found") |
GET /v1/download-*, unknown /v1/* |
Missing id, unknown or deleted batch UUID, or unknown endpoint route. |
Pass a valid ?id=<batch_id> and verify the endpoint path. |
405 Method Not Allowed |
405 (code: "method_not_allowed") |
All /v1/* |
Unsupported HTTP method for this route (check response Allow header). |
Use the documented HTTP method (GET, POST, or DELETE). |
409 Conflict |
error: 3 (code: "list_active") |
DELETE /v1/delete-list/ |
Called on a list in a non-deletable state (QUEUED, PROCESSING, or CANCELING; returns {"error": 3, "code": "list_active", "message": "...", "id": "..."}). |
Wait for completion or cancel the list in the MailVeri Dashboard first. |
429 Too Many Requests |
429 (code: "rate_limited" / "upload_in_progress" / "download_busy") |
/v1/verify-mail/, /v1/verify-mails/, /v1/download-* |
Exceeded tiered single-verify rate/concurrency limits (rate_limited), another upload is currently being parsed on a Free account (upload_in_progress; Paid accounts have no concurrent upload lock), or another ZIP build lock is active for your account (download_busy; CSV streaming is exempt). |
Respect the Retry-After header and retry with backoff. |
500 Internal Server Error |
500 (code: "internal_error") |
All /v1/* |
Unexpected server error while handling the request. | Retry safely with backoff and contact support if persistent. |
200 OK |
error: 1 |
/verify-mail/, /verify-mails/, /get-status/, /delete-list/ |
Missing required parameter (mail/email, file, or id; returns credits_used: 0 on /v1/verify-mail/). |
Supply all mandatory request parameters. |
200 OK |
error: 2 |
POST /v1/verify-mail/ |
Insufficient credits for single email verification (returns credits_used: 0; except when concurrent calls overdraw into negative balance, where the withheld error: 2 response returns credits_used: 1 and the negative balance). |
Top up credits or check balance via /v1/get-balance/. |
200 OK |
error: 2 |
GET /v1/get-status/, DELETE /v1/delete-list/ |
Batch list UUID is malformed, unknown, or already deleted. | Verify the batch UUID provided. |
200 OK |
error: 2 |
POST /v1/verify-mails/ |
Upload exceeds file size, raw non-empty row count (before deduplication), or spreadsheet complexity limits, or uses an unreadable spreadsheet format. | Keep uploads within 100MB and the per-list row limit, or export the email column as a clean CSV and upload again. |
200 OK |
error: 3 |
POST /v1/verify-mail/, POST /v1/verify-mails/ |
Invalid email syntax on single verify (credits_used: 0), or zero valid emails found in uploaded batch file. |
Ensure the email or file contains valid formatted addresses. |
200 OK |
error: 4 |
POST /v1/verify-mails/ |
Only 1 unique valid email remained after deduplication and filtering (response includes surviving email, count: 1, and skipped). |
Pass email directly to POST /v1/verify-mail/. |
200 OK |
error: 4 |
POST /v1/verify-mail/ |
Transient single-verification internal failure (credits_used: 0). |
Retry the request. |
200 OK |
error: 6 |
POST /v1/verify-mails/ |
Not enough credits to cover the unique emails in a bulk upload. | Top up credits before uploading the list. |
200 OK |
error: 7 (code: "concurrent_limit_reached") |
POST /v1/verify-mails/ |
Free-plan concurrent active list limit reached (default: 2 simultaneous QUEUED or PROCESSING lists; unlimited on Paid plans). |
Retry after running lists finish, or buy any credit pack. |
200 OK |
error: 8 |
POST /v1/verify-mails/ |
Failed to queue batch file after validation (credits automatically refunded). | Retry the upload. |
200 OK |
error: 9 (code: "stored_list_limit_reached") |
POST /v1/verify-mails/ |
Free-plan stored list limit reached (default: 10 non-deleted lists; unlimited on Paid plans; does not clear on its own). | Call DELETE /v1/delete-list/ on finished or canceled lists to free slots immediately, or buy any credit pack. |