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

# Get the bell count

> Returns the number shown on the bell: unread notifications plus approvals waiting on you, each approval counted once.




## OpenAPI

````yaml /openapi/notifications.yaml get /workspaces/{workspaceId}/notification-badge
openapi: 3.1.0
info:
  title: Connie Notifications API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for notifications. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Notifications
    description: The notifications behind the bell in the sidebar.
  - name: Preferences
    description: Which events reach you in the app and by email.
paths:
  /workspaces/{workspaceId}/notification-badge:
    get:
      tags:
        - Notifications
      summary: Get the bell count
      description: >
        Returns the number shown on the bell: unread notifications plus
        approvals waiting on you, each approval counted once.
      operationId: getNotificationBadge
      parameters:
        - $ref: '#/components/parameters/workspaceId'
      responses:
        '200':
          description: Bell counts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  total:
                    type: integer
                    description: '`unread` plus `approvals`.'
                  unread:
                    type: integer
                    description: Unread notifications, not counting approval notifications.
                  approvals:
                    type: integer
                    description: Approvals waiting on you.
                  nextExpiresAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: When the soonest waiting approval expires.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    workspaceId:
      name: workspaceId
      in: path
      required: true
      description: The workspace id, as in the app URL `connie.ai/<workspaceId>/...`.
      schema:
        type: string
        format: uuid
  responses:
    Unauthorized:
      description: No valid session, or the session has expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: You are not a member of this workspace, or your role can't do this.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: A readable message.
        code:
          type: string
          description: >-
            A machine-readable code such as `UNAUTHORIZED`, `FORBIDDEN` or
            `NOT_FOUND`, when the route sets one.
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.