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

# Append message to AI room



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/platforms/{platform}/ai/rooms/{roomId}/messages
openapi: 3.1.0
info:
  title: Optareach Public API
  version: 1.0.0
  description: >-
    Platform-first API surface for accounts, prospects, campaigns, inbox,
    tracked searches, AI rooms, jobs, workspaces, analytics, billing, profile,
    and knowledge bases.
servers:
  - url: /
    description: Current environment
security: []
tags:
  - name: Meta
    description: API metadata and discovery
  - name: Platforms
    description: Platform registry and capabilities
  - name: Accounts
    description: Connected sender accounts
  - name: Prospects
    description: Prospect lists and leads
  - name: Campaigns
    description: Campaign lifecycle and performance
  - name: Inbox
    description: Conversations and messages
  - name: TrackedSearches
    description: Mentions and tracked search streams
  - name: AI
    description: AI chat rooms and enrichment
  - name: Jobs
    description: Background jobs
  - name: Workspaces
    description: Workspace management
  - name: KnowledgeBases
    description: Knowledge base management
  - name: Analytics
    description: Global dashboard metrics
  - name: Billing
    description: Subscriptions and credits
  - name: Profile
    description: Current user profile
  - name: Tags
    description: Conversation tags
  - name: Notifications
    description: Notification feed
paths:
  /api/v1/platforms/{platform}/ai/rooms/{roomId}/messages:
    post:
      tags:
        - AI
      summary: Append message to AI room
      parameters:
        - $ref: '#/components/parameters/platform'
        - $ref: '#/components/parameters/roomId'
      requestBody:
        description: AI message payload
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AIMessageWrite'
            example:
              role: user
              content: Summarize this lead before outreach.
      responses:
        '200':
          description: Message appended
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/AIMessage'
                required:
                  - data
              example:
                data:
                  id: airm_123
                  roomId: room_lead_research
                  role: assistant
                  content: >-
                    Jane looks like a founder-led buyer with strong hiring
                    intent.
                  createdAt: '2026-03-21T09:02:00.000Z'
components:
  parameters:
    platform:
      name: platform
      in: path
      required: true
      schema:
        type: string
    roomId:
      name: roomId
      in: path
      required: true
      schema:
        type: string
  schemas:
    AIMessageWrite:
      type: object
      properties:
        role:
          type: string
        content:
          type: string
      required:
        - role
        - content
    AIMessage:
      type: object
      properties:
        id:
          type: string
        roomId:
          type: string
        role:
          type: string
        content:
          type: string
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - roomId
        - role
        - content

````