> ## 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.

# KPI Families

> Requires `notification:dashboard`. Returns the family requested in
`family` for `period`, filtered by `filters`. Catalog coverage and
audience snapshots are cached 10 minutes. Decisions (skipped,
suppressed, fallbacks) and the gateway and API key rankings read the
raw rows for every period.




## OpenAPI

````yaml api-reference/notification/platform/metric-openapi.yaml GET /notification/metric
openapi: 3.0.1
info:
  title: Notification Platform KPIs
  description: |
    KPI families of the notification dashboard
    (notification/notification-platform REQ-27, REQ-28): volume and funnel,
    quality and health, catalog coverage, audience and cost. Every headline
    figure is `{ current, previous }`: the value of the requested window and
    of the previous window of the same length.

    `24h` is live: volume, funnel, rankings and latency read the raw
    notifications. `7d`, `30d`, `90d` and custom ranges read the hourly
    (spans up to two days) or daily rollups, recomputed every 10 minutes and
    every night. Day buckets are returned as UTC midnight of their
    America/Santiago date. Customer KPIs leave out template test sends and
    the system events that target devices (`account.device.*`).
  version: '2026-11-03'
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: []
tags:
  - name: Notification Dashboard
    description: KPI families of the notification platform.
paths:
  /notification/metric:
    get:
      tags:
        - Notification Dashboard
      summary: Get a KPI family
      description: |
        Requires `notification:dashboard`. Returns the family requested in
        `family` for `period`, filtered by `filters`. Catalog coverage and
        audience snapshots are cached 10 minutes. Decisions (skipped,
        suppressed, fallbacks) and the gateway and API key rankings read the
        raw rows for every period.
      operationId: notificationMetric
      parameters:
        - name: family
          in: query
          schema:
            type: string
            enum:
              - volume
              - quality
              - coverage
              - audience
            default: volume
        - name: period
          in: query
          schema:
            type: string
            enum:
              - 24h
              - 7d
              - 30d
              - 90d
              - custom
            default: 24h
        - name: from
          in: query
          description: |
            `custom` only: start, an ISO instant or a date (00:00
            America/Santiago).
          schema:
            type: string
            example: '2026-11-01'
        - name: to
          in: query
          description: |
            `custom` only: end, an ISO instant (exclusive) or a date (that
            whole America/Santiago day included). At most 400 days.
          schema:
            type: string
            example: '2026-11-06'
        - name: filters
          in: query
          description: |
            Comma-separated `field|eq|value` over `event` (key or id),
            `domain`, `app` (`default`, `lunch`), `category`, `gateway`
            (internal name or id) and `channel`. An unknown event or gateway
            matches nothing.
          schema:
            type: string
            example: channel|eq|email,event|eq|club.coupon.redeemed
      responses:
        '200':
          description: The family
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    oneOf:
                      - $ref: '#/components/schemas/VolumeMetric'
                      - $ref: '#/components/schemas/QualityMetric'
                      - $ref: '#/components/schemas/CoverageMetric'
                      - $ref: '#/components/schemas/AudienceMetric'
                  message:
                    type: string
                  meta:
                    type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    VolumeMetric:
      type: object
      properties:
        family:
          type: string
          enum:
            - volume
        window:
          $ref: '#/components/schemas/Window'
        headline:
          type: object
          properties:
            occurrences:
              $ref: '#/components/schemas/Value'
            queued:
              $ref: '#/components/schemas/Value'
            sent:
              $ref: '#/components/schemas/Value'
            delivered:
              $ref: '#/components/schemas/Value'
            delivery_rate:
              $ref: '#/components/schemas/Value'
            open_rate:
              $ref: '#/components/schemas/Value'
            click_rate:
              $ref: '#/components/schemas/Value'
            click_to_open:
              $ref: '#/components/schemas/Value'
        funnel:
          type: array
          items:
            $ref: '#/components/schemas/FunnelRow'
        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
        ranking:
          type: object
          properties:
            gateway:
              type: array
              items:
                $ref: '#/components/schemas/RankingRow'
            api_key:
              type: array
              items:
                $ref: '#/components/schemas/RankingRow'
        top_events:
          type: array
          items:
            type: object
            properties:
              event:
                type: string
                format: uuid
              event_key:
                type: string
              total:
                type: integer
              click_rate:
                type: number
    QualityMetric:
      type: object
      properties:
        family:
          type: string
          enum:
            - quality
        window:
          $ref: '#/components/schemas/Window'
        headline:
          type: object
          properties:
            failure_rate:
              $ref: '#/components/schemas/Value'
            bounce_rate:
              $ref: '#/components/schemas/Value'
            complaint_rate:
              $ref: '#/components/schemas/Value'
            skipped:
              $ref: '#/components/schemas/Value'
            suppressed:
              $ref: '#/components/schemas/Value'
            fallbacks:
              $ref: '#/components/schemas/Value'
            latency_p95_seconds:
              $ref: '#/components/schemas/Value'
        rates:
          type: array
          items:
            type: object
            properties:
              bucket:
                type: string
                format: date-time
              failed:
                type: number
              bounced:
                type: number
              complained:
                type: number
        latency:
          type: array
          items:
            type: object
            properties:
              channel:
                type: string
              sent_p50:
                type: number
                nullable: true
              sent_p95:
                type: number
                nullable: true
              delivered_p50:
                type: number
                nullable: true
              delivered_p95:
                type: number
                nullable: true
        skipped_by_reason:
          type: array
          items:
            type: object
            properties:
              reason:
                type: string
              total:
                type: integer
        dead_letters:
          type: object
          properties:
            open:
              type: integer
            resolved:
              type: integer
        recent_failures:
          type: array
          items:
            type: object
    CoverageMetric:
      type: object
      properties:
        family:
          type: string
          enum:
            - coverage
        window:
          $ref: '#/components/schemas/Window'
        headline:
          type: object
          properties:
            events_active:
              $ref: '#/components/schemas/Value'
            events_inactive:
              $ref: '#/components/schemas/Value'
            events_deprecated:
              $ref: '#/components/schemas/Value'
            silent_events:
              $ref: '#/components/schemas/Value'
            missing_translations:
              $ref: '#/components/schemas/Value'
            locale_fallback_rate:
              $ref: '#/components/schemas/Value'
        matrix:
          type: array
          items:
            type: object
            properties:
              event:
                type: string
                format: uuid
              event_key:
                type: string
              channels:
                type: object
                additionalProperties:
                  type: boolean
        silent_events:
          type: array
          items:
            type: object
            properties:
              event:
                type: string
                format: uuid
              event_key:
                type: string
              last_triggered_at:
                type: string
                format: date-time
                nullable: true
              threshold_days:
                type: integer
        missing_translations:
          type: array
          items:
            type: object
            properties:
              template:
                type: string
                format: uuid
              channel:
                type: string
              event_key:
                type: string
              missing:
                type: array
                items:
                  type: string
        drafts:
          type: array
          items:
            type: object
            properties:
              template:
                type: string
                format: uuid
              channel:
                type: string
              event_key:
                type: string
              age_days:
                type: integer
    AudienceMetric:
      type: object
      properties:
        family:
          type: string
          enum:
            - audience
        window:
          $ref: '#/components/schemas/Window'
        currency:
          type: string
          description: >-
            Reporting currency (ISO 4217) of the cost headlines, the one most
            sends of the window were priced in (USD without priced sends). Costs
            are never added up across currencies; `cost` and
            `cost_per_delivered` list each currency apart, the reporting
            currency first in `cost`.
        headline:
          type: object
          properties:
            reachability:
              $ref: '#/components/schemas/Value'
            opt_out_rate:
              $ref: '#/components/schemas/Value'
            unique_recipients:
              $ref: '#/components/schemas/Value'
            cost:
              $ref: '#/components/schemas/Value'
            cost_per_delivered:
              $ref: '#/components/schemas/Value'
            cost_per_click:
              $ref: '#/components/schemas/Value'
        reachability:
          type: array
          items:
            type: object
            properties:
              channel:
                type: string
              rate:
                type: number
        opt_out:
          type: array
          items:
            type: object
            properties:
              category:
                type: string
              channel:
                type: string
              rate:
                type: number
        cost:
          type: array
          items:
            type: object
            properties:
              channel:
                type: string
              domain:
                type: string
              amount:
                type: number
              currency:
                type: string
        cost_per_delivered:
          type: array
          items:
            type: object
            properties:
              channel:
                type: string
              amount:
                type: number
              currency:
                type: string
    Window:
      type: object
      properties:
        bucket:
          type: string
          enum:
            - hour
            - day
        from:
          type: string
          format: date-time
        to:
          type: string
          format: date-time
        previous_from:
          type: string
          format: date-time
        previous_to:
          type: string
          format: date-time
    Value:
      type: object
      properties:
        current:
          type: number
        previous:
          type: number
    FunnelRow:
      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
    RankingRow:
      type: object
      properties:
        key:
          type: string
          format: uuid
        name:
          type: string
        total:
          type: integer
        delivered:
          type: integer
        failed:
          type: integer
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            errors:
              type: array
              items: {}
  responses:
    BadRequest:
      description: Unknown family or period, invalid filters or custom range
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, invalid or expired credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: The caller lacks `notification:dashboard`
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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