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

# Upload media chunk

> Upload ordered media chunks for a live session. Chunks must be uploaded sequentially.



## OpenAPI

````yaml api-reference/openapi.json post /analyze/live/{session_id}/chunk
openapi: 3.1.0
info:
  title: Illocution Insights API
  description: >-
    Developer-facing guide for the conversation-intelligence platform that
    powers docs.illocution.ai. The FastAPI service (version 0.3.0) exposes REST
    and Server‑Sent Events (SSE) endpoints for uploading media, driving live
    sessions, and retrieving higher-level insights.
  version: 0.3.0
servers:
  - url: https://api.illocution.ai
    description: Production API server
security:
  - apiKeyAuth: []
paths:
  /analyze/live/{session_id}/chunk:
    post:
      tags:
        - Live Streaming
      summary: Upload media chunk
      description: >-
        Upload ordered media chunks for a live session. Chunks must be uploaded
        sequentially.
      operationId: uploadChunk
      parameters:
        - name: session_id
          in: path
          required: true
          description: Live session identifier
          schema:
            type: string
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - chunk_seq
                - chunk
              properties:
                chunk_seq:
                  type: integer
                  description: Zero-based sequence number, must match next_chunk_seq
                  example: 0
                chunk:
                  type: string
                  format: binary
                  description: Binary payload chunk
      responses:
        '200':
          description: Chunk received
          content:
            application/json:
              schema:
                type: object
                properties:
                  received_bytes:
                    type: integer
                  next_chunk_seq:
                    type: integer
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown live session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Wrong chunk sequence or finalized session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message
          example: Invalid or missing API key
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Can also be passed as query parameter:
        api_key=<client key>

````