curl --request GET \
--url 'https://api.voice.stateset.com/api/v1/call-logs/stats' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY"
{
"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"
}
Get call statistics for the authenticated tenant
Returns aggregate statistics about calls including totals, completion rates, escalation rates, and average duration.
GET
/
api
/
v1
/
call-logs
/
stats
curl --request GET \
--url 'https://api.voice.stateset.com/api/v1/call-logs/stats' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY"
{
"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"
}
Returns aggregate statistics about calls including totals,
completion rates, escalation rates, and average duration.
Response
CallStatsResponse
boolean
required
Whether the request succeeded
CallStats
required
Aggregate call statistics
Show CallStats
Show CallStats
number,null (double)
Human-answer rate among calls with a normalized terminal outcome.
integer (int64)
required
Number of calls answered by a human.
number,null (double)
Average call duration in seconds
integer (int64)
required
Number of calls that reached a busy line.
integer (int64)
required
Number of calls in the last 24 hours
integer (int64)
required
Number of completed calls
integer (int64)
required
Number of escalated calls
integer (int64)
required
Number of failed calls
integer (int64)
required
Number of calls with failed normalized outcome.
integer (int64)
required
Number of calls that rang without answer.
integer (int64)
required
Total number of calls
integer (int64)
required
Number of calls that reached voicemail.
string
required
Authenticated tenant identifier
Status codes
| Code | Meaning |
|---|---|
200 | Call statistics |
401 | Unauthorized |
500 | Internal server error |
503 | Call logging is not configured |
curl --request GET \
--url 'https://api.voice.stateset.com/api/v1/call-logs/stats' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY"
{
"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"
}
Last modified on August 31, 2026