Skip to content

List Customer Comments

Required scope: customer_comment:read

Use this endpoint to read a customer’s internal comment thread. Top-level comments are returned each with their replies nested. Each comment includes the author’s display name, timestamps, an isEdited flag, and a replyCount.

Top-level comments come newest first, each with all its replies. Without pageSize (1 to 100) the first 100 return; when nextCursor is set, send it back as cursor with the same filters for the next page.

Only comments the API key’s member is allowed to read are returned. Comment attachments and mention wiring are not included; retrieve a customer’s files through the document and photo endpoints. Read the prior bodies of an edited comment with List Customer Comment History.

Generated Reference
POST /public-api/publicapi.v1.Customer/ListCustomerComments

Lists a customer's internal comment thread: top-level comments, newest first, each with their replies nested. Read-only; only comments the API key's member can read are returned. Without page_size the first 100 top-level comments return with a next_cursor when more exist.

Request ListCustomerCommentsRequest
Response ListCustomerCommentsResponse

ListCustomerCommentsRequest

Field Type Description
customer_id string Customer whose comment thread is returned.
page_size int32 Rows per page, 1 to 100. Zero uses 100. Without page_size the first 100 return with a next_cursor when more exist.
cursor string Opaque next_cursor from the previous page; keep the other filters the same. The preferred way to read every row.

ListCustomerCommentsResponse

Field Type Description
comments repeated CustomerComment Top-level comments, each with its replies nested. Excludes comments the API key's member may not read.
next_cursor string Pass as cursor to read the next page. Empty on the last page.
{
"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04"
}
Terminal window
curl https://portal.heyx.app/public-api/publicapi.v1.Customer/ListCustomerComments \
-H "Authorization: Bearer hx_sk_..." \
-H "Content-Type: application/json" \
-d '{"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04"}'
{
"comments": [
{
"id": "a2ec8aef-691a-4e9d-b4fd-52e255883c6c",
"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04",
"body": "Imported note from ERP",
"authorName": "Alex Example",
"isEdited": false,
"replyCount": 1,
"replies": [
{
"id": "e4b1c0d2-3f5a-4c6b-8d7e-9f0a1b2c3d4e",
"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04",
"body": "Thanks, following up.",
"authorName": "Sam Example",
"isEdited": true,
"parentId": "a2ec8aef-691a-4e9d-b4fd-52e255883c6c"
}
]
}
]
}