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

# Get campaign stats



## OpenAPI

````yaml /openapi.json get /api/v1/campaigns/{id}/stats
openapi: 3.1.0
info:
  title: Nudgen Developer API
  version: 1.0.0
  description: >-
    REST API for managing Nudgen contacts, campaigns, brand settings, and AI
    email drafts with Personal Access Token authentication.
servers:
  - url: https://nudgen.net
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Identity
  - name: Contacts
  - name: Campaigns
  - name: Brand settings
  - name: AI
paths:
  /api/v1/campaigns/{id}/stats:
    get:
      tags:
        - Campaigns
      summary: Get campaign stats
      operationId: getCampaignStats
      parameters:
        - $ref: '#/components/parameters/Id'
        - name: startDate
          in: query
          schema:
            type: string
            format: date-time
        - name: endDate
          in: query
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Campaign stats
          content:
            application/json:
              schema:
                type: object
                properties:
                  stats:
                    $ref: '#/components/schemas/CampaignStats'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    CampaignStats:
      type: object
      properties:
        totalSent:
          type: integer
        totalDelivered:
          type: integer
        totalOpens:
          type: integer
        totalClicks:
          type: integer
        ctr:
          type: number
        totalFailed:
          type: integer
        totalSpamComplaints:
          type: integer
        totalHardBounces:
          type: integer
        totalSoftBounces:
          type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: PAT
      description: Personal Access Token created from Settings -> API Keys.

````