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

# Daily Campaign Result

> Returns hourly data for credit deductions and campaign results for a given campaign on a specific date.



## OpenAPI

````yaml GET /v2/graph/daily-campaign-results/{campaign_id}/
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/graph/daily-campaign-results/{campaign_id}/:
    get:
      summary: Get daily campaign result data
      description: >-
        Returns hourly data for credit deductions and campaign results for a
        given campaign on a specific date.
      parameters:
        - name: campaign_id
          in: path
          required: true
          description: Unique ID of the campaign (e.g., campc005bf8a)
          schema:
            type: string
        - name: Company-Name
          in: header
          description: The name of the schema to be used for the request
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Hourly analytics data of the campaign for a specific day
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DailyCampaignGraph'
        '400':
          description: Invalid input or unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DailyCampaignGraph:
      type: object
      properties:
        date:
          type: string
          format: date
          description: Date of the campaign analytics
          example: '2025-08-23'
        hours:
          type: array
          items:
            type: integer
          description: Hourly time intervals (0–23)
          example:
            - 0
            - 1
            - 2
            - 3
            - 4
            - 5
            - 6
            - 7
            - 8
            - 9
            - 10
            - 11
            - 12
            - 13
            - 14
            - 15
            - 16
            - 17
            - 18
            - 19
            - 20
            - 21
            - 22
            - 23
        credit_deductions:
          type: array
          items:
            type: integer
          description: Credits used per hour
          example:
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
        credit_deductions_change:
          type: array
          items:
            type: integer
          description: Change in credit usage compared to the previous period
          example:
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
        campaign_results:
          type: array
          items:
            type: integer
          description: Campaign results per hour
          example:
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
        campaign_results_change:
          type: array
          items:
            type: integer
          description: Change in campaign results compared to the previous period
          example:
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
            - 0
    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

````