Email Verification API Guide: Real-Time Signup Validation vs Batch List Cleaning
When to call a real-time verify endpoint, when to run a bulk job, and how to handle timeouts, catch-all results, webhooks and retries in production.

On this page
- Real-time validation vs batch list cleaning
- Authentication and your first request
- Real-time signup validation in practice
- Set a latency budget
- Timeouts and fail-open behavior
- Handling unknown and catch_all results
- Typo suggestions
- Batch list cleaning with the bulk endpoint
- Polling strategy
- Choosing a download filter
- Webhooks and HMAC signature checks
- Rate limiting and retries
- Cost planning for API usage
- Integration checklist
- FAQ
An email verification API answers one question in code: can this address receive mail right now, and is it safe to send to? Use real-time calls to POST /v1/verify at the moment someone types an address into a signup or checkout form, and use batch jobs through POST /v1/bulk when you need to clean an existing list of thousands or millions of contacts. Most teams need both: real-time validation keeps new bad data out, and batch cleaning removes the decay that builds up in data you already have.
This guide walks through both patterns with the VeriBulk REST API v1: latency budgets, timeouts, fail-open logic, how to treat unknown and catch_all results, typo suggestions, bulk job polling, signed webhooks, filtered downloads, rate limiting, retries and cost. The full reference lives in the API documentation and the machine-readable OpenAPI spec.
Real-time validation vs batch list cleaning
Both modes run the same checks: syntax under RFC 5321 and RFC 5322, domain and DNS resolution, MX lookup (including implicit MX and null MX under RFC 7505), a disposable domain list, role and free provider flags, provider fingerprinting from MX hosts, an SMTP mailbox handshake that stops at RCPT TO without sending a message, and catch-all detection using a random address probe. What differs is how results reach your system and how much time you can afford to wait.
| Aspect | Real-time (POST /v1/verify) | Batch (POST /v1/bulk) |
|---|---|---|
| Typical use | Signup, checkout, lead forms, CRM entry | Existing lists, imports, re-engagement, pre-campaign hygiene |
| Input | One address per request | JSON array or CSV, TSV, TXT, XLSX upload |
| Response | Synchronous JSON result | Job id, then status polling or a webhook |
| Latency budget | Usually 1 to 5 seconds, set by your form UX | Minutes to hours depending on list size |
| Failure strategy | Fail open, never block a user on a timeout | Retry the job status call, unknowns refunded as credits |
| Output | Status, reason, score, safe_to_send, checks | Filtered download: all, valid, safe, catch_all, invalid, unknown |
Real-time verification prevents new bad addresses from entering your database. Batch verification fixes the addresses that are already there. Running only one of them leaves a gap that shows up as bounces later.
Authentication and your first request
Every request uses the base URL https://veribulk.com and an API key sent as Authorization: Bearer <key>. The X-API-Key header is also accepted if your HTTP client makes bearer tokens awkward. Keep the key on your server; never ship it in browser JavaScript or a mobile app bundle, because anyone could extract it and spend your credits.
curl -s https://veribulk.com/v1/verify \
-H "Authorization: Bearer $VERIBULK_KEY" \
-H "Content-Type: application/json" \
-d '{ "email": "[email protected]" }'
A typical response contains these fields:
{
"email": "[email protected]",
"status": "valid",
"reason": "mailbox_accepts_mail",
"score": 96,
"safe_to_send": true,
"checks": { "syntax": true, "domain": true, "mx": true,
"disposable": false, "role": false, "free": false, "smtp": true },
"provider": { "name": "Google Workspace", "key": "google_workspace" },
"mx": ["aspmx.l.google.com"],
"credits_remaining": 19873
}
The status field is one of valid, invalid, catch_all, disposable or unknown. The reason explains why, for example mailbox_not_found, no_mx_records, null_mx, disposable_domain, domain_accepts_all, security_gateway, dns_timeout or possible_typo. The score runs from 0 to 100, and safe_to_send is a single boolean you can act on directly. You can try the same logic by hand in the free email verifier tool before writing any code.
Real-time signup validation in practice
Set a latency budget
Syntax, DNS and MX checks finish in milliseconds. The SMTP handshake is the slow part, because it depends on the receiving mail server. Most servers answer in under a second, but some use greylisting or tarpitting and deliberately respond slowly. Decide up front how long your form can wait. A common budget is 3 seconds for a signup form and 5 seconds for a B2B lead form where data quality matters more than speed.
Timeouts and fail-open behavior
Fail open means that if the API does not answer inside your budget, or returns a network error, you accept the address and mark it for later batch verification. Failing closed (rejecting the user) turns a slow mail server or a brief network issue into a lost customer. The only addresses you should block outright are ones with a definitive negative result.
import requests
API = "https://veribulk.com/v1/verify"
HEADERS = { "Authorization": "Bearer " + VERIBULK_KEY }
def check_signup_email(email):
try:
r = requests.post(API, json={ "email": email }, headers=HEADERS, timeout=3.0)
r.raise_for_status()
res = r.json()
except requests.RequestException:
return "accept_and_recheck" # fail open
if res["status"] == "invalid":
return "reject"
if res["status"] == "disposable":
return "reject_or_warn"
if res["reason"] == "possible_typo":
return "ask_user_to_confirm"
if res["status"] in ("unknown", "catch_all"):
return "accept_and_flag"
return "accept"
Handling unknown and catch_all results
An unknown result means the check could not finish: a timeout, greylisting, smtp_unavailable or a temporary error. It says nothing about whether the address is good, so do not reject the user. Accept it, store the status, and re-verify later in a batch. VeriBulk refunds unknown results as credits automatically, so the retry does not double your cost.
A catch_all result (reason domain_accepts_all) means the domain accepted a random address that almost certainly does not exist, so the server cannot confirm any single mailbox. Many catch-all addresses are real business contacts. Accept them at signup, then rely on engagement: a confirmed double opt-in click is stronger evidence than any SMTP probe. Our explainer on what a catch-all email address is covers the details, and the catch-all verification API page describes how the probe works.
Typo suggestions
When the reason is possible_typo, the domain looks like a misspelling of a common provider, such as gmial.com or hotmial.com. Show an inline prompt like "Did you mean [email protected]?" and let the user choose. Never silently rewrite the address; the user might really own an unusual domain. A single confirmation prompt recovers a meaningful share of signups that would otherwise be lost to a hard bounce on the welcome email.
Call the API from your backend after basic client-side syntax checks, and debounce the call so it fires on blur or on submit, not on every keystroke. Keystroke validation multiplies your credit usage by the length of the address and adds load without improving accuracy.
Batch list cleaning with the bulk endpoint
For lists, send one request that creates a job. You can post a JSON array of addresses or upload a CSV, TSV, TXT or XLSX file as multipart form data. The email column is detected automatically and the original row order is kept, which matters when you join results back to a CRM export.
- Create the job with
POST /v1/bulk. Duplicates are removed before charging, so 1 credit covers 1 unique address. - Store the returned job id.
- Either poll
GET /v1/bulk/<id>or wait for thebulk.completedwebhook. - Download the subset you need with
GET /v1/bulk/<id>/download?filter=safe. - Import the results into your sending platform and suppress everything else.
# create a job from a file
curl -s https://veribulk.com/v1/bulk \
-H "Authorization: Bearer $VERIBULK_KEY" \
-F "[email protected]"
# check status
curl -s https://veribulk.com/v1/bulk/JOB_ID \
-H "Authorization: Bearer $VERIBULK_KEY"
# download only addresses that are safe to send
curl -s -o safe.csv "https://veribulk.com/v1/bulk/JOB_ID/download?filter=safe" \
-H "Authorization: Bearer $VERIBULK_KEY"
Polling strategy
If you poll, start with a 10 second interval and back off to 30 or 60 seconds for large jobs. Polling every second wastes requests and can trigger rate limits without making the job finish sooner. For anything above a few thousand rows, a webhook is the cleaner design.
Choosing a download filter
The filter parameter accepts all, valid, safe, catch_all, invalid and unknown. Use safe for your main send, catch_all for a separate, smaller and slower segment, and invalid to build a suppression list. Results are deleted automatically after 30 days, so download what you need promptly. If you only need a quick one-off cleanup without code, the free list cleaner handles deduplication and formatting in the browser.
Webhooks and HMAC signature checks
When a job finishes, VeriBulk sends a POST to your webhook URL with the header X-VeriBulk-Event: bulk.completed and X-VeriBulk-Signature: sha256=<hex>, where the hex value is an HMAC-SHA256 of the raw request body using your webhook secret. Always verify the signature before trusting the payload, and compute it over the raw bytes, not over re-serialized JSON, because key order and whitespace changes would break the comparison.
import hmac, hashlib
def verify_webhook(raw_body: bytes, header_value: str, secret: str) -> bool:
expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header_value or "")
# in your handler
if not verify_webhook(request.body, request.headers.get("X-VeriBulk-Signature"), SECRET):
return HttpResponse(status=401)
Use a constant-time comparison such as hmac.compare_digest to avoid timing leaks. Return a 2xx status quickly and do the heavy work (downloading results, updating the CRM) in a background task. Make the handler idempotent by keying on the job id, since any webhook system may deliver the same event more than once.
Rate limiting and retries
Treat HTTP 429 as a signal to slow down, not as a failure. Read the Retry-After header if present, and otherwise use exponential backoff with jitter: wait 1 second, then 2, 4 and 8, adding a random offset of up to 50 percent so many workers do not retry at the same instant. Cap retries at about 5 attempts.
- Retry on 429, 502, 503, 504 and network timeouts.
- Do not retry on 400 (bad input) or 401 (bad key); fix the request instead.
- Do not retry 402 or similar credit errors until you top up; check balance with
GET /v1/account. - For high-volume backfills, use the bulk endpoint instead of thousands of parallel single calls.
- In real-time flows, never retry inside the user's request; fail open and re-verify later.
Cost planning for API usage
One credit equals one email check, duplicates are removed before charging, and unknown results come back as credits. That makes cost easy to forecast: count unique addresses per month from signups plus batch volume. A product with 30,000 signups per month and a quarterly clean of a 200,000 contact list uses roughly 30,000 plus about 67,000 per month, close to 100,000 credits.
VeriBulk sells one-time packs with no subscription, and credits never expire: Starter 20,000 credits for $5, Growth 100,000 for $15, Scale 300,000 for $39, Pro 1,000,000 for $75 and Enterprise 3,000,000 for $199. For comparison, approximate pay-as-you-go prices checked in November 2026 are about $390 for 100,000 checks at ZeroBounce, about $500 at NeverBounce, about $150 at DeBounce and about $129 at MillionVerifier; confirm current figures on each vendor site. The pricing page lists every pack, and our roundup of the cheapest bulk email verification services compares cost per 1,000 in more depth. If you are moving from another provider, see the ZeroBounce alternative and NeverBounce alternative pages for field mapping notes.
Integration checklist
- Store the API key in server-side configuration, never in client code.
- Add real-time verification to every form that creates a contact, with a 3 to 5 second timeout and fail-open logic.
- Reject
invalid, warn or rejectdisposable, prompt onpossible_typo, and accept and flagunknownandcatch_all. - Run a batch job on existing lists before any large campaign, and on a schedule (monthly or quarterly) after that.
- Use signed webhooks, verify HMAC over the raw body, and process results in the background.
- Back off on 429 and 5xx errors and monitor your balance through
/v1/account. - Pair verification with good authentication; our guide to SPF, DKIM and DMARC after list cleaning explains why both matter.
Done together, these steps typically keep hard bounces well under 1 percent. For the operational side of that goal, read how to reduce your hard bounce rate below 1 percent, and for the mechanics behind each check, see how bulk email verification works.
Frequently asked questions
What is the difference between real-time and batch email verification?
Real-time verification checks one address synchronously, usually inside a signup or checkout form, so bad data never enters your database. Batch verification processes an existing list as a background job and returns filtered results when it finishes. Most teams use real-time checks for new contacts and batch jobs before campaigns or on a monthly or quarterly schedule.
What timeout should I use for real-time email verification?
A budget of 3 seconds works well for most signup forms, and up to 5 seconds for B2B lead forms where data quality matters more. If the API does not answer in time, accept the address, store it as unverified and re-check it later in a batch job. Never block a user because a mail server responded slowly.
Should I reject catch_all or unknown results at signup?
No. An unknown result means the check could not finish, often due to greylisting or a temporary error, and VeriBulk refunds it as a credit. A catch_all result means the domain accepts every address, so the mailbox cannot be confirmed. Accept both, flag them, and rely on double opt-in or engagement to confirm the address.
How do I verify a VeriBulk webhook signature?
Compute an HMAC-SHA256 of the raw request body using your webhook secret, prefix the hex digest with sha256=, and compare it to the X-VeriBulk-Signature header using a constant-time function such as hmac.compare_digest. Use the raw bytes rather than re-serialized JSON, and make your handler idempotent by keying on the job id.
How should my code handle rate limits and errors?
Treat HTTP 429 as a request to slow down. Honor the Retry-After header if present, otherwise use exponential backoff with random jitter and cap retries at about five. Retry 5xx errors and network timeouts, but fix 400 and 401 errors instead of retrying. For large volumes, use the bulk endpoint rather than many parallel single calls.
How much does API verification cost with VeriBulk?
One credit equals one email check, and API calls use the same credits as file uploads. Packs are one-time purchases with no subscription and credits never expire: 100,000 credits cost $15 and 1,000,000 cost $75. Duplicates are removed before charging, unknown results are refunded as credits, and new accounts get 200 free credits.
Verify your list before the next campaign
200 free credits on signup. One-time packs from $5, credits never expire and unknown results are refunded.