# Get a Bulk Email Address Validation Job by ID

## 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/{job_id}","method":"get","servers":[{"url":"https://api.sendgrid.com","description":"The Twilio SendGrid v3 API"}]}
```

**This endpoint returns a specific Bulk Email Validation Job. You can use this endpoint to check on the progress of a Job.**

## Operation details

### Authentication

API Key

### Headers

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

### Path parameters

```json
[{"name":"job_id","in":"path","description":"The ID of the Bulk Email Address Validation Job you wish to retrieve.","required":true,"schema":{"type":"string"}}]
```

### Responses

```json
[{"responseCode":"200","schema":{"description":"","content":{"application/json":{"schema":{"title":"GET Validations Email Jobs job_id 200 Response","type":"object","refName":"GetValidationsEmailJobsJobId200Response","modelName":"GetValidationsEmailJobsJobId200Response","properties":{"result":{"type":"object","description":"","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":"Status1","modelName":"Status1"},"segments":{"type":"number","description":"The total number of segments in the Bulk Email Address Validation Job. There are 1,500 email addresses per segment. The value is `0` until the Job `status` is `Processing`."},"segments_processed":{"type":"number","description":"The number of segments processed at the time of the request. 100 segments process in parallel at a time."},"is_download_available":{"type":"boolean","description":"Boolean indicating whether the results CSV file is available for download."},"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"},"errors":{"type":"array","description":"Array containing error messages related to the Bulk Email Address Validation Job. Array is empty if no errors ocurred.","items":{"type":"object","properties":{"message":{"type":"string","description":"Description of the error encountered during execution of the Bulk Email Address Validation Job."}}}}}}}},"example":{"response":{"value":{"result":{"id":"01HV9ZZQAFEXW18KFEPTB9YD5E","status":"Queued","segments":0,"segments_processed":0,"is_download_available":false,"started_at":1712954639,"finished_at":0,"errors":[]}}}}}}}},{"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 a specific bulk email address validation job by ID

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

const job_id = "job_id";

const request = {
  url: `/v3/validations/email/jobs/${job_id}`,
  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"))

job_id = "job_id"

response = sg.client.validations.email.jobs._(job_id).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 jobId = "job_id";

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

        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/job_id");
            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/job_id", 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);
$job_id = "job_id";

try {
    $response = $sg->client
        ->validations()
        ->email()
        ->jobs()
        ->_($job_id)
        ->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'])
job_id = "job_id"

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

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