Jump to API Section Tap to expand ↓
REST API v1 • JSON & CSV OpenAPI 3.1 JSON ↗

ProbeMX API Reference

Complete request schemas, response models, status codes, webhook signatures, and copy-paste examples. Base URL:

Authentication & Error Model

Create API keys (ev_live_...) inside the Dashboard. Every /v1/* endpoint accepts any of three authentication methods:

Authorization: Bearer ev_live_your_api_key
X-API-Key: ev_live_your_api_key
?api_key=ev_live_your_api_key   # convenient for Mailgun/SES webhooks & compat SDKs

Standard Error Response Model

Non-2xx responses always return structured JSON. Insufficient credit responses return 402 Payment Required with exact required/available counts.

ErrorResponse400 / 401 / 402 / 404 / 409 / 500
errorstringrequired
Machine-readable code: bad_request, unauthorized, insufficient_credits, not_found, cannot_cancel, or internal_error.
messagestringrequired
Human-readable description of what went wrong.
requiredinteger402 only
Credits required for the attempted verification or bulk job.
availableinteger402 only
Current remaining credit balance on the account.

Credits & Billing

GET/v1/credits

Returns your current credit balance and recent immutable ledger entries. New accounts start with 250 free credits; unknown results and cancelled bulk rows are always auto-refunded.

Response • 200 OKCreditsResponse
modestring
"metered" for user API keys/sessions, or "unlimited_static_key" for static admin keys.
balanceinteger | null
Current available credits.
refund_unknownsboolean
Whether unknown outcomes are automatically refunded.
ledgerCreditLedgerEntry[]
Most recent 50 credit movements (id, delta, balance_after, kind, reference_id, note, created_at).

Single Email Verification

POST/v1/verify

Runs the full waterfall — RFC syntax & IDNA, typo suggestion, disposable/role intelligence, async DNS (MX, Null MX, SPF, DMARC policy, MTA-STS), live SMTP/STARTTLS, catch-all detection, and tenant mailer feedback — within your timeout budget. Costs 1 credit (auto-refunded if state == "unknown").

Request Body (VerifyRequest)

application/jsonVerifyRequest
emailstringrequired
Email address to verify (supports UTF-8/IDNA domains and +tag subaddresses).
timeout_msintegeroptionaldefault: 15000
Total latency budget in milliseconds before returning unknown / smtp_timeout.
skip_smtpbooleanoptionaldefault: false
Skip live port-25 SMTP probing (returns Syntax, Intel, and DNS/MX checks only).
skip_catch_allbooleanoptionaldefault: false
Skip probing a randomized non-existent address for catch-all detection.
bypass_cachebooleanoptionaldefault: false
Force a fresh live check, bypassing cached verification results and catch-all verdicts.
zero_retentionbooleanoptionaldefault: false
GDPR strict mode: do not write the verification result to cache memory.

Examples

curl -X POST __BASE__/v1/verify \
  -H "Authorization: Bearer ev_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "timeout_ms": 5000,
    "zero_retention": false
  }'

Sample Response (200 OK • VerificationResult)

{
  "email": "[email protected]",
  "normalized_email": "[email protected]",
  "canonical_email": "[email protected]",
  "state": "deliverable",
  "reason": "accepted_email",
  "score": 100,
  "score_factors": [
    { "signal": "smtp_accepted", "delta": 87, "detail": "remote MX accepted RCPT TO on non-catch-all server" },
    { "signal": "starttls", "delta": 3, "detail": "MX supports encrypted STARTTLS" },
    { "signal": "spf_present", "delta": 3, "detail": "valid SPF record published" },
    { "signal": "dmarc_reject", "delta": 5, "detail": "strict DMARC policy (p=reject) indicates actively managed domain" },
    { "signal": "mta_sts_present", "delta": 2, "detail": "MTA-STS policy published (_mta-sts)" }
  ],
  "did_you_mean": null,
  "domain": {
    "name": "acme.io",
    "ascii_domain": "acme.io",
    "mx_records": ["aspmx.l.google.com"],
    "implicit_mx": false,
    "null_mx": false,
    "provider": "google_workspace",
    "has_spf": true,
    "has_dmarc": true,
    "dmarc_policy": "reject",
    "has_mta_sts": true,
    "is_disposable": false,
    "is_free": false
  },
  "account": {
    "local_part": "alice.chen+vip",
    "is_role": false,
    "has_subaddress": true,
    "subaddress_tag": "vip"
  },
  "smtp": {
    "probed": true,
    "connected": true,
    "mx_host": "aspmx.l.google.com",
    "egress_id": "direct",
    "starttls": true,
    "is_catch_all": false,
    "mailbox_full": false,
    "greylisted": false,
    "response_code": 250,
    "enhanced_code": "2.1.5",
    "response_message": "2.1.5 OK"
  },
  "cached": false,
  "duration_ms": 214,
  "verified_at": "2026-11-22T20:15:00Z"
}

Synchronous Batch Verification

POST/v1/verify/batch

Verifies 1 to 50 emails concurrently in a single request, preserving input order and applying cross-row catch-all pattern scoring. Unknown results are automatically refunded.

Request BodySyncBatchRequest
emailsstring[]required
Array of 1–50 email addresses. Use POST /v1/bulk for larger lists.
timeout_ms / skip_smtp / skip_catch_all / bypass_cache / zero_retentionoptionsoptional
Same per-request overrides as VerifyRequest.
Response • 200 OKSyncBatchResponse
countinteger
Number of returned results.
resultsVerificationResult[]
Ordered array matching input positions.

Result Models & Enums

Full field-by-field specification of VerificationResult returned by real-time, batch, and bulk endpoints.

ModelVerificationResult
emailstring
Original trimmed input email.
normalized_emailstring | null
Lowercased local-part + ASCII/Punycode domain (null if invalid syntax).
canonical_emailstring | null
Deduplication identity: strips +tag subaddresses and normalizes Gmail dot-aliases / googlemail.com.
stateVerificationState
deliverable, undeliverable, risky, or unknown.
reasonVerificationReason
Granular verdict reason (see enum table below).
scoreinteger (0–100)
Calibrated confidence score. Guaranteed invariant: sum(score_factors[].delta) == score.
score_factorsScoreFactor[]
Explainable array of { signal: string, delta: integer, detail: string }.
catch_all_confidenceinteger (0–100) | omitted
Present on catch-all domains; combines SPF/DMARC/MTA-STS, local-part plausibility, cross-row bulk pattern match, and mailer feedback.
did_you_meanstring | null
Typo suggestion (e.g. [email protected] → [email protected]). Never emitted for valid or disposable domains.
domainDomainDetails | null
Resolved domain metadata.
name, ascii_domain, mx_records: string[], implicit_mx: bool, null_mx: bool, provider: MailProvider, has_spf: bool, has_dmarc: bool, dmarc_policy: missing|none|quarantine|reject, has_mta_sts: bool, is_disposable: bool, is_free: bool.
accountAccountDetails | null
local_part: string, is_role: bool, has_subaddress: bool, subaddress_tag: string | null.
smtpSmtpDetails
probed, connected, mx_host, egress_id, starttls, is_catch_all, mailbox_full, greylisted, response_code, enhanced_code, response_message.
cached / duration_ms / verified_atbool / integer / RFC 3339
Whether served from cache, wall-clock duration in ms, and UTC timestamp.

VerificationReason Enum

accepted_emailMX accepted RCPT TO on non-catch-all server (or confirmed by mailer delivery).
mailbox_fullMX confirmed mailbox exists but is over quota (state: deliverable — does not penalize deliverability).
rejected_emailMX permanently rejected recipient (550 5.1.1, M365 5.4.1 DBEB).
verified_bounceOverridden to undeliverable by recent verified hard bounce from your mailer feedback.
catch_allMX accepts randomized non-existent probes (see catch_all_confidence).
role_accountShared mailbox (info@, support@, sales@).
disposableKnown temporary/burner email provider (mailinator.com, yopmail.com).
null_mxDomain publishes RFC 7505 Null MX (0 .) explicitly refusing mail.
no_mx_recordsNo MX records and fallback A/AAAA host does not accept SMTP on port 25.
invalid_syntax / invalid_domainFailed RFC 5322/6531/IDNA syntax or DNS returned NXDOMAIN.
greylistedTemporary 4xx deferral (automatically retried in bulk mode; refunded if unresolved).
smtp_blocked / smtp_timeoutPolicy/IP block (5.7.x / MAIL FROM rejected) or timeout — refunded automatically.

Async Bulk: Create & Upload

POST/v1/bulk(JSON or text/csv)
POST/v1/bulk/upload(multipart/form-data CSV)

Returns 202 Accepted immediately with a BulkJob object — no HTTP connection is held open. Up to 250,000 rows per job. Credits are reserved only for deduplicated unique_count rows, and any unknown or cancelled rows are auto-refunded.

Request Body (JSON or Multipart Form Fields)BulkCreateRequest
emailsstring[]required (JSON)
Array of emails for POST /v1/bulk. For POST /v1/bulk/upload, send multipart field file (auto-detects an email column header or first column containing @).
webhook_urlstring (http/https)optional
URL to receive an HMAC-SHA256 signed bulk.completed POST callback.
dedupe_aliasesbooleanoptionaldefault: false
Deduplicate +tag subaddresses and Gmail dot-aliases using canonical_email before charging credits.
zero_retentionbooleanoptionaldefault: false
Skip caching and automatically purge all PII rows from storage as soon as completed results are downloaded.
curl -X POST __BASE__/v1/bulk/upload \
  -H "Authorization: Bearer ev_live_your_api_key" \
  -F "[email protected]" \
  -F "dedupe_aliases=true" \
  -F "zero_retention=true" \
  -F "webhook_url=https://yourapp.com/webhooks/probemx"

Async Bulk: Job Status & History

GET/v1/bulk/{job_id}
GET/v1/bulk(list recent 50 jobs for your account)

Lightweight status read. Progress updates smoothly in real time as each MX host group finishes.

Response • 200 OKBulkJob
idstring
Unique job identifier (job_...).
statusenum
queued | running | completed | failed | cancelled.
total_submitted / unique_count / processed_countinteger
Raw rows submitted, deduplicated unique rows billed, and rows completed so far.
deliverable_count / undeliverable_count / risky_count / unknown_countinteger
Live breakdown of completed results by verdict state.
progress_percentnumber (0–100)
Percentage complete.
webhook_url / webhook_statusstring | null / enum
none | pending | delivered | failed.
zero_retention / purged_atboolean / RFC 3339 | null
Indicates zero-retention mode and timestamp when PII rows were wiped.
created_at / started_at / completed_at / error_messageRFC 3339 | null
Lifecycle timestamps and failure reason if status == "failed".

Async Bulk: Results & CSV Export

GET/v1/bulk/{job_id}/results
Query ParametersBulkResultsQuery
formatstringoptionaldefault: json
json (paginated) or csv (full attachment download with 20 columns including canonical_email, catch_all_confidence, dmarc_policy, has_mta_sts).
stateVerificationStateoptional
Filter rows to deliverable, undeliverable, risky, or unknown.
limit / offsetintegeroptionaldefault: 100 / 0 (max 5000)
Pagination controls for JSON output.
JSON Response • 200 OKBulkResultsResponse
job_id / status / zero_retention / auto_purgedmetadata
auto_purged: true indicates zero-retention rows were wiped after this download.
limit / offset / count / resultsVerificationResult[]
Paginated verification records in original upload order.

Cancel Job & Purge PII

DELETE/v1/bulk/{job_id}

Cancels a queued or running job and automatically refunds all unprocessed + unknown credits. Returns { "job_id": "...", "cancelled": true } (or 409 Conflict if already terminal).

DELETE/v1/bulk/{job_id}/purge

Immediately deletes all email PII rows from storage while keeping aggregate job counters. Returns { "job_id": "...", "purged": true, "deleted_rows": 200 }.

Signed Bulk Webhooks

On bulk completion, ProbeMX sends a POST request to your webhook_url (up to 3 retries with exponential backoff) with these headers:

X-Webhook-Event: bulk.completed
X-Webhook-Timestamp: 1763836000
X-Webhook-Signature: t=1763836000,v1=<hex(HMAC-SHA256(secret, "{timestamp}.{raw_body}"))>

Webhook Payload Model

{
  "event": "bulk.completed",
  "timestamp": 1763836000,
  "job": { /* full BulkJob object */ }
}

