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

# Campaign Stats

> Retrieves statistics related to active campaigns, quick campaigns, total credits used, and call durations.



## OpenAPI

````yaml GET /v2/campaign-stats/
openapi: 3.1.0
info:
  title: CloserX.ai API
  description: >-
    The CloserX.ai API provides programmatic access to manage AI-powered calling
    operations, including agent creation, campaign management, contact handling,
    telephony integration, and more. This API enables seamless automation and
    integration with CRM systems, telephony providers, and other third-party
    services for enhanced client communication and business operations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.closerx.ai/api
security:
  - api_key: []
paths:
  /v2/campaign-stats/:
    get:
      summary: Campaign Stats
      description: >-
        Retrieves statistics related to active campaigns, quick campaigns, total
        credits used, and call durations.
      responses:
        '200':
          description: Successfully retrieved campaign statistics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignStatsResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CampaignStatsResponse:
      type: object
      properties:
        active_campaign_count:
          type: integer
          description: Number of currently active campaigns
          example: 1
        active_quick_campaign_count:
          type: integer
          description: Number of currently active quick campaigns
          example: 7
        total_credit_deducted:
          type: number
          format: float
          description: Total number of credits deducted across campaigns
          example: 285
        total_call_duration:
          type: integer
          description: Total call duration in seconds
          example: 72
        credit:
          type: number
          format: float
          description: Total available credit
          example: 67.5813
    Error:
      required:
        - success
        - message
        - data
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: api_key

````