---
title: "Get comments for an entity"
method: GET
path: "/v1/comments"
tags: ["Comments"]
---

# Get comments for an entity

`GET /v1/comments`

Get comments for an entity in Comp AI. Create and manage collaboration comments on compliance entities such as tasks, policies, risks, vendors, and findings.

## Query parameters

- `entityId` string, required
- `entityType` 'task' | 'vendor' | 'risk' | 'policy' | 'finding', required

## Response `200`

Comments retrieved successfully

- CommentResponseDto[]
  - `id` string, required — Unique identifier for the comment
  - `content` string, required — Comment content
  - `author` AuthorResponseDto, required
    - `id` string, required — User ID
    - `name` string, required — User name
    - `email` string, required — User email
    - `image` object, nullable, required — User profile image URL
    - `deactivated` boolean, nullable, required — Whether the user is deactivated
  - `attachments` AttachmentMetadataDto[], required — Attachment metadata (URLs generated on-demand)
    - `id` string, required — Unique identifier for the attachment
    - `name` string, required — Original filename
    - `type` string, required — File type/MIME type
    - `createdAt` string, date-time, required — Upload timestamp
  - `createdAt` string, date-time, required — Comment creation timestamp

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
