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

# Create a batch

> Submit a batch verification request.

Use a stable `Idempotency-Key` for an identical submission. Creation returns `202`; a replay returns `200` with the same request ID.

Capture `request.id`, then pass it to the status and results routes. A batch accepts up to 10,000 addresses.


## OpenAPI

````yaml POST /v1/requests
openapi: 3.1.0
info:
  title: Bounceless API
  version: '1'
  description: >-
    GA single and batch email verification. Unknown outcomes are not billed and
    credits never expire.
  x-bounceless-presend-contract-version: 1
  x-bounceless-compatibility: >-
    Legacy sibling fields remain available during the Pre-Send v1 compatibility
    window.
servers:
  - url: https://api.bounceless.io
security:
  - apiKey: []
  - bearerAuth: []
paths:
  /v1/requests:
    post:
      summary: Create a batch verification request.
      description: >-
        Creation returns 202. A replay with the same Idempotency-Key and body
        returns 200 with the same request.id.
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchInput'
      responses:
        '200':
          description: Idempotent replay
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchRequest'
        '202':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchRequest'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Limited'
        '503':
          $ref: '#/components/responses/Error'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        minLength: 1
  schemas:
    BatchInput:
      type: object
      additionalProperties: false
      description: >-
        Provide exactly one input source. Use emails for an inline batch or
        listId for a ready list already stored in the account.
      oneOf:
        - required:
            - emails
        - required:
            - listId
      properties:
        emails:
          type: array
          minItems: 1
          maxItems: 10000
          items:
            type: string
            format: email
            maxLength: 320
        listId:
          type: string
          format: uuid
    BatchRequest:
      type: object
      required:
        - request
        - counters
        - requestId
      properties:
        request:
          $ref: '#/components/schemas/RequestDescriptor'
        counters:
          $ref: '#/components/schemas/Counters'
        replayed:
          type: boolean
        requestId:
          type: string
    RequestDescriptor:
      type: object
      required:
        - id
        - mode
        - state
        - createdAt
        - partial
        - finalized
        - countsMayChange
      properties:
        id:
          type: string
          format: uuid
        mode:
          type: string
        state:
          type: string
        errorCode:
          type:
            - string
            - 'null'
        retentionExpiresAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
        partial:
          type: boolean
        finalized:
          type: boolean
        countsMayChange:
          type: boolean
        finalization:
          type:
            - object
            - 'null'
    Counters:
      type: object
      additionalProperties:
        type: integer
        minimum: 0
    Error:
      type: object
      required:
        - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
          additionalProperties: false
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
  responses:
    Error:
      description: Error response.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Limited:
      description: Rate limit exceeded.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          description: Seconds before retrying
          schema:
            type: integer
            minimum: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    RequestId:
      description: Request correlation identifier.
      schema:
        type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Canonical authentication. Send a Bounceless key in blc.… format.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Bounceless API key
      description: Compatibility authentication. New integrations should use X-Api-Key.

````