---
title: "Get Unread Total"
method: GET
path: "/api/chats/unread-total"
tags: ["chats"]
---

# Get Unread Total

`GET /api/chats/unread-total`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/chats/unread-total`
- Auth: none declared

Aggregate unread-message counts for the nav and Dock badges (TOS-2508).

Replaces the app shell's full ``GET /api/chats`` fetch-and-sum: the badge
needs one integer, and computing it here rides the derived
``chat_has_unread_expr()`` comparison (TOS-3616), ``chats.last_message_at``
against ``chat_participants.read_watermark_at``, so only currently-unread
chats are aggregated. Mute resolution matches the list endpoint (muted
chats do not count toward the badge).

``self_unread`` (TOS-3144) is the self chat's share of ``total_unread``, not
a separate population - the Dock's Subconscious tab is the only surface that
can show it, since the self chat is excluded from the chat-list rows.

## Headers

- `x-impersonate-identity-id` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5fdd1072e877?raw)
