For live updates without polling, use the Campaign Progress WebSocket instead.
Path Parameters
campaign_id(integer, required): The unique identifier of the campaign
Response
Response
Response Fields
Progress Object
| Field | Description |
|---|---|
total_contacts | Total contacts to process |
completed | Successfully contacted |
failed | Failed contact attempts |
processing | Currently being contacted |
pending | Waiting to be contacted |
progress_percentage | Completion percentage |
success_rate | Success rate (completed / (completed + failed)) |
Metrics Object
| Field | Description |
|---|---|
total_duration_seconds | Total call time |
average_duration_seconds | Average call duration |
success_rate | Success percentage |
answer_rate | Calls answered percentage |
completion_rate | Progress percentage |
cost_estimate | Estimated total cost |
actual_cost | Actual cost so far |
last_updated | Last metrics update |
Recent Activity
Array of recent execution events (most recent first):| Field | Description |
|---|---|
execution_id | Execution record ID |
contact_phone | Contact’s phone number |
status | Execution status |
executed_at | Execution timestamp |
call_id | Call SID (for calls) |
Example Code
cURL
Python
JavaScript
Error Responses
| Status Code | Description |
|---|---|
| 404 | Campaign not found |
| 401 | Unauthorized |
Polling Recommendations
| Scenario | Recommended Interval |
|---|---|
| Active dashboard | 5-10 seconds |
| Background monitoring | 30-60 seconds |
| Batch processing | On-demand |