Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request PUT \
--url https://api.zudu.ai/api/calls/{callId} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"call_status": "ONGOING",
"direction": "OUTBOUND",
"from_number": "+1111111111",
"metadata": {
"updated_field": "new_value"
}
}
'import requests
url = "https://api.zudu.ai/api/calls/{callId}"
payload = {
"call_status": "ONGOING",
"direction": "OUTBOUND",
"from_number": "+1111111111",
"metadata": { "updated_field": "new_value" }
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
call_status: 'ONGOING',
direction: 'OUTBOUND',
from_number: '+1111111111',
metadata: {updated_field: 'new_value'}
})
};
fetch('https://api.zudu.ai/api/calls/{callId}', 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/{callId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'call_status' => 'ONGOING',
'direction' => 'OUTBOUND',
'from_number' => '+1111111111',
'metadata' => [
'updated_field' => 'new_value'
]
]),
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/{callId}"
payload := strings.NewReader("{\n \"call_status\": \"ONGOING\",\n \"direction\": \"OUTBOUND\",\n \"from_number\": \"+1111111111\",\n \"metadata\": {\n \"updated_field\": \"new_value\"\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.zudu.ai/api/calls/{callId}")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"call_status\": \"ONGOING\",\n \"direction\": \"OUTBOUND\",\n \"from_number\": \"+1111111111\",\n \"metadata\": {\n \"updated_field\": \"new_value\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/calls/{callId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"call_status\": \"ONGOING\",\n \"direction\": \"OUTBOUND\",\n \"from_number\": \"+1111111111\",\n \"metadata\": {\n \"updated_field\": \"new_value\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Call updated successfully",
"status": "success",
"error": null,
"data": {
"operation": "update",
"organization_id": "org-789",
"call": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"agent_id": "agent-123",
"call_id": "call-456",
"organization_id": "org-789",
"call_status": "ongoing",
"call_type": "phone_call",
"direction": "outbound",
"from_number": "+1111111111",
"transcript_object": [],
"transcript_with_tool_calls": [],
"events": [],
"metadata": {
"test": true,
"priority": "high",
"updated_field": "new_value"
},
"opt_out_sensitive_data_storage": false
}
}
}Updates a call by ID (current behavior).
curl --request PUT \
--url https://api.zudu.ai/api/calls/{callId} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"call_status": "ONGOING",
"direction": "OUTBOUND",
"from_number": "+1111111111",
"metadata": {
"updated_field": "new_value"
}
}
'import requests
url = "https://api.zudu.ai/api/calls/{callId}"
payload = {
"call_status": "ONGOING",
"direction": "OUTBOUND",
"from_number": "+1111111111",
"metadata": { "updated_field": "new_value" }
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
call_status: 'ONGOING',
direction: 'OUTBOUND',
from_number: '+1111111111',
metadata: {updated_field: 'new_value'}
})
};
fetch('https://api.zudu.ai/api/calls/{callId}', 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/{callId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'call_status' => 'ONGOING',
'direction' => 'OUTBOUND',
'from_number' => '+1111111111',
'metadata' => [
'updated_field' => 'new_value'
]
]),
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/{callId}"
payload := strings.NewReader("{\n \"call_status\": \"ONGOING\",\n \"direction\": \"OUTBOUND\",\n \"from_number\": \"+1111111111\",\n \"metadata\": {\n \"updated_field\": \"new_value\"\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.zudu.ai/api/calls/{callId}")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"call_status\": \"ONGOING\",\n \"direction\": \"OUTBOUND\",\n \"from_number\": \"+1111111111\",\n \"metadata\": {\n \"updated_field\": \"new_value\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/calls/{callId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"call_status\": \"ONGOING\",\n \"direction\": \"OUTBOUND\",\n \"from_number\": \"+1111111111\",\n \"metadata\": {\n \"updated_field\": \"new_value\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Call updated successfully",
"status": "success",
"error": null,
"data": {
"operation": "update",
"organization_id": "org-789",
"call": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"agent_id": "agent-123",
"call_id": "call-456",
"organization_id": "org-789",
"call_status": "ongoing",
"call_type": "phone_call",
"direction": "outbound",
"from_number": "+1111111111",
"transcript_object": [],
"transcript_with_tool_calls": [],
"events": [],
"metadata": {
"test": true,
"priority": "high",
"updated_field": "new_value"
},
"opt_out_sensitive_data_storage": false
}
}
}PUT, docs say “partial updates only”; so semantics are PATCH‑like.API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication