# Get Bulk Email Address Validation Jobs

## API Overview

**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](/docs/sendgrid/ui/managing-contacts/email-address-validation)**.

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](/docs/sendgrid/ui/managing-contacts/email-address-validation) and the [Bulk Email Validation Integration Guide](/docs/sendgrid/ui/managing-contacts/email-address-validation/bulk-email-address-validation-overview).

## Operation overview

```json
{"path":"https://api.sendgrid.com/v3/validations/email/jobs","method":"get","servers":[{"url":"https://api.sendgrid.com","description":"The Twilio SendGrid v3 API"}]}
```

**This endpoint returns a list of all of a user's Bulk Email Validation Jobs.**

## Operation details

### Authentication

API Key

### Headers

```json
[{"in":"header","name":"Authorization","required":true,"default":"Bearer <<YOUR_API_KEY_HERE>>","schema":{"type":"string"}}]
```

### Responses

```json
[{"responseCode":"200","schema":{"description":"The request was successful. The response contains a list of all of your Bulk Email Validation Jobs.","content":{"application/json":{"schema":{"title":"GET Validations Email Jobs 200 Response","type":"object","refName":"GetValidationsEmailJobs200Response","modelName":"GetValidationsEmailJobs200Response","properties":{"result":{"type":"array","description":"","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the Bulk Email Address Validation Job."},"status":{"type":"string","description":"The status of the Bulk Email Address Validation Job.","enum":["Initiated","Queued","Ready","Processing","Done","Error"],"refName":"Status","modelName":"Status"},"started_at":{"description":"The ISO8601 timestamp when the Job was created. This is the time at which the upload request was sent to the `upload_uri`.","type":"number"},"finished_at":{"description":"The ISO8601 timestamp when the Job was finished.","type":"number"}}}}}},"examples":{"response":{"value":{"result":[{"id":"01HV9ZZQAFEXW18KFEPTB9YD5E","status":"Queued","started_at":1712954639,"finished_at":0}]}}}}}}},{"responseCode":"404","schema":{"description":"","content":{"application/json":{"schema":{"title":"Error","type":"object","example":{"errors":[{"field":"field_name","message":"error message"}]},"refName":"ErrorResponse","modelName":"ErrorResponse","properties":{"errors":{"type":"array","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The message representing the error from the API."},"field":{"type":"string","description":"The field associated with the error."},"help":{"type":"object","description":"Helper text or docs for troubleshooting."}}}},"id":{"type":"string","description":"ID representing the error."}}},"examples":{"response":{"value":{"errors":[{"message":"error message"}]}}}}}}},{"responseCode":"500","schema":{"description":"","content":{"application/json":{"schema":{"title":"Error","type":"object","example":{"errors":[{"field":"field_name","message":"error message"}]},"refName":"ErrorResponse","modelName":"ErrorResponse","properties":{"errors":{"type":"array","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The message representing the error from the API."},"field":{"type":"string","description":"The field associated with the error."},"help":{"type":"object","description":"Helper text or docs for troubleshooting."}}}},"id":{"type":"string","description":"ID representing the error."}}}}}}}]
```

Get all bulk email address validation jobs

```js
const client = require("@sendgrid/client");
client.setApiKey(process.env.SENDGRID_API_KEY);

const request = {
  url: `/v3/validations/email/jobs`,
  method: "GET",
};

client
  .request(request)
  .then(([response, body]) => {
    console.log(response.statusCode);
    console.log(response.body);
  })
  .catch((error) => {
    console.error(error);
  });
```

```python
import os
from sendgrid import SendGridAPIClient


sg = SendGridAPIClient(os.environ.get("SENDGRID_API_KEY"))


response = sg.client.validations.email.jobs.get()

print(response.status_code)
print(response.body)
print(response.headers)
```

```csharp
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using SendGrid;

public class Program {
    public static async Task Main() {
        string apiKey = Environment.GetEnvironmentVariable("SENDGRID_API_KEY");
        var client = new SendGridClient(apiKey);

        var response = await client.RequestAsync(
            method: SendGridClient.Method.GET, urlPath: "validations/email/jobs");

        Console.WriteLine(response.StatusCode);
        Console.WriteLine(response.Body.ReadAsStringAsync().Result);
        Console.WriteLine(response.Headers.ToString());
    }
}
```

```java
import com.sendgrid.*;
import java.io.IOException;

public class Example {
    public static void main(String[] args) throws IOException {
        try {
            SendGrid sg = new SendGrid(System.getenv("SENDGRID_API_KEY"));
            Request request = new Request();
            request.setMethod(Method.GET);
            request.setEndpoint("/validations/email/jobs");
            Response response = sg.api(request);
            System.out.println(response.getStatusCode());
            System.out.println(response.getBody());
            System.out.println(response.getHeaders());
        } catch (IOException ex) {
            throw ex;
        }
    }
}
```

```go
package main

import (
	"fmt"
	"github.com/sendgrid/sendgrid-go"
	"os"
)

func main() {
	apiKey := os.Getenv("SENDGRID_API_KEY")
	host := "https://api.sendgrid.com"
	request := sendgrid.GetRequest(apiKey, "/v3/validations/email/jobs", host)
	request.Method = "GET"
	response, err := sendgrid.API(request)
	if err != nil {
		fmt.Println(err.Error())
		os.Exit(1)
	} else {
		fmt.Println(response.StatusCode)
		fmt.Println(response.Body)
		fmt.Println(response.Headers)
	}
}
```

```php
<?php
// Uncomment the next line if you're using a dependency loader (such as Composer) (recommended)
// require 'vendor/autoload.php';

// Uncomment next line if you're not using a dependency loader (such as Composer)
// require_once '<PATH TO>/sendgrid-php.php';

$apiKey = getenv("SENDGRID_API_KEY");
$sg = new \SendGrid($apiKey);

try {
    $response = $sg->client
        ->validations()
        ->email()
        ->jobs()
        ->get();
    print $response->statusCode() . "\n";
    print_r($response->headers());
    print $response->body() . "\n";
} catch (Exception $ex) {
    echo "Caught exception: " . $ex->getMessage();
}
```

```ruby
require 'sendgrid-ruby'
include SendGrid

sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY'])

response = sg.client.validations.email.jobs.get()
puts response.status_code
puts response.headers
puts response.body
```

```bash
curl -X GET "https://api.sendgrid.com/v3/validations/email/jobs" \
--header "Authorization: Bearer $SENDGRID_API_KEY"
```
