---
title: "Debug Unread Count"
method: GET
path: "/chat/debug-unread/{username}"
tags: ["chat", "chat"]
---

# Debug Unread Count

`GET /chat/debug-unread/{username}`

Debug endpoint to check unread message count (admin-only).

Previously unauthenticated — leaked any user's unread count by username.
Now gated to admins only.

## Path parameters

- `username` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluentea/aurqa-language-learning-platform-refactored/revisions/78f314acd8bf/schema)
