---
title: "Count Record Comments"
method: POST
path: "/api/v1/entities/{entity_id}/comment-counts"
tags: ["comments"]
---

# Count Record Comments

`POST /api/v1/entities/{entity_id}/comment-counts`

Comment counts for a page of records. Row keys with no visible comments
are omitted from the response.

## Path parameters

- `entity_id` string, uuid, required

## Query parameters

- `embed_host_app_id` string, uuid, nullable

## Request body

- CommentCountsRequest
  - `row_keys` string[], required
  - `app_id` string, uuid, nullable

## Response `200`

Successful Response

- CommentCounts
  - `counts` object, required — row_key -> live comment count. Row keys with no visible comments are OMITTED, never returned as 0 — an explicit zero would still distinguish 'no comments' from 'you cannot see this row'.

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-25** `962a03cad931` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/netter/apis/dmi-backend/changes/api/v1/entities/:entity_id/comment-counts/post.md)

---

[API](https://skmtc.dev/netter/apis/dmi-backend.md) · [All operations](https://skmtc.dev/netter/apis/dmi-backend/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netter/dmi-backend/revisions/eed6fb164abd/schema)
