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

# Extract Data (Batch)

> Upload up to 50 documents for batch processing. Returns a batch ID to poll for overall progress.



## OpenAPI

````yaml POST /v1/extract/batch
openapi: 3.1.0
info:
  title: Kiriku API
  description: >-
    Intelligent Document Processing API for West Africa. Extract structured data
    from ID cards, passports, and more.
  version: 1.0.0
  contact:
    email: contact@kiriku.sn
servers:
  - url: https://api.kiriku.app
    description: Production API
security:
  - bearerAuth: []
paths:
  /v1/extract/batch:
    post:
      summary: Extract Data (Batch)
      description: >-
        Upload up to 50 documents for batch processing. Returns a batch ID to
        poll for overall progress.
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: Up to 50 document files.
                documentType:
                  type: string
                  description: Template to use for all documents.
              required:
                - files
                - documentType
      responses:
        '201':
          description: Batch queued successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Batch'
components:
  schemas:
    Batch:
      type: object
      properties:
        batchId:
          type: string
        status:
          type: string
          enum:
            - queued
            - processing
            - completed
            - partial_failure
        totalDocuments:
          type: number
        completedCount:
          type: number
        failedCount:
          type: number
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT/API Key

````