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

# Dashboard KPIs

> Requires `notification:dashboard`. For the period ending now and the
one right before it: volume per bucket and channel (hourly for `24h`,
daily otherwise), the funnel per channel and the top 20 gateways and
API keys. Plus the 20 most recent failures.




## OpenAPI

````yaml api-reference/notification/notification/read-openapi.yaml GET /notification/dashboard
openapi: 3.0.1
info:
  title: Notification Center API (read)
  description: |
    Read side of the notification center (ADR 0106): notifications, their
    events, requests, gateways and templates, the panel KPIs, and the only
    write an operator makes, cancelling a scheduled or queued notification.

    **Lists.** Every list takes `page` (default 1), `page_size` (default 20,
    at most 100), `order_by` (`field:asc|desc`, comma separated) and
    `filters` (`field|operator|value`, comma separated; operators `eq`,
    `neq`, `gt`, `gte`, `lt`, `lte`, `like`, `ilike`, `in`, `is`). Only the
    fields documented on each list can be filtered or sorted; any other
    field answers `400`. Results come in `data`, with `paging`.

    **Content and recipients.** Template data, subjects, bodies, provider
    payloads and attachments are content. They are only returned with the
    `notification:view-content` permission; without it the recipient is
    masked (`d***@gmail.com`, `+569 ****1234`). The caller's `ip` and
    `user_agent` of a request are also only returned with that permission.
  version: '2026-10-21'
servers:
  - description: Production
    url: https://api.bbrands.io/api/v3
  - description: Certification
    url: https://certification.api.bbrands.io/api/v3
  - description: Development
    url: https://development.api.bbrands.io/api/v3
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Notification
    description: Notifications, their content, events and cancellation.
  - name: Notification Event
    description: Provider and Horizon events of every channel.
  - name: Notification Request
    description: Batches of one `POST /notification`.
  - name: Notification Catalog
    description: Gateways and templates.
  - name: Notification Dashboard
    description: KPIs of the Notifications panel.
paths:
  /notification/dashboard:
    get:
      tags:
        - Notification Dashboard
      summary: Get the notification KPIs
      description: |
        Requires `notification:dashboard`. For the period ending now and the
        one right before it: volume per bucket and channel (hourly for `24h`,
        daily otherwise), the funnel per channel and the top 20 gateways and
        API keys. Plus the 20 most recent failures.
      operationId: notificationDashboard
      parameters:
        - name: period
          in: query
          schema:
            type: string
            enum:
              - 24h
              - 7d
              - 30d
            default: 24h
      responses:
        '200':
          description: The KPIs
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/NotificationDashboard'
                  message:
                    type: string
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    NotificationDashboard:
      type: object
      properties:
        period:
          type: string
          enum:
            - 24h
            - 7d
            - 30d
        bucket:
          type: string
          enum:
            - hour
            - day
        current:
          $ref: '#/components/schemas/KpiWindow'
        previous:
          $ref: '#/components/schemas/KpiWindow'
        recent_failures:
          type: array
          items:
            type: object
            properties:
              document_id:
                type: string
                format: uuid
              type:
                type: string
              status:
                type: string
              category:
                type: string
              notification_gateway:
                type: string
                format: uuid
              gateway_name:
                type: string
              external_id:
                type: string
              status_reason:
                type: string
                nullable: true
              error:
                type: string
                nullable: true
              failed_at:
                type: string
                format: date-time
              created_at:
                type: string
                format: date-time
    Meta:
      type: object
      properties:
        correlation:
          type: string
        status:
          type: integer
        timestamp:
          type: string
          format: date-time
        version:
          type: string
          nullable: true
    KpiWindow:
      type: object
      properties:
        from:
          type: string
          format: date-time
        to:
          type: string
          format: date-time
        volume:
          type: array
          items:
            type: object
            properties:
              bucket:
                type: string
                format: date-time
              channel:
                type: string
              total:
                type: integer
              delivered:
                type: integer
              failed:
                type: integer
        funnel:
          type: array
          items:
            type: object
            properties:
              channel:
                type: string
              total:
                type: integer
              pending:
                type: integer
              sent:
                type: integer
              delivered:
                type: integer
              opened:
                type: integer
              clicked:
                type: integer
              bounced:
                type: integer
              complained:
                type: integer
              failed:
                type: integer
              cancelled:
                type: integer
              skipped:
                type: integer
        ranking:
          type: object
          properties:
            gateway:
              type: array
              items:
                $ref: '#/components/schemas/KpiRankingRow'
            api_key:
              type: array
              items:
                $ref: '#/components/schemas/KpiRankingRow'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            errors:
              type: array
              items: {}
            message:
              type: string
        meta:
          $ref: '#/components/schemas/Meta'
    KpiRankingRow:
      type: object
      properties:
        key:
          type: string
          format: uuid
        name:
          type: string
        total:
          type: integer
        delivered:
          type: integer
        failed:
          type: integer
  responses:
    BadRequest:
      description: Invalid query, path or body
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid, revoked or expired credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The caller lacks the required permission
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: A `secret` API key, `hzk_<env>_<prefix>_<secret>`.

````

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