> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Unread Count

> Get the total unread message count for the user's PA chat.

Used by the global floating chat icon. Only counts assistant/system
messages. Cached in Redis for ~10s — invalidated on new assistant
message or mark-read.

Query budget: 0 on cache hit; 1 (no PA) or 3 (PA + session + combined
count/latest) on cache miss. Independent of message count.



## OpenAPI

````yaml /openapi.json get /api/v1/chat/unread
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/chat/unread:
    get:
      tags:
        - Chat
      summary: Get Unread Count
      description: |-
        Get the total unread message count for the user's PA chat.

        Used by the global floating chat icon. Only counts assistant/system
        messages. Cached in Redis for ~10s — invalidated on new assistant
        message or mark-read.

        Query budget: 0 on cache hit; 1 (no PA) or 3 (PA + session + combined
        count/latest) on cache miss. Independent of message count.
      operationId: get_unread_count_api_v1_chat_unread_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
        - HTTPBearer: []
components:
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````