Signature Verification

import crypto from "crypto";

export function verifySignature(secret, header, rawBody) {
  const parts = Object.fromEntries(header.split(",").map(p => p.split("=")));
  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${parts.t}.${rawBody}`)
    .digest("hex");
  return crypto.timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
}

Customer Mailer Feedback Loop

POST/v1/feedback(generic batch)
POST/v1/feedback/mailgun(native Mailgun webhook)
POST/v1/feedback/ses(native AWS SES / SNS webhook)

Feeds real post-send delivery and bounce telemetry back into your HMAC-blinded, tenant-isolated index. Policy/RBL blocks (5.7.x, Spamhaus, DMARC) and transient conditions (5.2.2 mailbox full, message too large) are automatically ignored so they never hurt deliverability.

Request Body{ events: FeedbackEvent[] } (max 5000)
emailstringrequired
Recipient email address (stored only as a keyed HMAC-SHA256 hash).
eventenumrequired
delivered | hard_bounce | soft_bounce | complaint.
smtp_code / enhanced_code / diagnosticinteger / stringoptional
SMTP status details (e.g. 550, "5.1.1", "User unknown") used by the anti-poisoning classifier.
occurred_atRFC 3339optional
Event timestamp (defaults to current UTC time).
Response • 200 OKFeedbackResponse
summaryFeedbackIngestSummary
{ accepted_delivered, accepted_hard_bounces, ignored_policy_or_soft, invalid_emails }.

Drop-In Emailable & Hunter Compat

GET/v1/compat/emailable/verify?email=...&api_key=...

Returns Emailable's exact response keys (email, user, domain, state, reason, score, disposable, free, role, accept_all, mx_record, smtp_provider, did_you_mean, duration) plus our transparent score_factors.

GET/v1/compat/hunter/email-verifier?email=...&api_key=...

Returns Hunter's { data: { status, result, score, email, regexp, gibberish, disposable, webmail, mx_records, smtp_server, smtp_check, accept_all, block, sources, score_factors }, meta: { params: { email } } } format.

Egress IP Reputation Health

GET/v1/egress/health

Inspect per-(egress_id, provider) circuit breaker status and cache key blinding.

Response • 200 OKEgressHealthResponse
cache_key_blindedboolean
true when email cache keys are HMAC-SHA256 blinded in RAM.
routesEgressHealthSnapshot[]
Array of { egress_id, provider, total_requests, total_blocks, consecutive_blocks, circuit_open, cooldown_remaining_secs }.