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.
The Bulk Email Address Validation API facilitates the asynchronous validation of up to one million email addresses.
With the Bulk Email Address Validation API, you can:
This endpoint returns a presigned URL and request headers. Use this information to upload a list of email addresses for verification.
Note that in a successful response the content-type
header value matches the provided file_type
parameter in the PUT
request.
Once you have an upload_uri
and the upload_headers
, you're ready to upload your email address list for verification. For the expected format of the email address list and a sample upload request, see the Bulk Email Address Validation Overview page.
Bearer <<YOUR_API_KEY_HERE>>
application/json
The format of the file you wish to upload.
csv
zip
The request was successful. The response contains the URI and headers where you will upload your email address list.
The unique ID of the Bulk Email Address Validation Job.
The URI to use for the request to upload your list of email addresses.
Array containing headers and header values.
1const client = require('@sendgrid/client');2client.setApiKey(process.env.SENDGRID_API_KEY);34const data = {5"file_type": "csv"6};78const request = {9url: `/v3/validations/email/jobs`,10method: 'PUT',11body: data12}1314client.request(request)15.then(([response, body]) => {16console.log(response.statusCode);17console.log(response.body);18})19.catch(error => {20console.error(error);21});