curl --request POST \
--url https://platform.thena.ai/v1/comments \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"content": "<string>",
"contentHtml": "<string>",
"contentJson": "<string>",
"threadName": "<string>",
"entityType": "<string>",
"entityId": "<string>",
"parentCommentId": "<string>",
"commentVisibility": "<string>",
"commentType": "<string>",
"metadata": {},
"attachmentIds": [
"<string>"
],
"commentAs": "<string>",
"customerEmail": "<string>"
}'
{
"id": "<string>",
"content": "<string>",
"contentHtml": "<string>",
"contentJson": "<string>",
"contentMarkdown": "<string>",
"isEdited": true,
"threadName": "<string>",
"commentVisibility": "<string>",
"commentType": "<string>",
"isPinned": true,
"sourceEmailId": "<string>",
"metadata": {},
"parentCommentId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"author": "<string>",
"authorId": "<string>",
"authorUserType": "<string>",
"customerContactId": "<string>",
"customerContactEmail": "<string>",
"customerContactFirstName": "<string>",
"customerContactLastName": "<string>",
"customerContactAvatarUrl": "<string>",
"authorAvatarUrl": "<string>",
"impersonatedUserEmail": "<string>",
"impersonatedUserName": "<string>",
"impersonatedUserAvatar": "<string>",
"attachments": [
"<string>"
],
"deletedAt": "<string>"
}
Create a comment on an entity (ticket, account activity, note, or task). This endpoint is only available for standard and enterprise tier organizations.
curl --request POST \
--url https://platform.thena.ai/v1/comments \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"content": "<string>",
"contentHtml": "<string>",
"contentJson": "<string>",
"threadName": "<string>",
"entityType": "<string>",
"entityId": "<string>",
"parentCommentId": "<string>",
"commentVisibility": "<string>",
"commentType": "<string>",
"metadata": {},
"attachmentIds": [
"<string>"
],
"commentAs": "<string>",
"customerEmail": "<string>"
}'
{
"id": "<string>",
"content": "<string>",
"contentHtml": "<string>",
"contentJson": "<string>",
"contentMarkdown": "<string>",
"isEdited": true,
"threadName": "<string>",
"commentVisibility": "<string>",
"commentType": "<string>",
"isPinned": true,
"sourceEmailId": "<string>",
"metadata": {},
"parentCommentId": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"author": "<string>",
"authorId": "<string>",
"authorUserType": "<string>",
"customerContactId": "<string>",
"customerContactEmail": "<string>",
"customerContactFirstName": "<string>",
"customerContactLastName": "<string>",
"customerContactAvatarUrl": "<string>",
"authorAvatarUrl": "<string>",
"impersonatedUserEmail": "<string>",
"impersonatedUserName": "<string>",
"impersonatedUserAvatar": "<string>",
"attachments": [
"<string>"
],
"deletedAt": "<string>"
}
Enter your API key
Operation successful
The response is of type object
.