Skip to main content
GET
Campaign audience stats
Use this endpoint to get aggregated call statistics for a campaign’s audience.

Endpoint

GET /campaign-audience-stats Authentication: Required (workspace auth)

Query Parameters

Response

Notes

  • coverage = (successful_calls / total_attempt) * 100, rounded to 2 decimal places.
  • Returns 0 for all fields if no matching records are found.
  • Same filters as the Audience List endpoint can be applied to narrow stats.

Example cURL

Headers

token
string
required

API token for authentication

Query Parameters

campaign_id
integer
required

Campaign identifier

mobile_no
string

Filter by mobile number (partial match)

status
integer

Audience status filter

call_status
string

Call status filter

attempt
integer

Attempt count filter

Response

Audience stats retrieved successfully

total_audience
integer

Total audience records matching filters

coverage
number

Percentage of successful calls out of total attempts (2 decimal places)

total_attempt
integer

Sum of all call attempts

total_duration
integer

Total call duration in seconds

successful_calls
integer

Calls with terminal success statuses