Request a Bulk Email Address Validation Upload URL
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:
- Request an upload URL for the email list you wish to verify.
- Get all Bulk Email Address Validation Jobs.
- Get a specific Bulk Email Address Validation Job.
- This API reference page should be used in conjunction with the Email Address Validation Overview page and the Bulk Email Validation Integration Guide.
PUT/v3/validations/email/jobs
Base url: https://api.sendgrid.com (The Twilio SendGrid v3 API)
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/jsonThe format of the file you wish to upload.
csvzipThe request was successful. The response contains the URI and headers where you will upload your email address list.
Optional
The unique ID of the Bulk Email Address Validation Job.
Optional
The URI to use for the request to upload your list of email addresses.
Optional
Array containing headers and header values.
1const client = require("@sendgrid/client");2client.setApiKey(process.env.SENDGRID_API_KEY);34const data = {5file_type: "csv",6};78const request = {9url: `/v3/validations/email/jobs`,10method: "PUT",11body: data,12};1314client15.request(request)16.then(([response, body]) => {17console.log(response.statusCode);18console.log(response.body);19})20.catch((error) => {21console.error(error);22});