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

# List the comments of a request shared with the user

> Newest first. Authors are shown by name only.



## OpenAPI

````yaml /openapi.yaml get /collaboration/requests/{request_id}/comments
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /collaboration/requests/{request_id}/comments:
    parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: integer
    get:
      tags:
        - Collaboration
      summary: List the comments of a request shared with the user
      description: Newest first. Authors are shown by name only.
      operationId: collaboration_comments#index
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/collaboration_shared_comment'
        '404':
          description: Not found
        '410':
          description: Gone
      security:
        - apiKey: []
components:
  schemas:
    collaboration_shared_comment:
      type: object
      description: >-
        A comment of a collaboration request's thread, as a collaborator sees
        it.
      required:
        - id
        - attachments
        - body
        - author
        - mine
        - from_workspace
        - created_at
      properties:
        id:
          type: integer
        body:
          type: string
        mention_ids:
          type: array
          items:
            type: integer
          description: >-
            Mentioned users (the request's recipients); the body holds them as
            `@email`.
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/comment_attachment'
        author:
          type: object
          properties:
            id:
              type: integer
            email:
              type: string
            first_name:
              type: string
              nullable: true
            last_name:
              type: string
              nullable: true
            logo_url:
              type: string
              nullable: true
        mine:
          type: boolean
          description: Written by the signed-in user, who may edit or delete it.
        from_workspace:
          type: boolean
          description: The author is a member of the sharing workspace.
        edited_at:
          type: string
          format: date-time
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    comment_attachment:
      type: object
      description: >-
        A file posted with a comment (any commentable, collaboration threads
        included). Oldest first. Deleted with the comment, or when its author
        removes it (`remove_attachment_ids`).
      required:
        - id
        - filename
        - content_type
        - byte_size
        - url
      properties:
        id:
          type: integer
        filename:
          type: string
          description: The name it was uploaded with.
        content_type:
          type: string
          example: application/pdf
        byte_size:
          type: integer
        url:
          type: string
          description: >-
            A download link that keeps the uploaded name (presigned on private
            storage).
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.