---
title: "Batch Fetch Comments By Entity IDs"
method: POST
path: "/api/v2/core/entity-comments-batch-fetch"
tags: ["Comment"]
---

# Batch Fetch Comments By Entity IDs

`POST /api/v2/core/entity-comments-batch-fetch`

Fetches all comments for a given list of entity IDs

## Headers

- `Authorization` string, required

## Request body

- CommentBatchFetchByEntityIdsRequestSchema
  - `entityIds` string[], required — List of entity IDs to fetch comments for, limit of 100 entity IDs per request
  - `entityType` string, required — Type of entity to fetch comments for. Supported entity types: demand

## Response `200`

OK

- object
  - `data` FetchCommentsByEntityIdsResponseSchema[]
    - `comments` CommentSchema[], nullable — List of comments
      - `createdAt` integer, nullable — Comment creation timestamp
      - `entityType` string, nullable — Type of entity the comment is associated with
      - `commentId` integer, nullable — Comment ID
      - `isPrivate` boolean, nullable — Whether the comment is private
      - `entityId` integer, nullable — ID of the entity the comment is associated with
      - `createdBy` string, nullable — Email of the user who created the comment
      - `parentId` integer, nullable — ID of the parent comment
      - `groupId` string, nullable — Group ID
      - `updatedAt` integer, nullable — Comment update timestamp
      - `comment` string, nullable — Comment content in text (HTML) format
    - `entityId` integer, nullable — Entity ID
    - `entityType` string, nullable — Entity Type
  - `meta` BatchFetchMetaSchema
    - `missingEntityIds` string[], nullable — List of entity ids for which no result was found

---

[API](https://skmtc.net/eightfold/apis/api-server-v2-service-service.md) · [All operations](https://skmtc.net/eightfold/apis/api-server-v2-service-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eightfold/api-server-v2-service-service/versions/0fb26f4e41bf/schema)
