---
title: "Get Project Inbox Counts"
method: GET
path: "/api/app-auto-gtm/projects/{project_id}/inbox/counts"
tags: ["AppAutoGtm"]
---

# Get Project Inbox Counts

`GET /api/app-auto-gtm/projects/{project_id}/inbox/counts`

Tab + chip counters for the Project Inbox header.

Returns the three tab counters (``need_reply`` / ``replied`` / ``sent``)
plus ``available_filters`` — the dynamic chip list for All replies,
where each entry has ``{key, label, icon, count}``. All numbers come
from a single SQL helper (:func:`api.outreach.db.get_inbox_bucket_counts`)
so the tab and chip displays never disagree.

Project-wide when ``campaign=all``; scoped to one segment when
``campaign={segmentId}``. Filters with zero leads under the current
campaign scope are omitted from ``available_filters`` so the chip
row stays clean.

## Path parameters

- `project_id` integer, required

## Query parameters

- `campaign` string

## Cookies

- `ex_access` string, nullable
- `ex_org` string, nullable

## Response `200`

Successful Response

- InboxCountsResponse
  - `project_id` integer, required
  - `campaign_filter` string, required
  - `need_reply` integer, required
  - `replied` integer, required
  - `sent` integer, required
  - `available_filters` AvailableFilter[], required
    - `key` string, required
    - `label` string, required
    - `icon` string, nullable
    - `description` string, nullable
    - `count` integer, required
  - `ooo_season` OooSeasonInfo — OOO vacation-season reassurance strip (T-1124). Present only when the strip should show: the project got more than ``OOO_THRESHOLD`` out-of-office replies in the last ``OOO_WINDOW_DAYS`` days AND it's vacation season in (the majority of) its target countries. ``country`` names the single in-season target country for the copy; ``None`` when several are in season at once.
    - `country` string, nullable

## Other responses

- `422` — Validation Error

---

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