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

# List comments on a CRM entry (roots newest first, with preview replies)

> List comments on a CRM entry (roots newest first, with preview replies).



## OpenAPI

````yaml /api-reference/openapi.json get /crm/objects/{objectName}/entries/{entryId}/comments
openapi: 3.1.0
info:
  title: Dench API
  version: 1.0.0
  description: >-
    Versioned Dench workspace API. The operation registry is shared with the
    Dench CLI parity layer, so every CLI command maps to an endpoint here.
servers:
  - url: https://www.dench.com/api/v1
security: []
tags:
  - name: agent-config
    description: Agent Config operations.
  - name: approvals
    description: Approvals operations.
  - name: apps
    description: Apps operations.
  - name: auth
    description: Auth operations.
  - name: billing
    description: Billing operations.
  - name: browser
    description: Browser operations.
  - name: campaigns
    description: Campaigns operations.
  - name: chat
    description: Chat operations.
  - name: crm
    description: Crm operations.
  - name: email
    description: Email operations.
  - name: files
    description: Files operations.
  - name: gateway
    description: Gateway operations.
  - name: lists
    description: Lists operations.
  - name: local
    description: Local operations.
  - name: meetings
    description: Meetings operations.
  - name: members
    description: Members operations.
  - name: memory
    description: Memory operations.
  - name: meta
    description: Meta operations.
  - name: notifications
    description: Notifications operations.
  - name: routines
    description: Routines operations.
  - name: workspace
    description: Workspace operations.
paths:
  /crm/objects/{objectName}/entries/{entryId}/comments:
    get:
      tags:
        - crm
      summary: List comments on a CRM entry (roots newest first, with preview replies)
      description: List comments on a CRM entry (roots newest first, with preview replies).
      operationId: crm_comments_list
      parameters:
        - name: objectName
          in: path
          required: true
          schema:
            type: string
        - name: entryId
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
        - name: cursor
          in: query
          required: false
          schema:
            description: continueCursor from the prior page.
            type: string
          description: continueCursor from the prior page.
        - name: replies
          in: query
          required: false
          schema:
            description: Preview replies per root (default 2).
            type: integer
            minimum: 0
            maximum: 50
          description: Preview replies per root (default 2).
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: array
                    items:
                      type: object
                      properties:
                        _id:
                          type: string
                        entryId:
                          type: string
                        parentCommentId:
                          type: string
                        rootCommentId:
                          type: string
                        depth:
                          type: number
                        body:
                          type: string
                          description: Markdown.
                        actor:
                          type: object
                          properties:
                            kind:
                              type: string
                            label:
                              type: string
                            displayName:
                              type: string
                            imageUrl:
                              type: string
                            userId:
                              type: string
                            isDench:
                              type: boolean
                          required:
                            - kind
                            - label
                            - isDench
                          additionalProperties: {}
                        mentionedUserIds:
                          type: array
                          items:
                            type: string
                        mentionsDench:
                          type: boolean
                        replyCount:
                          type: number
                        reactionSummary:
                          type: array
                          items:
                            type: object
                            properties:
                              emoji:
                                type: string
                              count:
                                type: number
                            required:
                              - emoji
                              - count
                            additionalProperties: false
                        viewerReactions:
                          type: array
                          items:
                            type: string
                        editedAt:
                          type: number
                        deletedAt:
                          type: number
                        denchStatus:
                          type: string
                          enum:
                            - pending
                            - failed
                            - done
                        canEdit:
                          type: boolean
                        createdAt:
                          type: number
                        replies:
                          type: array
                          items:
                            type: object
                            properties:
                              _id:
                                type: string
                              entryId:
                                type: string
                              parentCommentId:
                                type: string
                              rootCommentId:
                                type: string
                              depth:
                                type: number
                              body:
                                type: string
                                description: Markdown.
                              actor:
                                type: object
                                properties:
                                  kind:
                                    type: string
                                  label:
                                    type: string
                                  displayName:
                                    type: string
                                  imageUrl:
                                    type: string
                                  userId:
                                    type: string
                                  isDench:
                                    type: boolean
                                required:
                                  - kind
                                  - label
                                  - isDench
                                additionalProperties: {}
                              mentionedUserIds:
                                type: array
                                items:
                                  type: string
                              mentionsDench:
                                type: boolean
                              replyCount:
                                type: number
                              reactionSummary:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    emoji:
                                      type: string
                                    count:
                                      type: number
                                  required:
                                    - emoji
                                    - count
                                  additionalProperties: false
                              viewerReactions:
                                type: array
                                items:
                                  type: string
                              editedAt:
                                type: number
                              deletedAt:
                                type: number
                              denchStatus:
                                type: string
                                enum:
                                  - pending
                                  - failed
                                  - done
                              canEdit:
                                type: boolean
                              createdAt:
                                type: number
                            required:
                              - _id
                              - entryId
                              - depth
                              - body
                              - actor
                              - mentionedUserIds
                              - mentionsDench
                              - replyCount
                              - reactionSummary
                              - viewerReactions
                              - canEdit
                              - createdAt
                            additionalProperties: {}
                            description: A comment on a CRM entry.
                      required:
                        - _id
                        - entryId
                        - depth
                        - body
                        - actor
                        - mentionedUserIds
                        - mentionsDench
                        - replyCount
                        - reactionSummary
                        - viewerReactions
                        - canEdit
                        - createdAt
                        - replies
                      additionalProperties: {}
                  isDone:
                    type: boolean
                  continueCursor:
                    type: string
                required:
                  - page
                  - isDone
                  - continueCursor
                additionalProperties: false
              example:
                page:
                  - _id: cmt_01
                    entryId: ent_lead99
                    depth: 0
                    body: >-
                      Kickoff went well — [@Bob](/?member=user_bob) can you send
                      the proposal?
                    actor:
                      kind: user
                      label: Ada
                      displayName: Ada Lovelace
                      userId: user_ada
                      isDench: false
                    mentionedUserIds:
                      - user_bob
                    mentionsDench: false
                    replyCount: 1
                    reactionSummary:
                      - emoji: 👍
                        count: 2
                    viewerReactions:
                      - 👍
                    canEdit: true
                    createdAt: 1765526400000
                    replies:
                      - _id: cmt_02
                        entryId: ent_lead99
                        parentCommentId: cmt_01
                        rootCommentId: cmt_01
                        depth: 1
                        body: On it.
                        actor:
                          kind: user
                          label: Bob
                          displayName: Bob Smith
                          userId: user_bob
                          isDench: false
                        mentionedUserIds: []
                        mentionsDench: false
                        replyCount: 0
                        reactionSummary: []
                        viewerReactions: []
                        canEdit: false
                        createdAt: 1765530000000
                isDone: true
                continueCursor: ''
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - DenchApiKey: []
        - AgentSession: []
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Operation or resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
            - type
            - code
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
            details: {}
  securitySchemes:
    DenchApiKey:
      type: http
      scheme: bearer
      bearerFormat: DENCH_API_KEY
      description: >-
        Workspace-scoped Dench API key from workspace settings. This is the same
        key used by DENCH_API_KEY in sandboxes.
    AgentSession:
      type: http
      scheme: bearer
      bearerFormat: dch_agent_*
      description: >-
        Agent session token created by `dench signin`. Gateway-backed routes
        exchange this token for the workspace gateway key.

````