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

# Send a message to a conversation



## OpenAPI

````yaml /openapi.json post /api/conversations/{id}/messages
openapi: 3.0.0
info:
  title: GoMobile Backend API
  description: >-
    API documentation for GoMobile telephony platform - automated calling
    campaigns, interactive voice flows, and call management
  version: '1.0'
  contact: {}
servers:
  - url: http://localhost:3000
    description: Local Development
security: []
tags:
  - name: Organizations
    description: Multi-tenant organization management
  - name: Teams
    description: Team structure and hierarchy
  - name: Contacts
    description: Customer contact management (CRM)
  - name: Entities
    description: Business entities management
  - name: Audiences
    description: Contact segmentation and groups
  - name: Programs
    description: Call campaign configuration
  - name: Call Flows
    description: Interactive call flow builder
paths:
  /api/conversations/{id}/messages:
    post:
      tags:
        - Agent Studio - Conversations
      summary: Send a message to a conversation
      operationId: ConversationMessagesController_sendMessage
      parameters:
        - name: id
          required: true
          in: path
          description: Conversation ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMessageDto'
      responses:
        '200':
          description: Message sent successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendMessageResponseDto'
        '404':
          description: Conversation not found
        '409':
          description: Conversation not active
      security:
        - bearer: []
components:
  schemas:
    SendMessageDto:
      type: object
      properties:
        message:
          type: string
          description: Message content
          example: Hello, how can I get a refund?
          minLength: 1
          maxLength: 10000
      required:
        - message
    SendMessageResponseDto:
      type: object
      properties:
        response:
          type: string
          description: Assistant response text
        usage:
          type: object
          description: Token usage
          nullable: true
          additionalProperties: true
      required:
        - response
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````