---
title: "Get thread count"
method: POST
path: "/v2/sessions/count"
tags: ["Threads"]
---

# Get thread count

`POST /v2/sessions/count`

Get total count of trace threads.

## Request body

- GetThreadCountRequest
  - `filters` ThreadFilters, required
    - `interval` 'SESSION_INTERVAL_UNSPECIFIED' | 'SESSION_INTERVAL_ALL_TIME' | 'SESSION_INTERVAL_LAST_30_MINUTES' | 'SESSION_INTERVAL_LAST_1_HOUR' | 'SESSION_INTERVAL_LAST_6_HOURS' | 'SESSION_INTERVAL_LAST_24_HOURS' | 'SESSION_INTERVAL_LAST_3_DAYS' | 'SESSION_INTERVAL_LAST_7_DAYS' | 'SESSION_INTERVAL_LAST_14_DAYS' | 'SESSION_INTERVAL_LAST_1_MONTH' | 'SESSION_INTERVAL_LAST_3_MONTHS', required
    - `project_id` string
    - `tags` string[]
    - `start_date` string — Start of a custom activity window in unix milliseconds.
    - `end_date` string — End of a custom activity window in unix milliseconds.
    - `client` string
    - `repo` string
    - `kind` 'THREAD_KIND_UNSPECIFIED' | 'THREAD_KIND_CONVERSATION' | 'THREAD_KIND_CODING_AGENT'
  - `limit` integer
  - `page` integer

## Response `200`

OK

- GetThreadCountResponse
  - `count` integer, required

## Changes

> 350 revisions in range; 136 not diffed.

- **2026-09-07** `bcd6172f8655` — 1 info
  - endpoint added
- **2026-09-07** `dcc0afb98a48` — 1 breaking
  - api path removed without deprecation
- **2026-09-06** `e1a2869bc12f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/orq-ai/apis/orq-ai-api/changes/v2/sessions/count/post.md)

---

[API](https://skmtc.dev/orq-ai/apis/orq-ai-api.md) · [All operations](https://skmtc.dev/orq-ai/apis/orq-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/orq-ai/apis/orq-ai-api/revisions/3c7d859558ee?raw)
