Email Validation

Verify email addresses in real-time. Detect disposable, invalid, and mistyped addresses.

GET/v1/email/validate

Validate an email address by checking its format, domain MX records, and whether it belongs to a disposable email provider. Optionally suggests corrections for common typos (e.g., gmial.com to gmail.com).

Authentication

Requires x-api-key header. See Authentication.

Parameters

NameTypeRequiredDefaultDescription
emailstringYes-The email address to validate.
check_mxbooleanNotrueWhether to check MX records for the domain.
suggestbooleanNotrueWhether to suggest corrections for typos.

Example Request

-blue-400 font-semibold">curl -X GET -emerald--amber-400">400">"https://api.aicores.io/v1/email/validate?email=john@gmial.com" \
  -H -emerald--amber-400">400">"x-api-key: sk_live_your_key_here"

Example Response

{
  400">"email": 400">"john@gmial.com",
  400">"valid": false,
  400">"disposable": false,
  400">"mx_found": false,
  400">"format_valid": true,
  400">"did_you_mean": 400">"john@gmail.com",
  400">"domain": 400">"gmial.com",
  400">"free_provider": false
}

Response Fields

FieldTypeDescription
emailstringThe email address that was validated
validbooleanWhether the email is considered valid
disposablebooleanWhether the email uses a disposable provider
mx_foundbooleanWhether MX records exist for the domain
format_validbooleanWhether the email format is syntactically correct
did_you_meanstring | nullSuggested correction if a typo was detected
domainstringThe domain portion of the email
free_providerbooleanWhether the domain is a free email provider (Gmail, Yahoo, etc.)

Error Codes

StatusErrorDescription
400invalid_emailThe email parameter is missing or empty.
401unauthorizedMissing or invalid API key.
429rate_limit_exceededToo many requests. Retry after the specified delay.