Get call analytics
curl --request GET \
--url https://api.vonative.com/v1/calls/analytics/overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vonative.com/v1/calls/analytics/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vonative.com/v1/calls/analytics/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vonative.com/v1/calls/analytics/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vonative.com/v1/calls/analytics/overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vonative.com/v1/calls/analytics/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/calls/analytics/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"assistant_metrics": {
"response_times": {
"average": 2.3
},
"top_performing": "assistant_123"
},
"call_metrics": {
"average_duration": 285,
"success_rate": 0.93,
"total_calls": 150
},
"cost_metrics": {
"cost_per_minute": "0.15",
"cost_trend": "stable",
"total_cost": "225.50"
},
"date_range": {
"end": "2024-01-31",
"start": "2024-01-01"
},
"quality_metrics": {
"average_rating": 4.2,
"satisfaction_rate": 0.88
}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Calls
Get call analytics
Call volume, duration, cost and outcomes over the last days days.
Required permission: calls:read
GET
/
v1
/
calls
/
analytics
/
overview
Get call analytics
curl --request GET \
--url https://api.vonative.com/v1/calls/analytics/overview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vonative.com/v1/calls/analytics/overview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vonative.com/v1/calls/analytics/overview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vonative.com/v1/calls/analytics/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vonative.com/v1/calls/analytics/overview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vonative.com/v1/calls/analytics/overview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/calls/analytics/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"assistant_metrics": {
"response_times": {
"average": 2.3
},
"top_performing": "assistant_123"
},
"call_metrics": {
"average_duration": 285,
"success_rate": 0.93,
"total_calls": 150
},
"cost_metrics": {
"cost_per_minute": "0.15",
"cost_trend": "stable",
"total_cost": "225.50"
},
"date_range": {
"end": "2024-01-31",
"start": "2024-01-01"
},
"quality_metrics": {
"average_rating": 4.2,
"satisfaction_rate": 0.88
}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
An API key from Dashboard → Developers → API keys.
Query Parameters
Number of days to analyze
Required range:
1 <= x <= 365Response
Successful Response
Schema for call analytics
Show child attributes
Show child attributes
Example:
{
"assistant_metrics": {
"response_times": { "average": 2.3 },
"top_performing": "assistant_123"
},
"call_metrics": {
"average_duration": 285,
"success_rate": 0.93,
"total_calls": 150
},
"cost_metrics": {
"cost_per_minute": "0.15",
"cost_trend": "stable",
"total_cost": "225.50"
},
"date_range": {
"end": "2024-01-31",
"start": "2024-01-01"
},
"quality_metrics": {
"average_rating": 4.2,
"satisfaction_rate": 0.88
}
}
⌘I

