---
title: "Calls taken by each voice agent in the workspace"
description: "Counts come from the canonical call records our ingest keeps; an agent with no calls is absent from the list. Any member of the workspace may read it — the figures contain no contact data."
---

> 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 › Voice AI

`GET /api/voice-agent-studio/agent-call-counts`

Counts come from the canonical call records our ingest keeps; an agent with no calls is absent from the list. Any member of the workspace may read it — the figures contain no contact data.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Header parameters

- `x-workspace-id` (`get/api/voice-agent-studio/agent-call-counts.header.x-workspace-id`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.channelautomation.com/api/voice-agent-studio/agent-call-counts \
  --header 'Authorization: Bearer <token>' \
  --header 'x-workspace-id: string'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/voice-agent-studio/agent-call-counts';
const options = {
  method: 'GET',
  headers: {'x-workspace-id': 'string', 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/voice-agent-studio/agent-call-counts"

headers = {
    "x-workspace-id": "string",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

One row per agent that has taken at least one call

#### Example

```json
{
  "success": true,
  "counts": [
    {
      "assistant_id": "string",
      "calls_30d": 0,
      "calls_total": 0,
      "last_call_at": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `success` (`get/api/voice-agent-studio/agent-call-counts.response.200.success`; boolean, optional)
- `counts` (`get/api/voice-agent-studio/agent-call-counts.response.200.counts`; array<object>, optional)
  - `assistant_id` (`get/api/voice-agent-studio/agent-call-counts.response.200.counts.assistant_id`; string, optional)
  - `calls_30d` (`get/api/voice-agent-studio/agent-call-counts.response.200.counts.calls_30d`; integer, optional)
  - `calls_total` (`get/api/voice-agent-studio/agent-call-counts.response.200.counts.calls_total`; integer, optional)
  - `last_call_at` (`get/api/voice-agent-studio/agent-call-counts.response.200.counts.last_call_at`; string, optional, nullable)
    - format `date-time`

### 401

Sign in required

### 502

Counts could not be read


Source: https://developer.channelautomations.com/api/get-api-voice-agent-studio-agent-call-counts/index.md
