---
title: "Get list of ticket comments"
method: GET
path: "/tickets/comments"
tags: ["TicketComments"]
---

# Get list of ticket comments

`GET /tickets/comments`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/tickets/comments`
- Auth: HTTP bearer

## Query parameters

- `taskid` integer
- `excludeautocomment` string[]
- `includenullautocomments` boolean
- `paginationStart` number: Start of pagination
- `paginationPageLength` number: Pagination page length

## Response `200`

Ok

- TicketCommentListResponse: Response when requesting a list of ticket comments based on some filters.
  - `content` TicketComment[]
    - `id` integer: A unique TicketComment ID
    - `taskid` integer
    - `userid` integer
    - `comment` string
    - `autocomment` string, nullable
    - `created` string
    - `smslogid` integer, nullable
    - `smslog` SMSLog: A logged SMS
      - `id` integer: A unique SMSLog ID
      - `message` string, nullable
      - `size` integer, nullable: The actual SMS count after the message has been split into 160 character segments
      - `date` string
      - `phone_e164` string, nullable: The phoneno in E164 format
      - `gateway_id` integer, nullable
      - `gateway_status` string, nullable: The status of the SMS reported by the gateway system. See https://gatewayapi.com/docs/rest.html#webhooks
      - `gateway_time` integer, nullable: A unix timestamp of the moment the latest gateway_status was reported by the gateway.
      - `sendtime` string, nullable: The time of the message that should be sent.
      - `status` 'RECEIVED' | 'UNDELIVERABLE' | 'SCHEDULED' | 'SENT' | 'DELIVERED' | 'DELETED' | 'FAILED'
      - `inbound` integer: If 1 the message is an inbound message from the customer
      - `country` string: The country code of where the sms was sent to (set by gateway api)
      - `userid` integer: Userid of who sent this sms, currently faked using ticket comment
      - `template` string, nullable: The template used in this sms, currently faked using ticket comment
      - `encoding` 'gsm7' | 'ucs2', nullable
      - `error_status` string, nullable: The error status of the SMS from the batch relation
  - `count` integer, nullable: Number of ticket comments
  - `hasMore` boolean: True if there are data to retrieve than the given page length

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
