API reference
Response Reference: /validate
This page documents the response contract for POST /validate. It explains what each field means, how to interpret outcomes, and how to build safe gating logic for signups and list hygiene.
Request
Base URL: https://api.validatedmails.com. Send JSON with Content-Type: application/json and Authorization: Bearer YOUR_API_KEY.
Create a key, then use the free connection check before sending paid requests.
One credit per valid, risky, or invalid result. Unknown results are free. Your account needs enough credits before the request starts.
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Email address to verify. The response reports its status and available signals. |
curl -X POST https://api.validatedmails.com/validate \
-H "Authorization: Bearer $VALIDATEDMAILS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"person@example.com"}'Illustrative HTTP 200 response
{
"email": "person@example.com",
"status": "valid",
"is_valid": true,
"score": 95,
"reason": "Valid",
"trace_id": "..."
}Other supported request options
GET /validate also accepts an email query parameter. API keys can be passed as a token query parameter, but Bearer authentication keeps credentials out of URLs. Use POST and Bearer authentication for new integrations.
Optional query parameter debug=true adds diagnostics. Optional vps in the query or body defaults to regular; provider restrictions may reject a forced route with HTTP 400.
Batch requests
Use the same Bearer header and JSON content type. The required emails field is an array of 1–100 email strings by default. An oversized request returns HTTP 400 with detail: batch_too_large and a max value.
curl -X POST https://api.validatedmails.com/validate/batch \
-H "Authorization: Bearer $VALIDATEDMAILS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"emails":["alex@example.com","sales@example.org"]}'The response contains count, charged, errors, and ordered results. HTTP 200 can contain partial failures. Inspect each item’s status and error before using it.
{
"count": 2,
"charged": 1,
"errors": 0,
"results": [
{ "email": "alex@example.com", "status": "valid", "trace_id": "..." },
{ "email": "sales@example.org", "status": "unknown", "trace_id": "..." }
]
}HTTP errors and retries
- 400: fix the JSON or required input fields.
- 401: check or replace your API key.
- 402: add credits to your account.
- 429: wait before retrying; honor
Retry-Afterwhen provided. - 5xx: the service could not complete the request. Retain
X-Request-Idfor support.
{"detail":"unauthorized"}A successful HTTP response does not imply an email is valid. Read the JSON status and per-item batch errors.
A timeout or lost response can happen after processing and charging. There is no documented server-side idempotency key; do not automatically resend paid requests after an ambiguous failure. Cache completed results where appropriate.
Overview
The /validate endpoint returns a normalized view of syntax, DNS routing, and (when possible) SMTP probe results. The contract is deterministic and time-budgeted.unknown is returned when routing cannot be conclusively established.
The response includes a high-level verdict (status, is_valid) along with explicit signals (syntax_ok, mx_ok, smtp_ok) so you can apply your own risk policy.
Quick example response
This is a representative response payload.
{
"is_valid": true,
"score": 95,
"email": "info@validatedmails.com",
"normalized": "info@validatedmails.com",
"reason": "Valid",
"domain": "validatedmails.com",
"free": false,
"role": true,
"disposable": false,
"accept_all": false,
"tag": false,
"smtp_ok": true,
"mx_record": "gmail-smtp-in.l.google.com",
"syntax_ok": true,
"mx_ok": true,
"a_ok": true,
"response_ms": 527,
"mx_hosts": [
"gmail-smtp-in.l.google.com",
"alt1.gmail-smtp-in.l.google.com",
"alt2.gmail-smtp-in.l.google.com"
],
"status": "valid",
"reasons": ["syntax_ok", "mx_ok", "a_ok"],
"trace_id": "..."
}Result statuses
status
The status field is the primary verdict with four values:
- valid: syntax is valid, routing exists, SMTP accepted the recipient, and the domain is not catch-all.
- risky: SMTP accepted the recipient, but the domain appears catch-all (
accept_all=true) or the provider accepts unknown recipients and cannot safely confirm the mailbox. - invalid: syntax is invalid, the domain explicitly publishes null MX, DNS confirms NXDOMAIN, or SMTP explicitly rejected the recipient.
- unknown: routing cannot be conclusively established within configured DNS or SMTP time budgets.
is_valid
is_valid is a boolean mirror of status === "valid". Usestatus when you need the full verdict and reserveis_valid for simple pass/fail checks.
Top-level fields
| Field | Type | Meaning & interpretation |
|---|---|---|
is_valid | boolean | True when status is valid. Use status for full verdict logic. |
status | string | Final verdict: valid, risky, invalid, or unknown. This is the authoritative machine-readable field for integration logic. It is mapped from SMTP outcomes, catch-all detection, and pre-SMTP routing signals. |
score | integer (0-100) | Confidence score that blends syntax, routing, SMTP, and risk flags. Use it as a secondary ranking input in your policy. |
reason | string | End-user verdict label: Valid, Risky,Invalid, or Unknown. Do not branch integration logic on this human-readable field. |
email | string | Original input email. |
normalized | string | null | Normalized email (lowercased domain, canonical form). Null if syntax fails. |
domain | string | null | Extracted domain. Null if syntax fails. |
syntax_ok | boolean | Syntax validation result. false always yields invalid. |
mx_ok | boolean | DNS MX lookup succeeded. If both mx_ok and a_ok are false, routing is considered missing. |
a_ok | boolean | Domain has A/AAAA records usable for standards-compliant implicit-MX fallback routing. |
response_ms | integer | Total end-to-end validation response time in milliseconds. |
mx_hosts | string[] | Resolved MX hosts (limited list for routing and probe selection). |
reasons | string[] | Machine-friendly reason codes. Examples include syntax_ok,mx_ok, a_ok, mx_missing_or_unreachable,a_missing_or_unreachable, dns_nxdomain,dns_timeout, no_mx_a_fallback_timeout. |
free | boolean | Domain is a consumer/free inbox provider. |
role | boolean | Local part is role-based (e.g., info@, support@). |
disposable | boolean | Domain belongs to a disposable/temporary provider list. |
accept_all | boolean | null | Catch-all detection from SMTP probes. Null when SMTP was skipped or inconclusive. |
tag | boolean | Address includes plus-tagging. |
smtp_ok | boolean | null | True only when SMTP accepted the recipient. Null if SMTP was not attempted. |
mx_record | string | null | MX host contacted during SMTP probing (when available). |
trace_id | string | Trace identifier for debugging and support. |
debug | object | null | Present only when debug mode is enabled. Includes API timing, probe selection, and timeout budgets. |
Signals & flags
Address & domain signals
- free: from a curated free-provider list.
- disposable: from a curated disposable-provider list.
- role: local part matches role-based patterns.
- tag: plus-tagging detected in the local part.
Routing & SMTP signals
- syntax_ok, mx_ok, a_ok are derived from syntax and DNS checks.
- smtp_ok is true only when SMTP accepted the recipient.
- accept_all is set when the probe detects catch-all behavior; treat it as a policy input; accepted catch-all results are surfaced as
status="risky".
Timing & budgets
Show details
Validation is time-budgeted by design. unknown is returned when DNS or SMTP deadlines are reached before routing can be established conclusively.
- Response timing:
response_msreports total validation time for the request. - Debug timing: enabling debug returns
debug.api_ms,debug.probe_wait_ms, and timeout budgets to help you audit latency.
High-volume usage, retries, and credits
ValidatedMails supports high-volume workloads with synchronous batch pages and server-side bulk jobs. Use single-address /validate calls for real-time form checks, POST /validate/batch for API worker batches, and bulk jobs for full CSV/list processing.
Synchronous batch API
- Send up to 100 emails per synchronous batch request.
- Results are returned in the same order as the submitted
emailsarray. - The service manages per-address validation concurrency inside the batch.
- For higher throughput, run multiple batch workers and increase worker count to match your target throughput.
- The 100-email request size is a response-page size, not an account throughput ceiling.
Bulk jobs
- Use Bulk validation for CSV imports and full-list jobs.
- Bulk jobs are stored server-side, processed in the background, and downloadable as CSV.
- Production bulk jobs support up to 200,000 rows per file, subject to upload-size limits.
Temporary pressure
- HTTP
429responses includeRetry-After. - For HTTP
429, wait before retrying. After timeouts or lost responses, check whether processing completed before resending a paid request. - Do not retry
400,401,402, or403without changing the request or account state.
Best practices
Signup gating (real-time)
- Allow
status=validby default. - Treat
status=riskyas a catch-all review or friction state. - Treat
status=unknownas a deferred verification state. Use secondary confirmation flows (email confirmation, OTP, or manual review) based on policy. - Block
status=invalidimmediately to prevent hard bounces.
Bulk list cleaning
- Keep a separate segment for
unknownand reprocess under a different validation window when needed. - Use
scoreand flags (role,disposable,accept_all) to rank risk, not as hard rules. - For
accept_alldomains, prefer engagement-based revalidation before sending large campaigns.
Handling unknown
- Treat
unknownas deferred verification, not invalid. - If retrying, run validation in a different network window to avoid repeated routing constraints.
Role & disposable signals
- Role-based and disposable mailboxes are not inherently invalid. They can represent legitimate contacts, especially for support and billing.
- If you gate on these, document the rationale and allow overrides in your workflow.
Client-side caching
- Cache responses by normalized email + domain for a short TTL to reduce repeated probes.
- There is no documented server-side idempotency key. Cache completed results to avoid repeated paid requests.
FAQ / edge cases
Why do I see unknown with SMTP timeouts?
SMTP hosts may enforce connection throttling or probe rate controls. When routing cannot be conclusively determined within the configured time budget, the API returnsunknown.
Does accepted mean the inbox exists?
SMTP acceptance confirms recipient routing acceptance at the time of validation. Downstream delivery behavior depends on provider-level policies.
What about catch-all domains?
Catch-all domains accept any recipient. Use accept_all andmailbox_specific to determine whether you should require additional verification.
Do 429 responses consume credits?
No. HTTP 429 responses represent temporary capacity pressure and are not charged. For batch requests, per-address temporary capacity errors are returned insideresults[*].error where possible.
Should I use single requests or batches for large lists?
Use POST /validate/batch for API worker queues and synchronous 100-email pages. For very large CSV imports or full-list jobs, use Bulk validation so the workload can run server-side and produce a downloadable result.
Why are low-level SMTP diagnostics not included?
The public response prioritizes stable contract fields. Use status,reasons, and smtp_ok for integration logic.