Analytics API
The Analytics API lets you fetch call analytics and task status for an organization.Get Analytics
Get analytics data for an organization.- Automatically filters for contact content type only.
- If
space_tokenis provided: fetches analytics for that specific space. - If
space_tokenis not provided: fetches analytics for all contact spaces in the organization.
/billing/ endpoint.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| space_token | string | No | Space token to filter by specific space. If not provided, fetches all contact spaces. |
Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Org-Handle | string | Yes | Organization domain handle |
| Product-Id | string | No | Product identifier (default: unpod.dev) |
| Authorization | string | Yes | jwt <token> |
Example Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
| message | string | Status message |
| status_code | integer | HTTP-like status code |
| data | object | Analytics payload |
data.call_analytics includes:
| Field | Type | Description |
|---|---|---|
| total_calls | integer | Total calls |
| interested | integer | Interested calls |
| call_back | integer | Callback requests |
| send_details | integer | Send details count |
| not_interested | integer | Not interested count |
| not_connected | integer | Not connected count |
| failed | integer | Failed calls |
| avg_success_score | number | Average success score |
data.call_status includes:
| Field | Type | Description |
|---|---|---|
| total_tasks | integer | Total tasks |
| completed | integer | Completed tasks |
| failed | integer | Failed tasks |
| pending | integer | Pending tasks |
| in_progress | integer | In progress tasks |
| success_rate | number | Success rate percentage |