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

# Get comments



## OpenAPI

````yaml /openapi/attachments.json get /v1/attachments/comments/
openapi: 3.0.3
info:
  title: Yume API — Вложения
  version: 1.0.0
  description: Загрузка и управление файлами.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/attachments/comments/:
    get:
      tags:
        - comments
      summary: Get comments
      operationId: comments_list
      parameters:
        - $ref: '#/components/parameters/TenantId'
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CommentAttachment'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    CommentAttachment:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        body:
          type: string
        user:
          type: integer
          readOnly: true
          nullable: true
        context:
          nullable: true
        content_type:
          type: string
          title: Имя класса модели
        object_id:
          type: integer
          maximum: 9223372036854776000
          minimum: 0
          format: int64
        links:
          type: array
          items:
            $ref: '#/components/schemas/CommentLink'
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
          title: Создан
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Обновлен
      required:
        - body
        - content_type
        - created_at
        - id
        - links
        - object_id
        - updated_at
        - user
    CommentLink:
      type: object
      properties:
        content_type:
          type: string
          title: Имя класса модели
          readOnly: true
        content_type_label:
          type: string
          readOnly: true
        object_id:
          type: integer
          maximum: 9223372036854776000
          minimum: 0
          format: int64
          title: ID объекта
        label:
          type: string
          readOnly: true
        url:
          type: string
          readOnly: true
      required:
        - content_type
        - content_type_label
        - label
        - object_id
        - url
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````