Retrieve call volume and performance metrics
curl -X GET "https://api.avoca.ai/v1/analytics/calls?start_date=2024-01-01&end_date=2024-01-31&group_by=day" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID"
{
"data": {
"period": {
"start": "2024-01-01",
"end": "2024-01-31",
"timezone": "America/Los_Angeles"
},
"summary": {
"total_calls": 1543,
"answered_calls": 1498,
"missed_calls": 45,
"average_duration": 186,
"booking_rate": 0.42,
"transfer_rate": 0.08,
"containment_rate": 0.92
},
"call_reasons": [
{
"reason": "New service request",
"count": 645,
"percentage": 0.42
},
{
"reason": "Reschedule appointment",
"count": 231,
"percentage": 0.15
},
{
"reason": "Service inquiry",
"count": 201,
"percentage": 0.13
},
{
"reason": "Emergency service",
"count": 154,
"percentage": 0.10
},
{
"reason": "Billing question",
"count": 123,
"percentage": 0.08
}
],
"outcomes": {
"appointment_scheduled": 648,
"transferred_to_human": 123,
"information_provided": 412,
"voicemail": 45,
"wrong_number": 23
},
"time_series": [
{
"timestamp": "2024-01-01T00:00:00Z",
"calls": 42,
"bookings": 18,
"average_duration": 172
},
{
"timestamp": "2024-01-02T00:00:00Z",
"calls": 58,
"bookings": 26,
"average_duration": 195
}
],
"peak_hours": [
{
"hour": 9,
"call_volume": 12.3,
"answer_rate": 0.98
},
{
"hour": 10,
"call_volume": 15.7,
"answer_rate": 0.97
},
{
"hour": 14,
"call_volume": 14.2,
"answer_rate": 0.96
}
],
"customer_sentiment": {
"positive": 0.68,
"neutral": 0.28,
"negative": 0.04
}
},
"meta": {
"request_id": "req_pqr678",
"timestamp": "2024-02-01T10:00:00Z"
}
}
hour - Hourly breakdownday - Daily breakdownweek - Weekly breakdownmonth - Monthly breakdowninbound - Incoming calls onlyoutbound - Outgoing calls onlyall - Both types (default)Show properties
curl -X GET "https://api.avoca.ai/v1/analytics/calls?start_date=2024-01-01&end_date=2024-01-31&group_by=day" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID"
{
"data": {
"period": {
"start": "2024-01-01",
"end": "2024-01-31",
"timezone": "America/Los_Angeles"
},
"summary": {
"total_calls": 1543,
"answered_calls": 1498,
"missed_calls": 45,
"average_duration": 186,
"booking_rate": 0.42,
"transfer_rate": 0.08,
"containment_rate": 0.92
},
"call_reasons": [
{
"reason": "New service request",
"count": 645,
"percentage": 0.42
},
{
"reason": "Reschedule appointment",
"count": 231,
"percentage": 0.15
},
{
"reason": "Service inquiry",
"count": 201,
"percentage": 0.13
},
{
"reason": "Emergency service",
"count": 154,
"percentage": 0.10
},
{
"reason": "Billing question",
"count": 123,
"percentage": 0.08
}
],
"outcomes": {
"appointment_scheduled": 648,
"transferred_to_human": 123,
"information_provided": 412,
"voicemail": 45,
"wrong_number": 23
},
"time_series": [
{
"timestamp": "2024-01-01T00:00:00Z",
"calls": 42,
"bookings": 18,
"average_duration": 172
},
{
"timestamp": "2024-01-02T00:00:00Z",
"calls": 58,
"bookings": 26,
"average_duration": 195
}
],
"peak_hours": [
{
"hour": 9,
"call_volume": 12.3,
"answer_rate": 0.98
},
{
"hour": 10,
"call_volume": 15.7,
"answer_rate": 0.97
},
{
"hour": 14,
"call_volume": 14.2,
"answer_rate": 0.96
}
],
"customer_sentiment": {
"positive": 0.68,
"neutral": 0.28,
"negative": 0.04
}
},
"meta": {
"request_id": "req_pqr678",
"timestamp": "2024-02-01T10:00:00Z"
}
}
curl -X GET "https://api.avoca.ai/v1/analytics/calls?start_date=2024-01-01&end_date=2024-01-31&group_by=day" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID"
{
"data": {
"period": {
"start": "2024-01-01",
"end": "2024-01-31",
"timezone": "America/Los_Angeles"
},
"summary": {
"total_calls": 1543,
"answered_calls": 1498,
"missed_calls": 45,
"average_duration": 186,
"booking_rate": 0.42,
"transfer_rate": 0.08,
"containment_rate": 0.92
},
"call_reasons": [
{
"reason": "New service request",
"count": 645,
"percentage": 0.42
},
{
"reason": "Reschedule appointment",
"count": 231,
"percentage": 0.15
},
{
"reason": "Service inquiry",
"count": 201,
"percentage": 0.13
},
{
"reason": "Emergency service",
"count": 154,
"percentage": 0.10
},
{
"reason": "Billing question",
"count": 123,
"percentage": 0.08
}
],
"outcomes": {
"appointment_scheduled": 648,
"transferred_to_human": 123,
"information_provided": 412,
"voicemail": 45,
"wrong_number": 23
},
"time_series": [
{
"timestamp": "2024-01-01T00:00:00Z",
"calls": 42,
"bookings": 18,
"average_duration": 172
},
{
"timestamp": "2024-01-02T00:00:00Z",
"calls": 58,
"bookings": 26,
"average_duration": 195
}
],
"peak_hours": [
{
"hour": 9,
"call_volume": 12.3,
"answer_rate": 0.98
},
{
"hour": 10,
"call_volume": 15.7,
"answer_rate": 0.97
},
{
"hour": 14,
"call_volume": 14.2,
"answer_rate": 0.96
}
],
"customer_sentiment": {
"positive": 0.68,
"neutral": 0.28,
"negative": 0.04
}
},
"meta": {
"request_id": "req_pqr678",
"timestamp": "2024-02-01T10:00:00Z"
}
}