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

# Get chat messages



## OpenAPI

````yaml get /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:
    get:
      summary: Get chat messages
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: before
          in: query
          schema:
            type: string
            format: date-time
        - name: after
          in: query
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: List of messages
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MessageResponse'
components:
  schemas:
    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

````