Get Comments on Entity

Retrieve all comments for a specific entity in the Thena platform.

Parameters

NameTypeRequiredDescription
entityTypestringYesThe type of the entity (e.g., “ticket”, “conversation”)
entityIdstringYesThe ID of the entity to get comments for
pagenumberNoThe page number for pagination (default: 0)
limitnumberNoMaximum number of comments to return (default: 10)

Example Prompt

Get all comments for ticket NYD3S01K100PGBTVWPMTPX8W4W3G6

Response Fields

Each item in the data array is a comment object with the following fields:
FieldTypeDescription
idstringComment unique ID
contentstringPlain text content of the comment
contentHtmlstringHTML formatted content
contentMarkdownstringMarkdown formatted content
contentJsonstringJSON formatted content for rich text
isEditedbooleanWhether the comment has been edited
threadNamestringName of the comment thread
commentVisibilitystringVisibility setting (public or private)
commentTypestringType of comment (note, reply, comment, etc.)
isPinnedbooleanWhether the comment is pinned
sourceEmailIdstringEmail ID if comment came from email
metadataobjectAdditional metadata including mentions, userReactions, and sometimes replies
createdAtstring (ISO8601)Creation timestamp
updatedAtstring (ISO8601)Last update timestamp
authorstringAuthor display name
authorAvatarUrlstringAuthor’s avatar URL
attachmentsarrayArray of attachment IDs
authorIdstringAuthor’s user ID
authorUserTypestringAuthor’s user type (e.g., ORG_ADMIN)
impersonatedUserEmailstringEmail of impersonated user
impersonatedUserNamestringName of impersonated user
impersonatedUserAvatarstringAvatar of impersonated user
deletedAtstringDeletion timestamp (null if not deleted)

Sample Response

{
  "data": [
    {
      "id": "G727S01K1045B01QRQY2P1ATK3R5F",
      "content": "Internal note: This performance issue might be related to the recent deployment we did last Tuesday (v2.4.3). Sarah mentioned in the standup that they noticed some unusual query patterns after that release. \n\nNeed to check:\n- Did we accidentally remove any indexes during the schema migration?\n- The new caching layer might not be working as expected\n- Could be related to the user session timeout changes\n\nAlso, Alex (the requestor) is from our biggest client - BusinessCorp. They're up for renewal next month, so this needs to be prioritized. Marketing has been pushing hard to keep them happy.\n\nI'll coordinate with the DevOps team offline about the maintenance window. Don't want to mention specific timing in public comments until we confirm availability.",
      "contentHtml": "",
      "contentMarkdown": "...",
      "contentJson": "...",
      "isEdited": false,
      "threadName": null,
      "commentVisibility": "private",
      "commentType": "note",
      "isPinned": false,
      "sourceEmailId": null,
      "metadata": {
        "mentions": [],
        "userReactions": []
      },
      "createdAt": "2025-07-25T12:34:04.651Z",
      "updatedAt": "2025-07-25T12:34:04.650Z",
      "author": "shakthi+1",
      "authorAvatarUrl": null,
      "attachments": [],
      "authorId": "UTH00SEXXFNVVN",
      "authorUserType": "ORG_ADMIN",
      "impersonatedUserEmail": null,
      "impersonatedUserName": null,
      "impersonatedUserAvatar": null,
      "deletedAt": null
    }
  ],
  "status": true,
  "message": "Comments fetched successfully!",
  "timestamp": "2025-07-25T12:48:11.462Z"
}