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

# Submit Observations

> Submit 1-50 observations.

Auth (two modes):
1. Connector API key via X-Api-Key header or Authorization: Bearer cl_obs_* — scopes to connector's project.
2. User JWT via Authorization: Bearer <jwt> — requires project_id in request body.

Atomically accepts immutable source snapshots and acknowledges each stored ID.
Exact retries return the same IDs. Redis is an optional cron wakeup.



## OpenAPI

````yaml /api/openapi.json post /api/observations/submit
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:
  /api/observations/submit:
    post:
      tags:
        - observations
      summary: Submit Observations
      description: >-
        Submit 1-50 observations.


        Auth (two modes):

        1. Connector API key via X-Api-Key header or Authorization: Bearer
        cl_obs_* — scopes to connector's project.

        2. User JWT via Authorization: Bearer <jwt> — requires project_id in
        request body.


        Atomically accepts immutable source snapshots and acknowledges each
        stored ID.

        Exact retries return the same IDs. Redis is an optional cron wakeup.
      operationId: submit_observations_api_observations_submit_post
      parameters:
        - name: X-Api-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitObservationsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SubmitObservationsRequest:
      properties:
        observations:
          items:
            $ref: '#/components/schemas/ObservationItem'
          type: array
          maxItems: 50
          minItems: 1
          title: Observations
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: Project UUID (required when using JWT auth instead of connector key)
        entity_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Entity Id
          description: >-
            Default entity; a non-null item entity takes precedence, then the
            connector default
      type: object
      required:
        - observations
      title: SubmitObservationsRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ObservationItem:
      properties:
        content:
          type: string
          maxLength: 10000
          minLength: 1
          title: Content
        source_platform:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Platform
        source_id:
          anyOf:
            - type: string
              maxLength: 2000
              minLength: 1
            - type: 'null'
          title: Source Id
          description: >-
            Provider identity including account/channel namespace; saved in
            metadata.source_id
        observation_type:
          type: string
          title: Observation Type
          default: general
        entity_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Entity Id
        signal_type:
          anyOf:
            - type: string
              pattern: ^(official|reception)$
            - type: 'null'
          title: Signal Type
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
      type: object
      required:
        - content
      title: ObservationItem
    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.