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

# Ingest Batch

> Batch ingest up to 500 records.

Returns {accepted, rejected, job_id, issue_ids, engine_status_summary}.
Each record is validated and processed independently — a rejected record
(field-level errors) never aborts the rest of the batch.

NOTE: batch encoding is intentionally NOT wired here. Per-issue encoding is
a single-issue concern; batch embedding is deferred to Phase 2 (embed_batch).



## OpenAPI

````yaml /openapi.json post /v1/ingest/batch
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/ingest/batch:
    post:
      tags:
        - ingest
      summary: Ingest Batch
      description: >-
        Batch ingest up to 500 records.


        Returns {accepted, rejected, job_id, issue_ids, engine_status_summary}.

        Each record is validated and processed independently — a rejected record

        (field-level errors) never aborts the rest of the batch.


        NOTE: batch encoding is intentionally NOT wired here. Per-issue encoding
        is

        a single-issue concern; batch embedding is deferred to Phase 2
        (embed_batch).
      operationId: ingest_batch_v1_ingest_batch_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestBatchRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                additionalProperties: true
                title: Response Ingest Batch V1 Ingest Batch Post
                type: object
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    IngestBatchRequest:
      description: >-
        Batch records are intentionally untyped dicts (spec §3: batch is never

        all-or-nothing). Structural/semantic validation happens per-record
        inside

        the batch loop so one malformed record rejects only itself.
      properties:
        records:
          items:
            additionalProperties: true
            type: object
          maxItems: 500
          minItems: 1
          title: Records
          type: array
      required:
        - records
      title: IngestBatchRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````