curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/campaign-audience-stats \
--header 'token: <token>'{
"total_audience": 123,
"coverage": 123,
"total_attempt": 123,
"total_duration": 123,
"successful_calls": 123
}Get aggregated call statistics for a campaign’s audience.
curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/campaign-audience-stats \
--header 'token: <token>'{
"total_audience": 123,
"coverage": 123,
"total_attempt": 123,
"total_duration": 123,
"successful_calls": 123
}/campaign-audience-stats
Authentication: Required (workspace auth)
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | number | Yes | Campaign identifier |
mobile_no | string | No | Filter by mobile number (partial match) |
status | number | array | No | Audience status filter |
call_status | string | array | No | Call status filter |
first_status | string | array | No | First call status filter |
last_status | string | array | No | Last call status filter |
attempt | number | array | No | Attempt count filter |
{
"total_audience": 500,
"coverage": 84.50,
"total_attempt": 720,
"total_duration": 18540,
"successful_calls": 423
}
| Field | Type | Description |
|---|---|---|
total_audience | number | Total number of audience records matching filters |
coverage | number | Percentage of successful calls out of total attempts (2 decimal places) |
total_attempt | number | Sum of all call attempts made |
total_duration | number | Total call duration in seconds |
successful_calls | number | Calls with status: AGENT_ENDED, USER_ENDED, COMPLETED, or ANSWER |
coverage = (successful_calls / total_attempt) * 100, rounded to 2 decimal places.0 for all fields if no matching records are found.curl -X GET "https://www.tryunleashx.com/api/v1/global/campaign-audience-stats?campaign_id=42" \
-H "Authorization: <api_key>"
API token for authentication
Campaign identifier
Filter by mobile number (partial match)
Audience status filter
Call status filter
Attempt count filter
Audience stats retrieved successfully
Total audience records matching filters
Percentage of successful calls out of total attempts (2 decimal places)
Sum of all call attempts
Total call duration in seconds
Calls with terminal success statuses
Was this page helpful?