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

# Get durable campaign message metrics

> Get durable campaign message metrics

## Overview

Returns the exact cumulative sent-message or connection-note count for an Outbound campaign without loading the full campaign record. Bare LinkedIn invitations without notes are excluded. The campaign must belong to the authenticated account.

## AI agent notes

* Use this lightweight endpoint when polling delivery progress.
* Surface permission and not-found errors instead of retrying unchanged.


## OpenAPI

````yaml get /api/campaigns/{id}/message-metrics
openapi: 3.0.3
info:
  title: Puffle API
  version: 1.0.0
  description: >-
    HTTP API for the Puffle GTM platform - strategy planning, campaign-backed
    Outbound execution, Puffle Agent runs, sender management, and Unibox reply
    workflows. Designed for operation by both humans and autonomous AI agents.
    Agents should start at the [Agent Playbook](/guides/agent-playbook) which
    prescribes a workspace-context check (`GET /api/context`) and core user
    journeys with exact call ordering.
  contact:
    name: Puffle Support
    url: https://puffle.ai
servers:
  - url: https://app.puffle.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Campaigns
    description: >-
      Campaign-backed Outbound execution. These endpoints manage draft,
      launching, active, paused, and completed Outbound runs with sequence
      nodes, contacts, and sender accounts.
  - name: Accounts
    description: Signed-in user account, settings, and workspace context endpoints.
  - name: Senders
    description: >-
      Connected sender accounts, email inboxes, sending domains, DNS
      verification, warmup, and sender capacity.
  - name: Socials
    description: >-
      Social post scheduling and inbox — schedule, publish, archive, and delete
      posts across LinkedIn, Twitter, Threads, Bluesky via the Late (late.ai)
      integration. Connect social accounts via OAuth, pull analytics, monitor
      mentions.
paths:
  /api/campaigns/{id}/message-metrics:
    get:
      tags:
        - Campaigns
      summary: Get durable campaign message metrics
      description: >-
        Return the exact cumulative sent message count for an owned campaign
        without loading full campaign detail.
      operationId: getCampaignMessageMetrics
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: Campaign UUID
      responses:
        '200':
          description: Exact durable campaign sent-message count.
          content:
            application/json:
              schema:
                type: object
                properties:
                  campaign_total_sent:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                    description: >-
                      Cumulative sent message or connection-note outbox rows.
                      Bare LinkedIn invitations without notes are excluded.
                required:
                  - campaign_total_sent
                additionalProperties: false
        '401':
          description: Missing authentication.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Campaign not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Database or server failure.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pk_live_...

````