Get all ticket comments
GET/v3/tickets/:id/comments
Get all ticket comments
Request
Path Parameters
id numberrequired
Ticket ID
Query Parameters
private boolean
Comment visibility; true for private, false for public visibility.
limit number
Possible values: >= 1 and <= 100
Default value: 50
Record limit per request; default is 50, maximum is 100.
page number
Possible values: >= 1
Page of results
created_date.gte date
Comment created date greater than or equal to. Should be in the format YYYY-MM-DDTHH:MM:SS
created_date.lte date
Possible values: <= now characters
Comment created date less than or equal to. Should be in the format YYYY-MM-DDTHH:MM:SS
Responses
- 200
 
Successful
- */*
 
- Schema
 - Example (from schema)
 
Schema
Array [
Array [
]
]
data
object[]
id number
Comment id
body string
Body of the comment
ticket_id number
Ticket id
private boolean
Comment is public or private
agent_id number
User ID
requester_id number
Contact ID
created_at date
attachments
object[]
Attachments
id number
Attachment id
name string
Attachment name
url string
Attachment url
type string
Attachment type
has_next_page boolean
{
  "data": [
    {
      "id": 1,
      "body": "Random text",
      "ticket_id": 2,
      "private": true,
      "agent_id": 0,
      "requester_id": 0,
      "created_at": "2022-03-10T12:34:00.860Z",
      "attachments": [
        {
          "id": 1,
          "name": "file.txt",
          "url": "https://example.com/file.txt",
          "type": "text/plain"
        }
      ]
    }
  ],
  "has_next_page": true
}
Loading...