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

# Final Analysis

> Returns the final analysis data for a specific campaign by its campaign ID.



## OpenAPI

````yaml GET /v2/campaign-final-analysis/{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/campaign-final-analysis/{campaign_id}/:
    get:
      summary: Get final campaign analysis by campaign ID
      description: >-
        Returns the final analysis data for a specific campaign by its campaign
        ID.
      parameters:
        - name: campaign_id
          in: path
          required: true
          description: Unique campaign ID (e.g., quickcamp6cd8c4ce)
          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: Final campaign analysis data response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignFinalAnalysis'
        '400':
          description: Invalid request or input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CampaignFinalAnalysis:
      type: object
      properties:
        status_counts:
          type: object
          description: >-
            Counts of each call status in the campaign (e.g., AGENT_HANGUP,
            DIAL_NO_ANSWER)
          additionalProperties:
            type: integer
          example:
            AGENT_HANGUP: 1
            DIAL_NO_ANSWER: 1
        outcome_counts:
          type: object
          description: >-
            Counts of each outcome classification (e.g., POSITIVE, NEGATIVE,
            UNKNOWN)
          additionalProperties:
            type: integer
          example:
            NEGATIVE: 1
            UNKNOWN: 1
        number_of_callbacks:
          type: object
          description: Details or count of scheduled callbacks if any (can be empty)
          example: {}
        cumulative_user_hangups:
          type: array
          description: List of user IDs or identifiers who hung up the call (can be empty)
          items:
            type: string
          example: []
        response_sentiment_counts:
          type: object
          description: Count of response sentiments detected during the campaign
          additionalProperties:
            type: integer
          example:
            NOT_DETECTED: 2
        improvement_tag_counts:
          type: object
          description: Counts of improvement tags used in the campaign
          additionalProperties:
            type: integer
          example:
            'NULL': 2
        analysis_dict:
          type: object
          description: Final summary and aggregated metrics of the campaign
          properties:
            total_appointment_booked:
              type: integer
              description: Total number of appointments booked in the campaign
              example: 0
            total_calls:
              type: integer
              description: Total number of calls made
              example: 2
            total_connected_calls:
              type: integer
              description: Total number of connected calls
              example: 1
            booking_rate:
              type: number
              format: float
              description: Percentage of booked appointments from connected calls
              example: 0
          required:
            - total_appointment_booked
            - total_calls
            - total_connected_calls
            - booking_rate
      required:
        - status_counts
        - outcome_counts
        - number_of_callbacks
        - cumulative_user_hangups
        - response_sentiment_counts
        - improvement_tag_counts
        - analysis_dict
    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

````