Call History
curl --request GET \
--url https://dev.voice.ai/api/v1/agent/call-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.voice.ai/api/v1/agent/call-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.voice.ai/api/v1/agent/call-history', 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://dev.voice.ai/api/v1/agent/call-history",
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://dev.voice.ai/api/v1/agent/call-history"
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://dev.voice.ai/api/v1/agent/call-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.voice.ai/api/v1/agent/call-history")
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{
"items": [
{
"id": 123,
"call_id": "call_01JABCDEF23456789XYZ",
"agent_id": "agent_123",
"agent_name": "Support Agent",
"call_timestamp": "2026-03-01T18:42:11Z",
"call_duration_seconds": 184.5,
"credits_used": 3.69,
"has_transcript": true,
"call_type": "web",
"from_number": null,
"to_number": null,
"transcription_summary": "Customer asked about account access and password reset.",
"transcription_stats": {
"duration_seconds": 184.5,
"speaker_turns": 14
}
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"total_pages": 1
}
}{
"error": "<string>",
"detail": "<string>",
"code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": "<string>",
"detail": "<string>",
"code": "<string>"
}Agent Analytics
Call History
Retrieve detailed call logs.
GET
/
api
/
v1
/
agent
/
call-history
Call History
curl --request GET \
--url https://dev.voice.ai/api/v1/agent/call-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.voice.ai/api/v1/agent/call-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.voice.ai/api/v1/agent/call-history', 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://dev.voice.ai/api/v1/agent/call-history",
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://dev.voice.ai/api/v1/agent/call-history"
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://dev.voice.ai/api/v1/agent/call-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.voice.ai/api/v1/agent/call-history")
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{
"items": [
{
"id": 123,
"call_id": "call_01JABCDEF23456789XYZ",
"agent_id": "agent_123",
"agent_name": "Support Agent",
"call_timestamp": "2026-03-01T18:42:11Z",
"call_duration_seconds": 184.5,
"credits_used": 3.69,
"has_transcript": true,
"call_type": "web",
"from_number": null,
"to_number": null,
"transcription_summary": "Customer asked about account access and password reset.",
"transcription_stats": {
"duration_seconds": 184.5,
"speaker_turns": 14
}
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 1,
"total_pages": 1
}
}{
"error": "<string>",
"detail": "<string>",
"code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": "<string>",
"detail": "<string>",
"code": "<string>"
}Authorizations
Bearer token authentication. Use your API key as the bearer token. Format: Authorization: Bearer
Query Parameters
Required range:
x >= 1Required range:
1 <= x <= 100Filter calls after this date (ISO format UTC, e.g., 2024-01-01T00:00:00+00:00)
Filter calls before this date (ISO format UTC, e.g., 2024-12-31T23:59:59+00:00)
Filter calls by agent ID(s). Can provide multiple agent IDs as a list (e.g., ?agent_ids=agent1&agent_ids=agent2). Filter calls by agent ID(s). Can provide multiple agent IDs as a list.