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

# Post Consortium Search Batch

> Submit a CSV of consortium searches (one search per row, one of each identifier). Always processed asynchronously (202 + batch id); poll GET /consortium/searches/batches/{batch_id} and download per-row results via /consortium/searches/batches/{batch_id}/download. Batches are capped at 40,000 rows. Allowed columns: reference_id, ein, phone, email, website, business_name, officer_first_name, officer_last_name, officer_state, address_street, address_city, address_state, address_zip, business_id.



## OpenAPI

````yaml /api-reference/openapi.json post /consortium/searches/batches
openapi: 3.1.0
info:
  title: baselayer-api-service
  version: 0.1.0
servers:
  - url: https://api.baselayer.com/
security: []
paths:
  /consortium/searches/batches:
    post:
      tags:
        - Consortium
      summary: Post Consortium Search Batch
      description: >-
        Submit a CSV of consortium searches (one search per row, one of each
        identifier). Always processed asynchronously (202 + batch id); poll GET
        /consortium/searches/batches/{batch_id} and download per-row results via
        /consortium/searches/batches/{batch_id}/download. Batches are capped at
        40,000 rows. Allowed columns: reference_id, ein, phone, email, website,
        business_name, officer_first_name, officer_last_name, officer_state,
        address_street, address_city, address_state, address_zip, business_id.
      operationId: post_consortium_search_batch_consortium_searches_batches_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_post_consortium_search_batch_consortium_searches_batches_post
        required: true
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1.ConsortiumCheckBatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    Body_post_consortium_search_batch_consortium_searches_batches_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
      type: object
      required:
        - file
      title: Body_post_consortium_search_batch_consortium_searches_batches_post
    v1.ConsortiumCheckBatchResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: The batch's id, used to poll status and fetch results.
        state:
          $ref: '#/components/schemas/TaskState'
          description: Processing state of the batch.
        progress:
          anyOf:
            - type: number
            - type: 'null'
          title: Progress
          description: Fraction of entries processed so far, in [0, 1].
          examples:
            - 0
            - 0.5
            - 1
        completed_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Completed Count
          description: Number of entries processed so far.
          examples:
            - 0
            - 50
        total_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Count
          description: Total number of entries in the batch.
          examples:
            - 100
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the batch was accepted.
      type: object
      required:
        - id
        - state
        - created_at
      title: ConsortiumCheckBatchResponse (v1)
      description: Returned when a batch is accepted and by the polling endpoint.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TaskState:
      enum:
        - PENDING
        - EXECUTING
        - COMPLETED
        - FAILED
        - CANCELLED
      title: TaskState
      type: string
    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-API-Key

````