> ## 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 user chats



## OpenAPI

````yaml get /v1/chats
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:
    get:
      summary: Get user chats
      responses:
        '200':
          description: List of chat conversations
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ChatResponse'
components:
  schemas:
    ChatResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        type:
          type: string
        participants:
          type: array
          items:
            type: string
            format: uuid
        lastMessage:
          $ref: '#/components/schemas/MessageResponse'
        unreadCount:
          type: integer
        metadata:
          type: object
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    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

````