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.

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 each with their replies nested. Read-only; only comments the API key's member can read are returned.

Request ListCustomerCommentsRequest
Response ListCustomerCommentsResponse

ListCustomerCommentsRequest

Field Type Description
customer_id string Customer whose comment thread is returned.

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.
{
"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"
}
]
}
]
}