Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.zudu.ai/api/calls \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"page": 0,
"limit": 50,
"sort_by": "start_timestamp",
"sort_order": "descending",
"filter_criteria": {
"call_status": [
"ongoing",
"ended",
"registered"
],
"agent_id": [
"agent-123",
"agent-456"
],
"duration_ms": {
"lower_threshold": 30000,
"upper_threshold": 300000
},
"transcript_search": "help support"
}
}
'import requests
url = "https://api.zudu.ai/api/calls"
payload = {
"page": 0,
"limit": 50,
"sort_by": "start_timestamp",
"sort_order": "descending",
"filter_criteria": {
"call_status": ["ongoing", "ended", "registered"],
"agent_id": ["agent-123", "agent-456"],
"duration_ms": {
"lower_threshold": 30000,
"upper_threshold": 300000
},
"transcript_search": "help support"
}
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
page: 0,
limit: 50,
sort_by: 'start_timestamp',
sort_order: 'descending',
filter_criteria: {
call_status: ['ongoing', 'ended', 'registered'],
agent_id: ['agent-123', 'agent-456'],
duration_ms: {lower_threshold: 30000, upper_threshold: 300000},
transcript_search: 'help support'
}
})
};
fetch('https://api.zudu.ai/api/calls', 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.zudu.ai/api/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'page' => 0,
'limit' => 50,
'sort_by' => 'start_timestamp',
'sort_order' => 'descending',
'filter_criteria' => [
'call_status' => [
'ongoing',
'ended',
'registered'
],
'agent_id' => [
'agent-123',
'agent-456'
],
'duration_ms' => [
'lower_threshold' => 30000,
'upper_threshold' => 300000
],
'transcript_search' => 'help support'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-API-SECRET: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zudu.ai/api/calls"
payload := strings.NewReader("{\n \"page\": 0,\n \"limit\": 50,\n \"sort_by\": \"start_timestamp\",\n \"sort_order\": \"descending\",\n \"filter_criteria\": {\n \"call_status\": [\n \"ongoing\",\n \"ended\",\n \"registered\"\n ],\n \"agent_id\": [\n \"agent-123\",\n \"agent-456\"\n ],\n \"duration_ms\": {\n \"lower_threshold\": 30000,\n \"upper_threshold\": 300000\n },\n \"transcript_search\": \"help support\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-SECRET", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zudu.ai/api/calls")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 0,\n \"limit\": 50,\n \"sort_by\": \"start_timestamp\",\n \"sort_order\": \"descending\",\n \"filter_criteria\": {\n \"call_status\": [\n \"ongoing\",\n \"ended\",\n \"registered\"\n ],\n \"agent_id\": [\n \"agent-123\",\n \"agent-456\"\n ],\n \"duration_ms\": {\n \"lower_threshold\": 30000,\n \"upper_threshold\": 300000\n },\n \"transcript_search\": \"help support\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page\": 0,\n \"limit\": 50,\n \"sort_by\": \"start_timestamp\",\n \"sort_order\": \"descending\",\n \"filter_criteria\": {\n \"call_status\": [\n \"ongoing\",\n \"ended\",\n \"registered\"\n ],\n \"agent_id\": [\n \"agent-123\",\n \"agent-456\"\n ],\n \"duration_ms\": {\n \"lower_threshold\": 30000,\n \"upper_threshold\": 300000\n },\n \"transcript_search\": \"help support\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Calls retrieved successfully",
"status": "success",
"error": null,
"data": {
"organization_id": "org-789",
"calls": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"call_id": "call-456",
"agent_id": "agent-123",
"organization_id": "org-789",
"call_status": "ENDED",
"call_type": "PHONE_CALL",
"direction": "OUTBOUND",
"from_number": "+0987654321",
"to_number": "+1234567890",
"start_timestamp": 1703097600000,
"end_timestamp": 1703098200000,
"call_duration": 600000
}
],
"pagination": {
"page": 0,
"limit": 50,
"total_count": 25,
"total_pages": 1,
"has_next_page": false,
"has_previous_page": false
},
"returned_count": 1,
"sort_order": "descending",
"sort_by": "start_timestamp",
"applied_filters": {
"duration_ms": {
"lower_threshold": 30000,
"upper_threshold": 300000
}
}
}
}{
"message": "<string>",
"status": "<string>",
"error": "<string>",
"data": {}
}Lists or filters calls (current behavior).
curl --request POST \
--url https://api.zudu.ai/api/calls \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"page": 0,
"limit": 50,
"sort_by": "start_timestamp",
"sort_order": "descending",
"filter_criteria": {
"call_status": [
"ongoing",
"ended",
"registered"
],
"agent_id": [
"agent-123",
"agent-456"
],
"duration_ms": {
"lower_threshold": 30000,
"upper_threshold": 300000
},
"transcript_search": "help support"
}
}
'import requests
url = "https://api.zudu.ai/api/calls"
payload = {
"page": 0,
"limit": 50,
"sort_by": "start_timestamp",
"sort_order": "descending",
"filter_criteria": {
"call_status": ["ongoing", "ended", "registered"],
"agent_id": ["agent-123", "agent-456"],
"duration_ms": {
"lower_threshold": 30000,
"upper_threshold": 300000
},
"transcript_search": "help support"
}
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
page: 0,
limit: 50,
sort_by: 'start_timestamp',
sort_order: 'descending',
filter_criteria: {
call_status: ['ongoing', 'ended', 'registered'],
agent_id: ['agent-123', 'agent-456'],
duration_ms: {lower_threshold: 30000, upper_threshold: 300000},
transcript_search: 'help support'
}
})
};
fetch('https://api.zudu.ai/api/calls', 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.zudu.ai/api/calls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'page' => 0,
'limit' => 50,
'sort_by' => 'start_timestamp',
'sort_order' => 'descending',
'filter_criteria' => [
'call_status' => [
'ongoing',
'ended',
'registered'
],
'agent_id' => [
'agent-123',
'agent-456'
],
'duration_ms' => [
'lower_threshold' => 30000,
'upper_threshold' => 300000
],
'transcript_search' => 'help support'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-API-SECRET: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zudu.ai/api/calls"
payload := strings.NewReader("{\n \"page\": 0,\n \"limit\": 50,\n \"sort_by\": \"start_timestamp\",\n \"sort_order\": \"descending\",\n \"filter_criteria\": {\n \"call_status\": [\n \"ongoing\",\n \"ended\",\n \"registered\"\n ],\n \"agent_id\": [\n \"agent-123\",\n \"agent-456\"\n ],\n \"duration_ms\": {\n \"lower_threshold\": 30000,\n \"upper_threshold\": 300000\n },\n \"transcript_search\": \"help support\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-SECRET", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.zudu.ai/api/calls")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 0,\n \"limit\": 50,\n \"sort_by\": \"start_timestamp\",\n \"sort_order\": \"descending\",\n \"filter_criteria\": {\n \"call_status\": [\n \"ongoing\",\n \"ended\",\n \"registered\"\n ],\n \"agent_id\": [\n \"agent-123\",\n \"agent-456\"\n ],\n \"duration_ms\": {\n \"lower_threshold\": 30000,\n \"upper_threshold\": 300000\n },\n \"transcript_search\": \"help support\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/calls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page\": 0,\n \"limit\": 50,\n \"sort_by\": \"start_timestamp\",\n \"sort_order\": \"descending\",\n \"filter_criteria\": {\n \"call_status\": [\n \"ongoing\",\n \"ended\",\n \"registered\"\n ],\n \"agent_id\": [\n \"agent-123\",\n \"agent-456\"\n ],\n \"duration_ms\": {\n \"lower_threshold\": 30000,\n \"upper_threshold\": 300000\n },\n \"transcript_search\": \"help support\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Calls retrieved successfully",
"status": "success",
"error": null,
"data": {
"organization_id": "org-789",
"calls": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"call_id": "call-456",
"agent_id": "agent-123",
"organization_id": "org-789",
"call_status": "ENDED",
"call_type": "PHONE_CALL",
"direction": "OUTBOUND",
"from_number": "+0987654321",
"to_number": "+1234567890",
"start_timestamp": 1703097600000,
"end_timestamp": 1703098200000,
"call_duration": 600000
}
],
"pagination": {
"page": 0,
"limit": 50,
"total_count": 25,
"total_pages": 1,
"has_next_page": false,
"has_previous_page": false
},
"returned_count": 1,
"sort_order": "descending",
"sort_by": "start_timestamp",
"applied_filters": {
"duration_ms": {
"lower_threshold": 30000,
"upper_threshold": 300000
}
}
}
}{
"message": "<string>",
"status": "<string>",
"error": "<string>",
"data": {}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication
Optional filters and pagination parameters
Page number (0-based indexing)
0
Items per page (1-100)
20
Field to sort by (e.g., start_timestamp, end_timestamp, call_duration, call_id)
"start_timestamp"
Sort direction (ascending or descending)
"descending"
Filtering criteria for calls