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

# Ingest documents (text, files, or mixed)

> Unified document ingestion endpoint.

Accepts a multipart form with:
- `manifest` (required): JSON array describing each item
- `files` (optional): one or more file uploads, referenced by `file_index` in the manifest

Manifest format (JSON array):

```json
[
  {"type": "file", "file_index": 0, "title": "Report"},
  {"type": "text", "title": "FAQ", "content": "What is..."},
  {"type": "file", "file_index": 1, "title": "Old Report", "document_id": "uuid"}
]
```



## OpenAPI

````yaml /api-reference/openapi.json post /v1/knowledge-base/knowledge-bases/{kb_id}/ingest
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/knowledge-base/knowledge-bases/{kb_id}/ingest:
    post:
      tags:
        - knowledge-base
      summary: Ingest documents (text, files, or mixed)
      description: >-
        Unified document ingestion endpoint.


        Accepts a multipart form with:

        - `manifest` (required): JSON array describing each item

        - `files` (optional): one or more file uploads, referenced by
        `file_index` in the manifest


        Manifest format (JSON array):


        ```json

        [
          {"type": "file", "file_index": 0, "title": "Report"},
          {"type": "text", "title": "FAQ", "content": "What is..."},
          {"type": "file", "file_index": 1, "title": "Old Report", "document_id": "uuid"}
        ]

        ```
      operationId: bulkIngest
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Kb Id
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    IngestResponse:
      properties:
        ingestion_job_id:
          type: string
          format: uuid
          title: Ingestion Job Id
        items:
          items:
            $ref: '#/components/schemas/IngestResultItem'
          type: array
          title: Items
      type: object
      required:
        - ingestion_job_id
        - items
      title: IngestResponse
      description: |-
        Response from the unified ingest endpoint.

        ``ingestion_job_id`` is the parent IngestionJob for bulk submissions, or
        the single-doc job for a 1-item manifest. ``items`` mirrors the manifest
        order so callers can render per-item outcomes without a second call.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IngestResultItem:
      properties:
        manifest_index:
          type: integer
          title: Manifest Index
        result:
          type: string
          enum:
            - queued
            - duplicate
          title: Result
        document_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Document Id
        duplicate_of_document_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Duplicate Of Document Id
        duplicate_of_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Duplicate Of Version Id
        duplicate_of_document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Duplicate Of Document Title
      type: object
      required:
        - manifest_index
        - result
      title: IngestResultItem
      description: Per-manifest-item outcome of an ingest request.
    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

````