POST
/
v1
/
tickets
/
{id}
/
comment
curl --request POST \
  --url https://platform.thena.ai/v1/tickets/{id}/comment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "content": "<string>",
  "contentHtml": "<string>",
  "threadName": "<string>",
  "parentCommentId": "<string>",
  "commentVisibility": "<string>",
  "commentType": "<string>",
  "metadata": {},
  "attachmentUrls": [
    "<string>"
  ],
  "commentAs": "<string>",
  "customerEmail": "<string>"
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "content": "<string>",
    "contentHtml": "<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>",
    "authorAvatarUrl": "<string>",
    "attachments": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

id
string
required

Body

application/json
content
string
required

The content of the comment

contentHtml
string

The HTML 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

metadata
object

The metadata of the comment

attachmentUrls
string[]

The attachment URLs

commentAs
string

The comment as a string

customerEmail
string

The customer contact's email address

Response

201
application/json
Operation successful
status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string
default:2024-01-01T00:00:00.000Z
required

The timestamp of the response

data
object
required

The response for create/update/delete comment operations