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

# List comments

> Retrieves all comments for a specific ticket.

<Warning>
  **Deprecated:** This is a **v1** endpoint. It will continue to work, but we
  recommend migrating to the [v2 equivalent](/api-reference) for improved REST
  compliance (correct HTTP status codes, consistent response envelopes, and
  hyphenated URLs).
</Warning>

<Info>Replace `{your-subdomain}` with your workspace's subdomain. <br /> Learn how to find your subdomain in [Workspace subdomain](/getting-started/workspace-subdomain).</Info>


## OpenAPI

````yaml /bundled-v1/comments.yaml GET /tickets/{ticket_id}/comments
openapi: 3.0.3
info:
  title: NeetoDesk APIs
  version: 1.0.0
servers:
  - description: NeetoDesk APIs
    url: https://{your-subdomain}.neetodesk.com/api/v1/public
    variables:
      your-subdomain:
        default: spinkart
        description: >-
          Replace **spinkart** with your [workspace's
          subdomain](/getting-started/workspace-subdomain).
security: []
paths:
  /tickets/{ticket_id}/comments:
    get:
      summary: List comments for a ticket
      description: Retrieves all comments for a specific ticket.
      parameters:
        - $ref: '#/components/parameters/api_key_header'
        - $ref: '#/components/parameters/ticket_id_param'
        - $ref: '#/components/parameters/page_number_param'
        - $ref: '#/components/parameters/page_size_param'
      responses:
        '200':
          description: OK - Request succeeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  comments:
                    type: array
                    items:
                      $ref: '#/components/schemas/Comment'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
components:
  parameters:
    api_key_header:
      in: header
      name: X-Api-Key
      description: >-
        Use the X-Api-Key header to provide your workspace API key. Refer to
        [Authentication](/getting-started/authentication) for more information.
      required: true
      schema:
        type: string
        default: your-api-key
    ticket_id_param:
      in: path
      name: ticket_id
      description: >-
        ID of the ticket to retrieve comments for. You can use either the ticket
        ID (UUID) or ticket number (sequential number) interchangeably. Refer to
        [Getting Ticket ID](/getting-started/getting-ticket-id) section for
        detailed instructions.
      required: true
      schema:
        type: string
    page_number_param:
      in: query
      name: page_number
      description: >-
        Retrieve paginated results by specifying the desired page number. If
        this parameter is absent, all results will be returned.
      required: false
      schema:
        type: integer
    page_size_param:
      in: query
      name: page_size
      description: >-
        Set the number of results returned in the response. Defaulting to 30
        when omitted.
      required: false
      schema:
        type: integer
  schemas:
    Comment:
      type: object
      properties:
        id:
          type: string
          example: aaaabbbb-cccc-dddd-eeee-ffff00002222
        created_at:
          type: string
          format: date-time
        comment_type:
          type: string
          example: reply
        content:
          type: string
          example: We are looking into the issue and will update you shortly.
        author:
          $ref: '#/components/schemas/Author'
        attachments:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                example: aaaabbbb-cccc-dddd-eeee-ffff00003333
              url:
                type: string
                example: https://example.com/attachments/screenshot.png
              filename:
                type: string
                example: screenshot.png
    Pagination:
      type: object
      properties:
        total_records:
          type: integer
          example: 95
        total_pages:
          type: integer
          example: 4
        current_page_number:
          type: integer
          example: 1
        page_size:
          type: integer
          example: 30
    Author:
      type: object
      properties:
        id:
          type: string
          example: aaaabbbb-cccc-dddd-eeee-ffff00001111
        name:
          type: string
          example: Oliver Smith
        email:
          type: string
          example: oliver@example.com
        type:
          type: string
          example: user

````