Skip to main content
GET
/
v2
/
campaign-final-analysis
/
{campaign_id}
Get final campaign analysis by campaign ID
curl --request GET \
  --url https://app.closerx.ai/api/v2/campaign-final-analysis/{campaign_id}/ \
  --header 'Company-Name: <company-name>' \
  --header 'api_key: <api-key>'
{
  "status_counts": {
    "AGENT_HANGUP": 1,
    "DIAL_NO_ANSWER": 1
  },
  "outcome_counts": {
    "NEGATIVE": 1,
    "UNKNOWN": 1
  },
  "number_of_callbacks": {},
  "cumulative_user_hangups": [],
  "response_sentiment_counts": {
    "NOT_DETECTED": 2
  },
  "improvement_tag_counts": {
    "NULL": 2
  },
  "analysis_dict": {
    "total_appointment_booked": 0,
    "total_calls": 2,
    "total_connected_calls": 1,
    "booking_rate": 0
  }
}

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

The name of the schema to be used for the request

Path Parameters

campaign_id
string
required

Unique campaign ID (e.g., quickcamp6cd8c4ce)

Response

Final campaign analysis data response

status_counts
object
required

Counts of each call status in the campaign (e.g., AGENT_HANGUP, DIAL_NO_ANSWER)

Example:
{ "AGENT_HANGUP": 1, "DIAL_NO_ANSWER": 1 }
outcome_counts
object
required

Counts of each outcome classification (e.g., POSITIVE, NEGATIVE, UNKNOWN)

Example:
{ "NEGATIVE": 1, "UNKNOWN": 1 }
number_of_callbacks
object
required

Details or count of scheduled callbacks if any (can be empty)

Example:
{}
cumulative_user_hangups
string[]
required

List of user IDs or identifiers who hung up the call (can be empty)

Example:
[]
response_sentiment_counts
object
required

Count of response sentiments detected during the campaign

Example:
{ "NOT_DETECTED": 2 }
improvement_tag_counts
object
required

Counts of improvement tags used in the campaign

Example:
{ "NULL": 2 }
analysis_dict
object
required

Final summary and aggregated metrics of the campaign