Email validation API
Check an address before you store it or send to it: typos, domains that can't receive mail, throwaway inboxes and addresses that already bounced. One API call, on every TrivSend plan, run from India.
Start free · Validation in the docs
Check an address
curl -X POST https://api.trivsend.com/validations \
-H "Authorization: Bearer $TRIVSEND_API_KEY" -H "Content-Type: application/json" \
-d '{"email": "asha@gmial.com"}'{
"object": "validation",
"email": "asha@gmial.com",
"result": "valid",
"reason": "accepted",
"did_you_mean": "asha@gmail.com",
"checks": { "syntax": true, "mail_server": true, "disposable": false, "role": false, "free": false, "suppressed": false }
}did_you_mean catches near-misses of common providers, so your sign-up form can ask "Did you mean asha@gmail.com?" instead of creating an account nobody can reach.
What each result means
result | reason | Suggested handling |
|---|---|---|
valid | accepted | Accept. If did_you_mean is set, ask the person to confirm. |
risky | disposable, role_address | Accept or warn, your choice. |
invalid | invalid_syntax, no_mail_server, suppressed | Reject, or ask for another address. |
unknown | dns_error | Accept, and try again later. A DNS failure is never reported as invalid. |
Validation checks the syntax, the domain's mail servers (MX), lists of disposable and role addresses (info@, sales@), and your own suppression list. It never connects to the mailbox, so valid means the domain takes mail and nothing marks this address risky, not this inbox exists. The lists are kept short on purpose: a false "risky" would cost you a real sign-up.
From your code
// Node.js: npm install trivsend
const { data } = await trivsend.validations.validate(email);
if (data.result === "invalid") return showError("Please check your email address");# Python: pip install trivsend
result = client.validations.validate(email)
if result["did_you_mean"]:
ask_to_confirm(result["did_you_mean"])// PHP: composer require trivsend/trivsend
$result = $trivsend->validations->validate(['email' => $email]);Cleaning an existing list? POST /validations/batch takes up to 100 addresses at a time and returns one result for each.
Why validate with TrivSend
- Fewer bounces. A bad address caught at sign-up never becomes a bounce that counts against your sending domain's reputation.
- Your suppression list is checked too, so an address that hard-bounced or complained before is flagged before you send to it again.
- The addresses stay with us in India. Validation runs on TrivSend's own servers in Mumbai; addresses are not passed to another validation service.
- Included in every plan, with the same API key you send with. Free for 3,000 emails a month (pricing).
Also see: Transactional email · OTP email · Email API for India