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

# Ingest a source into a collection

> Creates a source, runs ingestion (chunking + indexing), and returns the source with ingest job summary. V1 supports text and markdown only. web_page source type returns 422.




## OpenAPI

````yaml /openapi.yaml post /shared-knowledge/sources
openapi: 3.0.3
info:
  title: Hill90 API
  description: Hill90 platform API — agent management and lifecycle operations.
  version: 0.1.0
servers:
  - url: /
    description: Relative (behind Traefik reverse proxy)
security: []
paths:
  /shared-knowledge/sources:
    post:
      summary: Ingest a source into a collection
      description: >
        Creates a source, runs ingestion (chunking + indexing), and returns the
        source with ingest job summary. V1 supports text and markdown only.
        web_page source type returns 422.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - collection_id
                - title
                - source_type
                - raw_content
              properties:
                collection_id:
                  type: string
                  format: uuid
                title:
                  type: string
                source_type:
                  type: string
                  enum:
                    - text
                    - markdown
                  description: Content type. web_page reserved for Phase 2.
                raw_content:
                  type: string
                  description: The text or markdown content to ingest (max 100KB)
                source_url:
                  type: string
                  description: Optional source URL for attribution
      responses:
        '200':
          description: Source ingested
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestResult'
        '401':
          description: Not authenticated
        '403':
          description: Not authorized to add sources to this collection
        '422':
          description: Unsupported source type or invalid content
      security:
        - bearerAuth: []
components:
  schemas:
    IngestResult:
      type: object
      properties:
        source:
          $ref: '#/components/schemas/SharedSource'
        ingest_job:
          type: object
          properties:
            id:
              type: string
              format: uuid
            status:
              type: string
            chunk_count:
              type: integer
        document:
          type: object
          properties:
            id:
              type: string
              format: uuid
            title:
              type: string
            chunk_count:
              type: integer
    SharedSource:
      type: object
      properties:
        id:
          type: string
          format: uuid
        collection_id:
          type: string
          format: uuid
        title:
          type: string
        source_type:
          type: string
          enum:
            - text
            - markdown
            - web_page
        source_url:
          type: string
          nullable: true
        content_hash:
          type: string
        status:
          type: string
          enum:
            - pending
            - active
            - error
            - archived
        error_message:
          type: string
          nullable: true
        created_by:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````