---
title: "Voice AI raw analytics dashboard data"
description: "Returns Voice AI dashboard widget data aggregated from the isolated analytics-layer Supabase replica tables."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Analytics

`GET /api/analytics/voice-ai-raw-dashboard`

Returns Voice AI dashboard widget data aggregated from the isolated analytics-layer Supabase replica tables.

## Authentication

Requires one of the following:

- `BearerAuth`, http, header `Authorization`, format `JWT`
- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Query parameters

- `workspace_id` (`get/api/analytics/voice-ai-raw-dashboard.query.workspace_id`; string, required) — Workspace ID to read from the analytics replica.
- `fromDate` (`get/api/analytics/voice-ai-raw-dashboard.query.fromDate`; string, optional) — Inclusive UTC start date for call and appointment activity.
  - format `date`
- `toDate` (`get/api/analytics/voice-ai-raw-dashboard.query.toDate`; string, optional) — Inclusive UTC end date for call and appointment activity.
  - format `date`
- `callScope` (`get/api/analytics/voice-ai-raw-dashboard.query.callScope`; string, optional) — Optional dashboard-wide call source scope. Use `ai` for Vapi/Voice AI calls and `human` for app-to-phone human-agent calls.
  - one of `"all"`, `"ai"`, `"human"`
- `callersDirection` (`get/api/analytics/voice-ai-raw-dashboard.query.callersDirection`; string, optional) — Optional callers-table direction filter.
  - one of `"inbound"`, `"outbound"`
- `callersDispositions` (`get/api/analytics/voice-ai-raw-dashboard.query.callersDispositions`; string, optional) — Comma-separated callers-table disposition filter values.

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/analytics/voice-ai-raw-dashboard?workspace_id=string' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/analytics/voice-ai-raw-dashboard?workspace_id=string';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/analytics/voice-ai-raw-dashboard?workspace_id=string"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Aggregated voice analytics from the analytics replica or its rollups. Assistant keys use the built-in voice agent id when present, otherwise the existing provider assistant id. Labels use call-time agent name snapshots when available.

### 400

Missing workspace ID or invalid request.

### 401

Authentication required

#### Example

```json
{
  "error": "Authentication required",
  "success": false
}
```

- `error` (`get/api/analytics/voice-ai-raw-dashboard.response.401.error`; string, optional)
  - example `"Authentication required"`
- `success` (`get/api/analytics/voice-ai-raw-dashboard.response.401.success`; boolean, optional)
  - example `false`

### 403

Authenticated user cannot access the requested workspace.

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`get/api/analytics/voice-ai-raw-dashboard.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`get/api/analytics/voice-ai-raw-dashboard.response.500.details`; string, optional)
- `success` (`get/api/analytics/voice-ai-raw-dashboard.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/get-api-analytics-voice-ai-raw-dashboard/index.md
