> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a batch email validation job

> Retrieves the current status and, once completed, validation results for a batch job.



## OpenAPI

````yaml /openapi/generated/email/validations.yml get /email_validations/batch/{id}
openapi: 3.1.0
info:
  contact:
    email: support@telnyx.com
  description: API for validating email addresses (single and batch).
  title: Telnyx Email Validations API
  version: 2.0.0
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
paths:
  /email_validations/batch/{id}:
    get:
      tags:
        - Email Validations
      summary: Get a batch email validation job
      description: >-
        Retrieves the current status and, once completed, validation results for
        a batch job.
      operationId: GetEmailValidationBatch
      parameters:
        - $ref: '#/components/parameters/BatchId'
      responses:
        '200':
          description: Batch validation job status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailValidationBatchDetailResponse'
        '401':
          $ref: '#/components/responses/email_UnauthorizedResponse'
        '404':
          $ref: '#/components/responses/email_NotFoundResponse'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Telnyx from 'telnyx';


            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });


            const EmailValidationBatchDetail = await
            client.emailValidations.batch.retrieve('id');


            console.log(EmailValidationBatchDetail.data);
        - lang: Python
          source: >-
            import os

            from telnyx import Telnyx


            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )

            email_validation_batch_detail =
            client.email_validations.batch.retrieve(
                "id",
            )

            print(email_validation_batch_detail.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tbatch, err := client.EmailValidations.Batch.Get(\n\t\tcontext.TODO(),\n\t\t\"id\",\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", batch.Data)\n}\n"
        - lang: Java
          source: |-
            package com.telnyx.sdk.example;

            import com.telnyx.sdk.client.TelnyxClient;
            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;

            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    var response = client.emailValidations().batch().retrieve("id");
                }
            }
        - lang: Ruby
          source: >-
            require "telnyx"


            telnyx = Telnyx::Client.new(api_key: "My API Key")


            email_validation_batch_detail =
            telnyx.email_validations.batch.retrieve("id")


            puts(email_validation_batch_detail)
        - lang: PHP
          source: >-
            <?php


            require_once dirname(__DIR__) . '/vendor/autoload.php';


            use Telnyx\Client;

            use Telnyx\Core\Exceptions\APIException;


            $client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API
            Key');


            try {
              $email_validation_batch_detail = $client->emailValidations->batch->retrieve(
                'id',
              );

              var_dump($email_validation_batch_detail);
            } catch (APIException $e) {
              echo $e->getMessage();
            }
        - lang: CLI
          source: |-
            telnyx email-validations:batch retrieve \
              --api-key 'My API Key' \
              --id id
components:
  parameters:
    BatchId:
      name: id
      in: path
      required: true
      description: Email validation batch UUID.
      schema:
        type: string
        format: uuid
  schemas:
    EmailValidationBatchDetailResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/EmailValidationBatchDetail'
      required:
        - data
    EmailValidationBatchDetail:
      description: Shape returned by the GET endpoint. Does not include duplicates_removed.
      allOf:
        - type: object
          properties:
            record_type:
              type: string
              enum:
                - email_validation_batch
            id:
              type: string
              format: uuid
            status:
              $ref: '#/components/schemas/EmailValidationBatchStatus'
            total:
              type: integer
              minimum: 0
            webhook_url:
              type: string
              format: uri
            completed_at:
              type: string
              format: date-time
            results:
              type: object
              description: >-
                Map keyed by original email address. Present only when the batch
                is completed.
              additionalProperties:
                $ref: '#/components/schemas/EmailValidationResult'
          required:
            - record_type
            - id
            - status
            - total
    email_ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorObject'
        suppressed:
          type: array
          description: >-
            Present when every recipient is suppressed, so the request is
            rejected and no message is created.
          items:
            $ref: '#/components/schemas/SuppressedRecipient'
      required:
        - errors
    EmailValidationBatchStatus:
      type: string
      enum:
        - pending
        - processing
        - completed
        - failed
    EmailValidationResult:
      type: object
      properties:
        email:
          type: string
        valid:
          type: boolean
        risk_score:
          type: number
          format: float
          minimum: 0
        did_you_mean:
          type: string
          description: Suggested correction for typo. Omitted when nil.
        checks:
          $ref: '#/components/schemas/EmailValidationChecks'
      required:
        - email
        - valid
        - risk_score
        - checks
    ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: >-
            Telnyx error code. Edge idempotency errors use 10027 or 10036.
            Fallback 404/500 responses from the framework may use string status
            codes ('404', '500') instead.
          enum:
            - '10001'
            - '10006'
            - '10007'
            - '10015'
            - '10016'
            - '10019'
            - recipient_suppressed
            - reputation_suspended
            - '404'
            - '500'
            - '10027'
            - '10036'
        title:
          type: string
        detail:
          description: >-
            Human-readable error detail. Changeset responses may return a
            structured object.
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
        source:
          type:
            - object
            - 'null'
          additionalProperties: true
        meta:
          type:
            - object
            - 'null'
          additionalProperties: true
          description: Additional metadata. Present on 401 errors with a documentation URL.
      required:
        - code
        - title
        - detail
    SuppressedRecipient:
      type: object
      properties:
        to:
          type: string
          format: email
          description: Suppressed recipient email address.
        reason:
          type: string
          description: Suppression reason returned by the recipient suppression service.
        scope:
          type: string
          description: Scope at which the suppression applies.
        override_allowed:
          type: boolean
          description: Whether an authorized send may override this suppression.
      required:
        - to
        - reason
        - scope
        - override_allowed
    EmailValidationChecks:
      type: object
      properties:
        syntax:
          $ref: '#/components/schemas/EmailValidationCheck'
        mx:
          $ref: '#/components/schemas/EmailValidationCheck'
        disposable:
          $ref: '#/components/schemas/EmailValidationCheck'
        role_based:
          $ref: '#/components/schemas/EmailValidationCheck'
        typo:
          $ref: '#/components/schemas/EmailValidationTypoCheck'
      required:
        - syntax
        - mx
        - disposable
        - role_based
        - typo
    EmailValidationCheck:
      type: object
      properties:
        pass:
          type: boolean
        details:
          type: string
          description: Human-readable check detail. Omitted when nil.
      required:
        - pass
    EmailValidationTypoCheck:
      allOf:
        - $ref: '#/components/schemas/EmailValidationCheck'
        - type: object
          properties:
            suggestion:
              type: string
              description: Suggested correction for common typos. Omitted when nil.
  responses:
    email_UnauthorizedResponse:
      description: Not authorized (10006).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/email_ErrorResponse'
          example:
            errors:
              - code: '10006'
                title: Not authorized
                detail: Invalid API key
                meta:
                  url: https://developers.telnyx.com/docs/overview/errors/10006
    email_NotFoundResponse:
      description: Resource not found (10001).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/email_ErrorResponse'
          example:
            errors:
              - code: '10001'
                title: Not Found
                detail: The requested resource was not found
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````