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

# Get Unread Count

> Lightweight badge source for the Topbar Bell and BottomNav alertDot.

Returns the count of unread notifications, optionally filtered by type prefix.
Cheap enough to poll every 30 s; primary delivery is WS-driven recompute.



## OpenAPI

````yaml /openapi.json get /v1/me/notifications/unread-count
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/me/notifications/unread-count:
    get:
      tags:
        - notifications
      summary: Get Unread Count
      description: >-
        Lightweight badge source for the Topbar Bell and BottomNav alertDot.


        Returns the count of unread notifications, optionally filtered by type
        prefix.

        Cheap enough to poll every 30 s; primary delivery is WS-driven
        recompute.
      operationId: get_unread_count_v1_me_notifications_unread_count_get
      parameters:
        - description: Prefix filter e.g. 'prediction.alert.fired'
          in: query
          name: type
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Prefix filter e.g. 'prediction.alert.fired'
            title: Type
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnreadCountResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    UnreadCountResponse:
      properties:
        by_type:
          additionalProperties:
            type: integer
          default: {}
          title: By Type
          type: object
        unread_count:
          title: Unread Count
          type: integer
      required:
        - unread_count
      title: UnreadCountResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````