Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request PATCH \
--url https://api.zudu.ai/api/phone-numbers/{phoneNumber} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"nickname": "Updated Customer Service Line",
"inbound_agent_id": "agent_new123",
"outbound_agent_id": "agent_new789",
"inbound_agent_version": 2,
"outbound_agent_version": 2,
"inbound_webhook_url": "https://example.com/new-webhook",
"number_provider": "plivo",
"outbound_trunk_id": "ST_sFAXh5zmGwU2"
}
'import requests
url = "https://api.zudu.ai/api/phone-numbers/{phoneNumber}"
payload = {
"nickname": "Updated Customer Service Line",
"inbound_agent_id": "agent_new123",
"outbound_agent_id": "agent_new789",
"inbound_agent_version": 2,
"outbound_agent_version": 2,
"inbound_webhook_url": "https://example.com/new-webhook",
"number_provider": "plivo",
"outbound_trunk_id": "ST_sFAXh5zmGwU2"
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
nickname: 'Updated Customer Service Line',
inbound_agent_id: 'agent_new123',
outbound_agent_id: 'agent_new789',
inbound_agent_version: 2,
outbound_agent_version: 2,
inbound_webhook_url: 'https://example.com/new-webhook',
number_provider: 'plivo',
outbound_trunk_id: 'ST_sFAXh5zmGwU2'
})
};
fetch('https://api.zudu.ai/api/phone-numbers/{phoneNumber}', 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/phone-numbers/{phoneNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'nickname' => 'Updated Customer Service Line',
'inbound_agent_id' => 'agent_new123',
'outbound_agent_id' => 'agent_new789',
'inbound_agent_version' => 2,
'outbound_agent_version' => 2,
'inbound_webhook_url' => 'https://example.com/new-webhook',
'number_provider' => 'plivo',
'outbound_trunk_id' => 'ST_sFAXh5zmGwU2'
]),
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/phone-numbers/{phoneNumber}"
payload := strings.NewReader("{\n \"nickname\": \"Updated Customer Service Line\",\n \"inbound_agent_id\": \"agent_new123\",\n \"outbound_agent_id\": \"agent_new789\",\n \"inbound_agent_version\": 2,\n \"outbound_agent_version\": 2,\n \"inbound_webhook_url\": \"https://example.com/new-webhook\",\n \"number_provider\": \"plivo\",\n \"outbound_trunk_id\": \"ST_sFAXh5zmGwU2\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.zudu.ai/api/phone-numbers/{phoneNumber}")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"nickname\": \"Updated Customer Service Line\",\n \"inbound_agent_id\": \"agent_new123\",\n \"outbound_agent_id\": \"agent_new789\",\n \"inbound_agent_version\": 2,\n \"outbound_agent_version\": 2,\n \"inbound_webhook_url\": \"https://example.com/new-webhook\",\n \"number_provider\": \"plivo\",\n \"outbound_trunk_id\": \"ST_sFAXh5zmGwU2\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/phone-numbers/{phoneNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nickname\": \"Updated Customer Service Line\",\n \"inbound_agent_id\": \"agent_new123\",\n \"outbound_agent_id\": \"agent_new789\",\n \"inbound_agent_version\": 2,\n \"outbound_agent_version\": 2,\n \"inbound_webhook_url\": \"https://example.com/new-webhook\",\n \"number_provider\": \"plivo\",\n \"outbound_trunk_id\": \"ST_sFAXh5zmGwU2\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Phone number updated successfully",
"status": "success",
"error": null,
"data": {
"phone_number": "+14157774444",
"organization_id": "org_123",
"phone_number_pretty": "+1 (415) 777-4444",
"area_code": 415,
"nickname": "Updated Customer Service Line",
"phone_number_type": "zudu-twilio",
"inbound_agent_id": "agent_new123",
"outbound_agent_id": "agent_new789",
"inbound_agent_version": 2,
"outbound_agent_version": 2,
"inbound_webhook_url": "https://example.com/new-webhook",
"number_provider": "plivo",
"outbound_trunk_id": "ST_sFAXh5zmGwU2",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z",
"last_modification_timestamp": 1703421900000
}
}Updates a phone number (current behavior).
curl --request PATCH \
--url https://api.zudu.ai/api/phone-numbers/{phoneNumber} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"nickname": "Updated Customer Service Line",
"inbound_agent_id": "agent_new123",
"outbound_agent_id": "agent_new789",
"inbound_agent_version": 2,
"outbound_agent_version": 2,
"inbound_webhook_url": "https://example.com/new-webhook",
"number_provider": "plivo",
"outbound_trunk_id": "ST_sFAXh5zmGwU2"
}
'import requests
url = "https://api.zudu.ai/api/phone-numbers/{phoneNumber}"
payload = {
"nickname": "Updated Customer Service Line",
"inbound_agent_id": "agent_new123",
"outbound_agent_id": "agent_new789",
"inbound_agent_version": 2,
"outbound_agent_version": 2,
"inbound_webhook_url": "https://example.com/new-webhook",
"number_provider": "plivo",
"outbound_trunk_id": "ST_sFAXh5zmGwU2"
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
nickname: 'Updated Customer Service Line',
inbound_agent_id: 'agent_new123',
outbound_agent_id: 'agent_new789',
inbound_agent_version: 2,
outbound_agent_version: 2,
inbound_webhook_url: 'https://example.com/new-webhook',
number_provider: 'plivo',
outbound_trunk_id: 'ST_sFAXh5zmGwU2'
})
};
fetch('https://api.zudu.ai/api/phone-numbers/{phoneNumber}', 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/phone-numbers/{phoneNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'nickname' => 'Updated Customer Service Line',
'inbound_agent_id' => 'agent_new123',
'outbound_agent_id' => 'agent_new789',
'inbound_agent_version' => 2,
'outbound_agent_version' => 2,
'inbound_webhook_url' => 'https://example.com/new-webhook',
'number_provider' => 'plivo',
'outbound_trunk_id' => 'ST_sFAXh5zmGwU2'
]),
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/phone-numbers/{phoneNumber}"
payload := strings.NewReader("{\n \"nickname\": \"Updated Customer Service Line\",\n \"inbound_agent_id\": \"agent_new123\",\n \"outbound_agent_id\": \"agent_new789\",\n \"inbound_agent_version\": 2,\n \"outbound_agent_version\": 2,\n \"inbound_webhook_url\": \"https://example.com/new-webhook\",\n \"number_provider\": \"plivo\",\n \"outbound_trunk_id\": \"ST_sFAXh5zmGwU2\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.zudu.ai/api/phone-numbers/{phoneNumber}")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"nickname\": \"Updated Customer Service Line\",\n \"inbound_agent_id\": \"agent_new123\",\n \"outbound_agent_id\": \"agent_new789\",\n \"inbound_agent_version\": 2,\n \"outbound_agent_version\": 2,\n \"inbound_webhook_url\": \"https://example.com/new-webhook\",\n \"number_provider\": \"plivo\",\n \"outbound_trunk_id\": \"ST_sFAXh5zmGwU2\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/phone-numbers/{phoneNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nickname\": \"Updated Customer Service Line\",\n \"inbound_agent_id\": \"agent_new123\",\n \"outbound_agent_id\": \"agent_new789\",\n \"inbound_agent_version\": 2,\n \"outbound_agent_version\": 2,\n \"inbound_webhook_url\": \"https://example.com/new-webhook\",\n \"number_provider\": \"plivo\",\n \"outbound_trunk_id\": \"ST_sFAXh5zmGwU2\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Phone number updated successfully",
"status": "success",
"error": null,
"data": {
"phone_number": "+14157774444",
"organization_id": "org_123",
"phone_number_pretty": "+1 (415) 777-4444",
"area_code": 415,
"nickname": "Updated Customer Service Line",
"phone_number_type": "zudu-twilio",
"inbound_agent_id": "agent_new123",
"outbound_agent_id": "agent_new789",
"inbound_agent_version": 2,
"outbound_agent_version": 2,
"inbound_webhook_url": "https://example.com/new-webhook",
"number_provider": "plivo",
"outbound_trunk_id": "ST_sFAXh5zmGwU2",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z",
"last_modification_timestamp": 1703421900000
}
}phone_number, organization_id, area_code, phone_number_typeAPI Key for MCP server and external service authentication
API Secret for MCP server and external service authentication