---
title: "Get ticket counts per status"
url: https://docs.gleap.ai/en/reference/rest-api/get-ticket-count
method: GET
path: "/tickets/ticketscount"
api: "API Reference"
tag: "Ticket"
operationId: "GetTicketCount"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Get ticket counts per status

`GET https://api.gleap.io/v3/tickets/ticketscount`

Returns the number of tickets grouped by status, as `[{ "_id": "OPEN", "count": 12 }, ...]`. Counts always exclude archived, hidden, spam and merged-duplicate tickets. Other filters (e.g. `type`, `tags`, `processingUser`) are applied; a `status` filter is ignored because the result is already grouped by status.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Headers

- `project` (string, required)

## Example request

```bash
curl --request GET \
  --url https://api.gleap.io/v3/tickets/ticketscount \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>'
```

## Responses

### 200 (`application/json`)

Ok
