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

# Upload a batch file for email validation

> ⚠️ Deprecated — use [POST /v2/email/verify/batch](https://docs.revenuebase.ai/api-reference/email/upload-a-batch-file-for-email-validation) instead. Sunset: Tue, 07 Jul 2026.

Accepts a `.csv` or `.json` file and queues it for asynchronous processing. Returns a `process_id` — use it to poll status or download results when complete. Set `metadata=true` to include MX record, email provider, and failure reason fields in the output file.

**Errors**
- `400 invalid_extension` — File must be `.csv` or `.json`.
- `400 upload_error` — File upload failed. Contact support.



## OpenAPI

````yaml https://api.revenuebase.ai/v1/openapi.json post /v1/batch-upload
openapi: 3.1.0
info:
  title: Revenuebase Email Verification
  description: >-
    This API provides endpoints for validating email addresses individually or
    through file uploads.
  version: 0.1.0
servers:
  - url: https://api.revenuebase.ai
security: []
paths:
  /v1/batch-upload:
    post:
      tags:
        - Email Processing
      summary: Upload a batch file for email validation
      description: >-
        ⚠️ Deprecated — use [POST
        /v2/email/verify/batch](https://docs.revenuebase.ai/api-reference/email/upload-a-batch-file-for-email-validation)
        instead. Sunset: Tue, 07 Jul 2026.


        Accepts a `.csv` or `.json` file and queues it for asynchronous
        processing. Returns a `process_id` — use it to poll status or download
        results when complete. Set `metadata=true` to include MX record, email
        provider, and failure reason fields in the output file.


        **Errors**

        - `400 invalid_extension` — File must be `.csv` or `.json`.

        - `400 upload_error` — File upload failed. Contact support.
      operationId: batch_upload_v1_batch_upload_post
      parameters:
        - name: metadata
          in: query
          required: false
          schema:
            type: boolean
            description: Include detailed metadata in response
            default: false
            title: Metadata
          description: Include detailed metadata in response
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_batch_upload_v1_batch_upload_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchEmailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      deprecated: true
      security:
        - APIKeyHeader: []
components:
  schemas:
    Body_batch_upload_v1_batch_upload_post:
      properties:
        requested_file:
          type: string
          contentMediaType: application/octet-stream
          title: Requested File
      type: object
      required:
        - requested_file
      title: Body_batch_upload_v1_batch_upload_post
    BatchEmailResponse:
      properties:
        process_id:
          type: integer
          title: Process Id
        filename:
          type: string
          title: Filename
        status:
          type: string
          title: Status
      type: object
      required:
        - process_id
        - filename
        - status
      title: BatchEmailResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-key

````