Get Provider Breakdown
curl --request GET \
--url https://api.example.com/api/analytics/providersimport requests
url = "https://api.example.com/api/analytics/providers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/analytics/providers', 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.example.com/api/analytics/providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/analytics/providers"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/analytics/providers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/analytics/providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"period": {},
"providers": {
"provider": "<string>",
"call_count": 123,
"total_cost_credits": 123,
"avg_duration_seconds": 123
}
}
}Analytics
Get Provider Breakdown
View costs and metrics split by underlying AI and telecom providers.
GET
/
api
/
analytics
/
providers
Get Provider Breakdown
curl --request GET \
--url https://api.example.com/api/analytics/providersimport requests
url = "https://api.example.com/api/analytics/providers"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/analytics/providers', 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.example.com/api/analytics/providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/analytics/providers"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/analytics/providers")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/analytics/providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"period": {},
"providers": {
"provider": "<string>",
"call_count": 123,
"total_cost_credits": 123,
"avg_duration_seconds": 123
}
}
}Fetches a breakdown of the models and services used by your voice agents. The response separates your metrics into groups like
llm, tts, and stt, helping you identify which specific providers (e.g., OpenAI, Anthropic, ElevenLabs) are driving your costs.
Query Parameters
string
Start date in
YYYY-MM-DD format. Defaults to 30 days ago.string
End date in
YYYY-MM-DD format. Defaults to today.string
Start exact time in ISO 8601 format (e.g.
2024-03-01T14:30:00Z). Overrides start_date.string
End exact time in ISO 8601 format. Overrides
end_date.Response
boolean
Indicates whether the request was successful.
object
Show properties
Show properties
object
The start and end boundaries of the query.
object
A dictionary where keys are component types (e.g.,
llm, tts, stt) and values are lists of provider metrics.