POST
/
v1
/
tickets
/
{id}
/
comment
cURL
curl --request POST \
  --url https://platform.thena.ai/v1/tickets/{id}/comment \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "content": "<string>",
  "contentHtml": "<string>",
  "contentJson": "<string>",
  "threadName": "<string>",
  "parentCommentId": "<string>",
  "commentVisibility": "<string>",
  "commentType": "<string>",
  "customerEmail": "<string>",
  "metadata": {},
  "attachmentIds": [
    "<string>"
  ],
  "impersonatedUserEmail": "<string>",
  "impersonatedUserName": "<string>",
  "impersonatedUserAvatar": "<string>",
  "shouldSendEmail": true,
  "deDuplicationKey": "<string>"
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "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>"
  }
}

Authorizations

x-api-key
string
header
required

Enter your API key

Path Parameters

id
string
required

Body

application/json
content
string

The content of the comment

contentHtml
string

The HTML content of the comment

contentJson
string

The JSON content of the comment

threadName
string

The name of the comment thread

parentCommentId
string

The parent comment ID

commentVisibility
string

The visibility of the comment

commentType
string

The type of the comment

customerEmail
string

The customer email of the comment

metadata
object

The metadata of the comment

attachmentIds
string[]

The attachment IDs

impersonatedUserEmail
string

The impersonated user email

impersonatedUserName
string

The impersonated user name

impersonatedUserAvatar
string

The impersonated user avatar

shouldSendEmail
boolean

Whether to send an email

deDuplicationKey
string

A deduplication key provided by an external application. The platform uses this key to prevent the creation of duplicate tickets.

Response

Operation successful

status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string<date-time>
default:2024-01-01T00:00:00.000Z
required

The timestamp of the response

data
object
required

The response for create/update/delete comment operations