---
title: "Preview Ticket Count"
method: POST
path: "/api/v2/views/preview/count"
tags: ["Views"]
---

# Preview Ticket Count

`POST /api/v2/views/preview/count`

Returns the ticket count for a single preview.

#### Allowed For

* Agents

## Response `200`

Success response

- ViewCountResponse
  - `view_count` ViewCountObject
    - `active` boolean — Only active views if true, inactive views if false, all views if null.
    - `fresh` boolean — false if the cached data is stale and the system is still loading and caching new data
    - `pretty` string — A pretty-printed text approximation of the view count
    - `url` string — The API url of the count
    - `value` integer, nullable — The cached number of tickets in the view. Can also be null if the system is loading and caching new data. Not to be confused with 0 tickets
    - `view_id` integer — The id of the view

---

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