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

# Send message



## OpenAPI

````yaml post /v1/chats/{id}/messages
openapi: 3.0.0
info:
  title: Corebanq - Chat API
  description: API endpoints for real-time chat functionality
  version: 1.0.0
servers: []
security: []
paths:
  /v1/chats/{id}/messages:
    post:
      summary: Send message
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMessageInput'
      responses:
        '201':
          description: Message sent successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
components:
  schemas:
    SendMessageInput:
      type: object
      required:
        - content
        - type
      properties:
        content:
          type: string
        type:
          type: string
          enum:
            - text
            - image
            - file
        metadata:
          type: object
    MessageResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        chatId:
          type: string
          format: uuid
        senderId:
          type: string
          format: uuid
        content:
          type: string
        type:
          type: string
        metadata:
          type: object
        createdAt:
          type: string
          format: date-time
        readBy:
          type: array
          items:
            type: string
            format: uuid

````