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

# Get all conversation messages by ID



## OpenAPI

````yaml GET /conversations/:conversationId/messages
openapi: 3.0.0
info:
  title: Cogfy Messenger Public API
  version: 1.0.0
  description: API for interacting with the Cogfy Messenger platform
servers:
  - url: https://messenger-public-api.cogfy.com
    description: Production server
  - url: http://localhost:53981
    description: Local server
security:
  - ApiKeyAuth: []
tags: []
paths:
  /conversations/:conversationId/messages:
    get:
      tags:
        - Conversations
      summary: Get all messages in a conversation
      parameters:
        - in: query
          name: cursor
          schema:
            type: string
          description: Cursor for pagination
      responses:
        '200':
          description: A list of messages
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        workspaceId:
                          type: string
                          format: uuid
                        conversationId:
                          type: string
                          format: uuid
                        assistantId:
                          type: string
                          format: uuid
                        userId:
                          type: string
                          format: uuid
                        broadcastId:
                          type: string
                          format: uuid
                        whatsappMessageId:
                          type: string
                        from:
                          type: string
                        to:
                          type: string
                        role:
                          type: string
                        status:
                          type: string
                        type:
                          type: string
                        content:
                          type: string
                        contentData:
                          type: object
                        toolCallId:
                          type: string
                        toolCalls:
                          type: string
                        data:
                          type: string
                        contextId:
                          type: string
                        contextFrom:
                          type: string
                        createDate:
                          type: string
                          format: date-time
                        sendDate:
                          type: string
                          format: date-time
                        deliverDate:
                          type: string
                          format: date-time
                        readDate:
                          type: string
                          format: date-time
                        promptTokens:
                          type: string
                        completionTokens:
                          type: string
                        order:
                          type: number
                        traceId:
                          type: string
                  cursors:
                    type: object
                    properties:
                      next:
                        type: string
                        nullable: true
                        description: Cursor for newer messages
                      prev:
                        type: string
                        nullable: true
                        description: Cursor for older messages
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api-key

````