Skip to main content

Overview

The validate module checks email addresses across four dimensions:
CheckWhat it does
FormatRFC 5322 syntax validation
MX recordsDNS lookup to confirm the domain accepts email
DisposableDetects throwaway providers (mailinator, yopmail, etc.)
Free providerFlags consumer inboxes (gmail, hotmail, etc.)
MX results are cached for 24 hours, so repeated lookups on the same domain are fast and free of extra DNS queries.

Use cases

  • Lead capture forms — reject invalid or disposable emails before they enter your CRM
  • B2B qualification — flag free_provider: true addresses for manual review
  • Data cleaning — validate existing email lists and surface typo corrections via suggestion

Typo correction

When the domain looks like a common misspelling, the API returns a suggestion field with the likely intended domain:
{
  "email": "user@gmial.com",
  "suggestion": "gmail.com"
}
Use this to prompt the user to confirm or correct their email before submitting.

Response fields at a glance

FieldTypeDescription
validbooleanPrimary signal — format + MX both pass
format_validbooleanRFC 5322 syntax check
mx_validbooleanDomain has at least one MX record
disposablebooleanKnown throwaway domain
free_providerbooleanConsumer inbox (gmail, hotmail, etc.)
domainstringDomain portion of the email
suggestionstring | nullCorrected domain if a typo is detected

Pricing

Email validation is included in all plans at no extra cost.