> ## 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.

# Capture complete sources and comments with acknowledged IDs

> Capture all originals and parent links atomically; analysis is a separate step.



## OpenAPI

````yaml /api/openapi.json post /agent/v1/ingest/content
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/ingest/content:
    post:
      tags:
        - ingest
      summary: Capture complete sources and comments with acknowledged IDs
      description: >-
        Capture all originals and parent links atomically; analysis is a
        separate step.
      operationId: ingest_content_agent_v1_ingest_content_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IngestContentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IngestContentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    IngestContentRequest:
      properties:
        entity_id:
          type: string
          maxLength: 100
          minLength: 1
          title: Entity Id
        sources:
          items:
            $ref: '#/components/schemas/SourceItem'
          type: array
          maxItems: 500
          minItems: 1
          title: Sources
        collection_run_id:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Collection Run Id
        collection_scope:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Collection Scope
        coverage_state:
          anyOf:
            - type: string
              pattern: ^(exhaustive|sampled|bounded|blocked|unknown)$
            - type: 'null'
          title: Coverage State
          description: Collector-level coverage state for this batch.
      type: object
      required:
        - entity_id
        - sources
      title: IngestContentRequest
    IngestContentResponse:
      properties:
        inserted:
          type: integer
          title: Inserted
        skipped_dedup:
          type: integer
          title: Skipped Dedup
        skipped_irrelevant:
          type: integer
          title: Skipped Irrelevant
          default: 0
        total_received:
          type: integer
          title: Total Received
        stored:
          type: integer
          title: Stored
        content_ids:
          items:
            type: string
          type: array
          title: Content Ids
        parent_content_ids:
          items:
            type: string
          type: array
          title: Parent Content Ids
        comment_content_ids:
          items:
            type: string
          type: array
          title: Comment Content Ids
        comments_received:
          type: integer
          title: Comments Received
        comments_inserted:
          type: integer
          title: Comments Inserted
        complete:
          type: boolean
          title: Complete
          default: true
        count_basis:
          type: string
          title: Count Basis
          default: >-
            Acknowledged original records, including reused originals; not
            unique people
      type: object
      required:
        - inserted
        - skipped_dedup
        - total_received
        - stored
        - content_ids
        - parent_content_ids
        - comment_content_ids
        - comments_received
        - comments_inserted
      title: IngestContentResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SourceItem:
      properties:
        id:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Id
        title:
          type: string
          maxLength: 2000
          title: Title
          default: ''
        url:
          type: string
          maxLength: 5000
          title: Url
          default: ''
        platform:
          $ref: '#/components/schemas/Platform'
        content:
          type: string
          maxLength: 500000
          minLength: 1
          title: Content
        author:
          type: string
          maxLength: 500
          title: Author
          default: ''
        published_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Published At
          description: ISO 8601 datetime string
        engagement:
          $ref: '#/components/schemas/EngagementData'
        comments:
          items:
            $ref: '#/components/schemas/CommentItem'
          type: array
          title: Comments
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
          description: Extra metadata from local pipeline (transcripts, etc.)
      type: object
      required:
        - platform
        - content
      title: SourceItem
    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
    Platform:
      type: string
      enum:
        - reddit
        - youtube
        - tiktok
        - twitter
        - instagram
        - linkedin
        - hackernews
        - producthunt
        - github
        - threads
        - web
        - granola
        - slack
        - agent
        - claude_code
        - codex
      title: Platform
    EngagementData:
      properties:
        likes:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Likes
        comments:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Comments
        views:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Views
        score:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Score
        shares:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Shares
      type: object
      title: EngagementData
    CommentItem:
      properties:
        id:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Id
        url:
          anyOf:
            - type: string
              maxLength: 5000
            - type: 'null'
          title: Url
        published_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Published At
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
        text:
          type: string
          maxLength: 50000
          minLength: 1
          title: Text
        author:
          type: string
          maxLength: 500
          title: Author
          default: unknown
        likes:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Likes
        replies:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Replies
      type: object
      required:
        - text
      title: CommentItem

````

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