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

# Get call statistics for the authenticated tenant

> Returns aggregate statistics about calls including totals, completion rates, escalation rates, and average duration.

Returns aggregate statistics about calls including totals,
completion rates, escalation rates, and average duration.

### Response

`CallStatsResponse`

**ok** `boolean` *required*

Whether the request succeeded

**stats** `CallStats` *required*

Aggregate call statistics

**CallStats**

**answer\_rate** `number,null (double)`

Human-answer rate among calls with a normalized terminal outcome.

**answered\_calls** `integer (int64)` *required*

Number of calls answered by a human.

**avg\_duration\_seconds** `number,null (double)`

Average call duration in seconds

**busy\_calls** `integer (int64)` *required*

Number of calls that reached a busy line.

**calls\_last\_24h** `integer (int64)` *required*

Number of calls in the last 24 hours

**completed\_calls** `integer (int64)` *required*

Number of completed calls

**escalated\_calls** `integer (int64)` *required*

Number of escalated calls

**failed\_calls** `integer (int64)` *required*

Number of failed calls

**failed\_outcome\_calls** `integer (int64)` *required*

Number of calls with failed normalized outcome.

**no\_answer\_calls** `integer (int64)` *required*

Number of calls that rang without answer.

**total\_calls** `integer (int64)` *required*

Total number of calls

**voicemail\_calls** `integer (int64)` *required*

Number of calls that reached voicemail.

**tenant** `string` *required*

Authenticated tenant identifier

### Status codes

| Code | Meaning |
| - | - |
| `200` | Call statistics |
| `401` | Unauthorized |
| `500` | Internal server error |
| `503` | Call logging is not configured |

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.voice.stateset.com/api/v1/call-logs/stats' \
  --header "Authorization: Bearer $STATESET_VOICE_API_KEY"
```

```json 200 theme={null}
{
  "ok": true,
  "stats": {
    "answer_rate": 0.762,
    "answered_calls": 820,
    "avg_duration_seconds": 185.5,
    "busy_calls": 18,
    "calls_last_24h": 42,
    "completed_calls": 1100,
    "escalated_calls": 87,
    "failed_calls": 23,
    "failed_outcome_calls": 23,
    "no_answer_calls": 75,
    "total_calls": 1250,
    "voicemail_calls": 140
  },
  "tenant": "tenant_123"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.