API reference
Platform
- Search
- Users
- Teams
- Tickets
- GETGet all tickets
- POSTCreate a ticket
- POSTCreate tickets in bulk
- GETGet a ticket
- PATCHUpdate a ticket
- PATCHUpdate tickets in bulk
- DELDelete a ticket
- POSTDelete tickets in bulk
- PATCHAssign a ticket to an agent
- PATCHReassign a ticket to a team
- PATCHEscalate a ticket
- GETGet ticket related
- PATCHMark a ticket as sub-ticket
- PATCHMark a ticket as duplicate
- PATCHLink tickets
- POSTComment on a ticket
- GETGet comments for a ticket
- Get comments for a ticket by user type
- Attach a file to a ticket
- Get v1tickets attachments
- PATCHLog time for a ticket
- GETGet time logs for a ticket
- POSTCreate a new ticket status
- GETGet all ticket statuses
- GETGet a ticket status by its ID
- PATCHUpdate a ticket status
- DELDelete a custom ticket status
- POSTCreate a new custom ticket type
- GETGet all ticket types
- GETGet v1ticketsticket types
- GETGet a ticket type by ID
- PATCHUpdate a custom ticket type
- DELDelete a custom ticket type
- POSTCreate a new custom ticket priority
- GETGet all ticket priorities
- GETGet a ticket priority by ID
- PATCHUpdate a custom ticket priority
- DELDelete a custom ticket priority
- POSTCreate a new ticket sentiment
- GETGet all ticket sentiments
- GETGet a ticket sentiment by id
- PATCHUpdate a ticket sentiment
- DELDelete a ticket sentiment
- PATCHUnarchive a ticket
- PATCHArchive a ticket
- PATCHArchive tickets in bulk
- GET
- Tags
- Ticket tags
- Accounts
- Forms
- Comments
- Emoji actions
- Custom object fields
- Custom objects
- Object records
- Views
- Views types
- Draft tickets
- Storage
- Reactions
Workflows
- Workflows
Apps platform
- App creation
- App installation
- App uninstallation
- App reinstallation
- Incoming webhook
Tickets
Get comments for a ticket
GET
/
v1
/
tickets
/
{id}
/
comments
Copy
Ask AI
curl --request GET \
--url https://platform.thena.ai/v1/tickets/{id}/comments \
--header 'x-api-key: <api-key>'
Copy
Ask AI
{
"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>"
]
}
]
}
Authorizations
Enter your API key
Path Parameters
Query Parameters
The page number
The limit number of comments to fetch
The type of comments to fetch
Available options:
comment
, note
The visibility of the comments to fetch
Available options:
private
, public
Response
200
application/json
Operation successful
The response is of type object
.
Copy
Ask AI
curl --request GET \
--url https://platform.thena.ai/v1/tickets/{id}/comments \
--header 'x-api-key: <api-key>'
Copy
Ask AI
{
"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>"
]
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.