---
title: "Count Ticket Comments"
method: GET
path: "/api/v2/tickets/{ticket_id}/comments/count"
tags: ["Ticket Comments"]
---

# Count Ticket Comments

`GET /api/v2/tickets/{ticket_id}/comments/count`

Returns an approximate count of the comments added to the ticket. If the count exceeds 100,000, the count will return a cached result.  This cached result will update every 24 hours.

The `count[refreshed_at]` property is a timestamp that indicates when the count was last updated.

**Note**: When the count exceeds 100,000, `count[refreshed_at]` may occasionally be null.
This indicates that the count is being updated in the background, and `count[value]` is limited to 100,000 until the update is complete.

#### Allowed For
* Agents

## Path parameters

- `ticket_id` integer, required

## Response `200`

Count of ticket comments

- TicketCommentsCountResponse
  - `count` object
    - `refreshed_at` string, date-time
    - `value` integer

---

[API](https://skmtc.dev/botbrains-io/apis/support-api.md) · [All operations](https://skmtc.dev/botbrains-io/apis/support-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/botbrains-io/support-api/revisions/d53eac07ba68/schema)
