Retrieve call analytics and task status for your organization
space_token query parameter.
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | API Key format: Token <token> |
| Org-Handle | string | Yes | Organization domain handle |
Org-Handle by hitting the Get All Organizations API. The domain_handle field in the response is your Org-Handle.| Name | Type | Required | Description |
|---|---|---|---|
| space_token | string | No | Filter analytics for a specific space. If omitted, returns org-wide analytics |
space_token is provided, analytics are scoped to that space only. If not provided, analytics aggregate across all contact spaces in the organization.| Field | Type | Description |
|---|---|---|
| status_code | integer | HTTP status code |
| message | string | Response message |
| data | object | Analytics data |
| Field | Type | Description |
|---|---|---|
| total_calls | integer | Total number of calls made |
| completed_calls | integer | Number of successfully completed calls |
| failed_calls | integer | Number of failed calls |
| avg_duration_seconds | number | Average call duration in seconds |
| total_tasks | integer | Total number of tasks across all runs |
| task_status_breakdown | object | Breakdown of tasks by status |
| Field | Type | Description |
|---|---|---|
| pending | integer | Number of tasks awaiting execution |
| running | integer | Number of tasks currently executing |
| completed | integer | Number of successfully completed tasks |
| failed | integer | Number of failed tasks |
| Status Code | Description |
|---|---|
| 200 | Success - Analytics fetched successfully |
| 400 | Bad Request - Missing required headers |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Invalid organization handle |
| 404 | Not Found - Organization not found |
| 500 | Internal Server Error - Server-side error |
space_token filter to get analytics for individual campaigns or spacescompleted_calls / total_calls * 100 for performance trackingtask_status_breakdown to detect stuck or failed tasks requiring attention