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

# Campaign statistics

> Detailed campaign performance: invitations/messages sent and accepted/replied, profile visits, and rates.



## OpenAPI

````yaml /openapi.json get /v1/campaigns/{id}/statistics
openapi: 3.0.0
info:
  title: Botdog API
  description: |-
    API documentation for Botdog.

    **Authentication**: Pass your API key as the `x-api-key` header.
    Example: `x-api-key: bd_live_abc123`

    Do NOT use the `Authorization` header.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.botdog.co
    description: Production
security: []
tags:
  - name: campaigns
    description: >-
      Create, read, update, and control campaigns (pause/resume, pause
      activities, archive, delete).
  - name: leads
    description: >-
      List and filter leads, read full detail + event history, update metadata,
      add to a campaign, or stop a sequence.
  - name: lists
    description: Manage lead/audience lists and their members.
  - name: blacklist
    description: Manage suppression lists (excluded profiles).
  - name: snippets
    description: Manage message snippets / templates.
  - name: accounts
    description: >-
      Connected LinkedIn accounts (seats), their connection health, and daily
      sending limits.
  - name: webhooks
    description: Manage webhook subscriptions.
  - name: messaging
    description: >-
      Send messages and replies, schedule a future send, and mark conversations
      read/unread. Rate-limited per sending account.
  - name: analytics
    description: Team-level analytics totals, daily breakdowns, and per-user metrics.
  - name: users
    description: Read the users in your team.
  - name: teams
    description: Current team context.
  - name: health
    description: Service health checks (no authentication).
paths:
  /v1/campaigns/{id}/statistics:
    get:
      tags:
        - campaigns
      summary: Campaign statistics
      description: >-
        Detailed campaign performance: invitations/messages sent and
        accepted/replied, profile visits, and rates.
      operationId: CampaignsController_getStatistics
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Campaign statistics with rates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignStatisticsResponseDto'
        '401':
          description: Unauthorized. API key is missing or invalid.
        '404':
          description: Campaign not found
        '429':
          description: Rate limit exceeded. Retry after cooldown.
      security:
        - api-key: []
components:
  schemas:
    CampaignStatisticsResponseDto:
      type: object
      properties:
        campaignId:
          type: string
          example: cm1abc123def456
        campaignName:
          type: string
          example: Cold Outreach - ML Engineers
        status:
          type: string
          example: ACTIVE
        owner:
          type: string
          example: sid@pavoai.com
        statistics:
          $ref: '#/components/schemas/CampaignStatisticsDto'
        rates:
          $ref: '#/components/schemas/CampaignRatesDto'
      required:
        - campaignId
        - campaignName
        - status
        - owner
        - statistics
        - rates
    CampaignStatisticsDto:
      type: object
      properties:
        progress:
          type: number
          description: Campaign completion percentage
          example: 45.2
          nullable: true
        totalLeadCount:
          type: number
          example: 500
        totalLeadsInProgress:
          type: number
          example: 224
        totalLeadsSkipped:
          type: number
          example: 12
        invitationsSent:
          type: number
          example: 264
        invitationsAccepted:
          type: number
          example: 37
        invitationsSkipped:
          type: number
          example: 5
        messagesSent:
          type: number
          example: 37
        inmailsSent:
          type: number
          example: 0
        messagesReplied:
          type: number
          example: 3
        profileVisits:
          type: number
          example: 264
        companyInvitationsSent:
          type: number
          example: 0
        postsReactions:
          type: number
          example: 0
        aiAccepted:
          type: number
          example: 480
        aiRejected:
          type: number
          example: 8
      required:
        - progress
        - totalLeadCount
        - totalLeadsInProgress
        - totalLeadsSkipped
        - invitationsSent
        - invitationsAccepted
        - invitationsSkipped
        - messagesSent
        - inmailsSent
        - messagesReplied
        - profileVisits
        - companyInvitationsSent
        - postsReactions
        - aiAccepted
        - aiRejected
    CampaignRatesDto:
      type: object
      properties:
        invitationAcceptanceRate:
          type: number
          description: Invitation acceptance rate percentage
          example: 14
        messageReplyRate:
          type: number
          description: Message reply rate percentage
          example: 6
      required:
        - invitationAcceptanceRate
        - messageReplyRate
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key
      x-default: bd_live_your_key_here

````