Menu

Expand
Rate this page:

Email Address Validation

Email Address Validation is available to Email API Pro and Premier level accounts only. An Email Validation API key is required. See the Email Address Validation overview page for more information.

The Email Address Validation API provides detailed information about the validity of email addresses, which helps you create and maintain contact lists and reduce bounce rates.

This API provides two options:

  • Real Time Email Address Validation: real time, detailed information on the validity of a single email address.
    • Use this option to prompt users that they've provided an invalid email, prevent invalid emails from entering your database
  • Bulk Email Address Validation: Asynchronous, bulk validation of up to one million email addresses.
    • Use this option to help you remove invalid emails from your existing lists.

Real Time Email Address Validation - API Reference

POST /v3/validations/email

Base url: https://api.sendgrid.com

This endpoint allows you to validate an email address.

Authentication

  • API Key

Headers

Authorization
string
default: Bearer <<YOUR_API_KEY_HERE>>
required

Request Body

object
email
string

The email address that you want to validate.

required
source
string

A one-word classifier for where this validation originated.

{
  "email": "example@example.com",
  "source": "signup"
}

Responses

object
result
object
required
email
string

The email being validated

format: email
required
verdict
string

A generic classification of whether or not the email address is valid.

Allowed Values: Valid, Risky, Invalid
required
score
number

A numeric representation of the email validity.

required
local
string

The local part of the email address.

required
host
string

The domain of the email address.

format: hostname
required
suggestion
string

A suggested correction in the event of domain name typos (e.g., gmial.com)

checks
object

Granular checks for email address validity.

required
domain
object

Checks on the domain portion of the email address.

required
has_valid_address_syntax
boolean

Whether the email address syntax is valid.

required
has_mx_or_a_record
boolean

Whether the email has appropriate DNS records to deliver a message.

required
is_suspected_disposable_address
boolean

Whether the domain appears to be from a disposable email address service.

required
local_part
object

Checks on the local part of the email address.

required
is_suspected_role_address
boolean

Whether the local part of email appears to be a role or group (e.g., hr, admin)

required
additional
object

Additional checks on the email address.

required
has_known_bounces
boolean

WHether email sent to this address from your account has bounced.

required
has_suspected_bounces
boolean

Whether our model predicts that the email address might bounce.

required
source
string

The source of the validation, as per the API request.

ip_address
string

The IP address associated with this email.

required
Loading Code Sample...
        
        

        Validate an email

        The optional source parameter can be used identify the source of the email address. if you choose to integrate with multiple email address captures and want to be able to compare their results.

        The source must be a string, only using alphanumeric characters and spaces. For example:

        {
          "email": "email@example.com",
          "source": "Newsletter Signup"
        }
        

        There is a limit of 50 sources. Sources are automatically deleted once the last validation to use that source falls off the 30 day window. You can continue to make validations without a source if you’ve hit the limit.

        Rate this page:

        Need some help?

        We all do sometimes. Get help now from the Twilio SendGrid Support Team.

        Running into a coding hurdle? Lean on the wisdom of the crowd by browsing the SendGrid tag on Stack Overflow or visiting Twilio's Stack Overflow Collective.

        Loading Code Sample...
              
              
              

              Thank you for your feedback!

              Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

              Sending your feedback...
              🎉 Thank you for your feedback!
              Something went wrong. Please try again.

              Thanks for your feedback!

              thanks-feedback-gif