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

# Upload Context File

> Extract and save a document through the canonical pages boundary.



## OpenAPI

````yaml /api/openapi.json post /agent/v1/context/upload
openapi: 3.1.0
info:
  title: CrowdListen Agent API
  description: >-
    Configure sources, collect and retain originals, run durable analysis, and
    read or revise cited insights. Humans and agents share authorized
    entity/project records, research jobs and evidence history.
  version: 1.0.0
servers:
  - url: https://agent.crowdlisten.com
    description: Production
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /agent/v1/context/upload:
    post:
      tags:
        - context
      summary: Upload Context File
      description: Extract and save a document through the canonical pages boundary.
      operationId: upload_context_file_agent_v1_context_upload_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_context_file_agent_v1_context_upload_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_upload_context_file_agent_v1_context_upload_post:
      properties:
        file:
          type: string
          format: binary
          title: File
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
      type: object
      required:
        - file
      title: Body_upload_context_file_agent_v1_context_upload_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.