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/phone-numbers/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"phone_number": "+14157774444",
"area_code": 415,
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"inbound_webhook_url": "https://example.com/webhook",
"number_provider": "twilio",
"outbound_trunk_id": "ST_4Xo2mZgQsfyQ",
"phone_number_type": "zudu-twilio"
}
'import requests
url = "https://api.zudu.ai/api/phone-numbers/create"
payload = {
"phone_number": "+14157774444",
"area_code": 415,
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"inbound_webhook_url": "https://example.com/webhook",
"number_provider": "twilio",
"outbound_trunk_id": "ST_4Xo2mZgQsfyQ",
"phone_number_type": "zudu-twilio"
}
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({
phone_number: '+14157774444',
area_code: 415,
nickname: 'Customer Service Line',
inbound_agent_id: 'agent_abc123',
outbound_agent_id: 'agent_xyz789',
inbound_agent_version: 1,
outbound_agent_version: 1,
inbound_webhook_url: 'https://example.com/webhook',
number_provider: 'twilio',
outbound_trunk_id: 'ST_4Xo2mZgQsfyQ',
phone_number_type: 'zudu-twilio'
})
};
fetch('https://api.zudu.ai/api/phone-numbers/create', 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/create",
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([
'phone_number' => '+14157774444',
'area_code' => 415,
'nickname' => 'Customer Service Line',
'inbound_agent_id' => 'agent_abc123',
'outbound_agent_id' => 'agent_xyz789',
'inbound_agent_version' => 1,
'outbound_agent_version' => 1,
'inbound_webhook_url' => 'https://example.com/webhook',
'number_provider' => 'twilio',
'outbound_trunk_id' => 'ST_4Xo2mZgQsfyQ',
'phone_number_type' => 'zudu-twilio'
]),
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/create"
payload := strings.NewReader("{\n \"phone_number\": \"+14157774444\",\n \"area_code\": 415,\n \"nickname\": \"Customer Service Line\",\n \"inbound_agent_id\": \"agent_abc123\",\n \"outbound_agent_id\": \"agent_xyz789\",\n \"inbound_agent_version\": 1,\n \"outbound_agent_version\": 1,\n \"inbound_webhook_url\": \"https://example.com/webhook\",\n \"number_provider\": \"twilio\",\n \"outbound_trunk_id\": \"ST_4Xo2mZgQsfyQ\",\n \"phone_number_type\": \"zudu-twilio\"\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/phone-numbers/create")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14157774444\",\n \"area_code\": 415,\n \"nickname\": \"Customer Service Line\",\n \"inbound_agent_id\": \"agent_abc123\",\n \"outbound_agent_id\": \"agent_xyz789\",\n \"inbound_agent_version\": 1,\n \"outbound_agent_version\": 1,\n \"inbound_webhook_url\": \"https://example.com/webhook\",\n \"number_provider\": \"twilio\",\n \"outbound_trunk_id\": \"ST_4Xo2mZgQsfyQ\",\n \"phone_number_type\": \"zudu-twilio\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/phone-numbers/create")
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 \"phone_number\": \"+14157774444\",\n \"area_code\": 415,\n \"nickname\": \"Customer Service Line\",\n \"inbound_agent_id\": \"agent_abc123\",\n \"outbound_agent_id\": \"agent_xyz789\",\n \"inbound_agent_version\": 1,\n \"outbound_agent_version\": 1,\n \"inbound_webhook_url\": \"https://example.com/webhook\",\n \"number_provider\": \"twilio\",\n \"outbound_trunk_id\": \"ST_4Xo2mZgQsfyQ\",\n \"phone_number_type\": \"zudu-twilio\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Phone number created successfully",
"status": "success",
"error": null,
"data": {
"phone_number": "+14157774444",
"organization_id": "org_123",
"phone_number_pretty": "+1 (415) 777-4444",
"area_code": 415,
"nickname": "Customer Service Line",
"phone_number_type": "zudu-twilio",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"inbound_webhook_url": "https://example.com/webhook",
"number_provider": "twilio",
"outbound_trunk_id": "ST_4Xo2mZgQsfyQ",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"last_modification_timestamp": 1703413636133
}
}Creates a phone number (current behavior).
curl --request POST \
--url https://api.zudu.ai/api/phone-numbers/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"phone_number": "+14157774444",
"area_code": 415,
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"inbound_webhook_url": "https://example.com/webhook",
"number_provider": "twilio",
"outbound_trunk_id": "ST_4Xo2mZgQsfyQ",
"phone_number_type": "zudu-twilio"
}
'import requests
url = "https://api.zudu.ai/api/phone-numbers/create"
payload = {
"phone_number": "+14157774444",
"area_code": 415,
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"inbound_webhook_url": "https://example.com/webhook",
"number_provider": "twilio",
"outbound_trunk_id": "ST_4Xo2mZgQsfyQ",
"phone_number_type": "zudu-twilio"
}
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({
phone_number: '+14157774444',
area_code: 415,
nickname: 'Customer Service Line',
inbound_agent_id: 'agent_abc123',
outbound_agent_id: 'agent_xyz789',
inbound_agent_version: 1,
outbound_agent_version: 1,
inbound_webhook_url: 'https://example.com/webhook',
number_provider: 'twilio',
outbound_trunk_id: 'ST_4Xo2mZgQsfyQ',
phone_number_type: 'zudu-twilio'
})
};
fetch('https://api.zudu.ai/api/phone-numbers/create', 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/create",
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([
'phone_number' => '+14157774444',
'area_code' => 415,
'nickname' => 'Customer Service Line',
'inbound_agent_id' => 'agent_abc123',
'outbound_agent_id' => 'agent_xyz789',
'inbound_agent_version' => 1,
'outbound_agent_version' => 1,
'inbound_webhook_url' => 'https://example.com/webhook',
'number_provider' => 'twilio',
'outbound_trunk_id' => 'ST_4Xo2mZgQsfyQ',
'phone_number_type' => 'zudu-twilio'
]),
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/create"
payload := strings.NewReader("{\n \"phone_number\": \"+14157774444\",\n \"area_code\": 415,\n \"nickname\": \"Customer Service Line\",\n \"inbound_agent_id\": \"agent_abc123\",\n \"outbound_agent_id\": \"agent_xyz789\",\n \"inbound_agent_version\": 1,\n \"outbound_agent_version\": 1,\n \"inbound_webhook_url\": \"https://example.com/webhook\",\n \"number_provider\": \"twilio\",\n \"outbound_trunk_id\": \"ST_4Xo2mZgQsfyQ\",\n \"phone_number_type\": \"zudu-twilio\"\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/phone-numbers/create")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14157774444\",\n \"area_code\": 415,\n \"nickname\": \"Customer Service Line\",\n \"inbound_agent_id\": \"agent_abc123\",\n \"outbound_agent_id\": \"agent_xyz789\",\n \"inbound_agent_version\": 1,\n \"outbound_agent_version\": 1,\n \"inbound_webhook_url\": \"https://example.com/webhook\",\n \"number_provider\": \"twilio\",\n \"outbound_trunk_id\": \"ST_4Xo2mZgQsfyQ\",\n \"phone_number_type\": \"zudu-twilio\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/phone-numbers/create")
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 \"phone_number\": \"+14157774444\",\n \"area_code\": 415,\n \"nickname\": \"Customer Service Line\",\n \"inbound_agent_id\": \"agent_abc123\",\n \"outbound_agent_id\": \"agent_xyz789\",\n \"inbound_agent_version\": 1,\n \"outbound_agent_version\": 1,\n \"inbound_webhook_url\": \"https://example.com/webhook\",\n \"number_provider\": \"twilio\",\n \"outbound_trunk_id\": \"ST_4Xo2mZgQsfyQ\",\n \"phone_number_type\": \"zudu-twilio\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Phone number created successfully",
"status": "success",
"error": null,
"data": {
"phone_number": "+14157774444",
"organization_id": "org_123",
"phone_number_pretty": "+1 (415) 777-4444",
"area_code": 415,
"nickname": "Customer Service Line",
"phone_number_type": "zudu-twilio",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"inbound_agent_version": 1,
"outbound_agent_version": 1,
"inbound_webhook_url": "https://example.com/webhook",
"number_provider": "twilio",
"outbound_trunk_id": "ST_4Xo2mZgQsfyQ",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"last_modification_timestamp": 1703413636133
}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication
E.164 format phone number
3-digit area code (US/Canada)