curl --request GET \
--url https://api.peachdeskai.com/api/v1/organizations/telephony-config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/organizations/telephony-config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/organizations/telephony-config', 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.peachdeskai.com/api/v1/organizations/telephony-config",
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://api.peachdeskai.com/api/v1/organizations/telephony-config"
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://api.peachdeskai.com/api/v1/organizations/telephony-config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/organizations/telephony-config")
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{
"twilio": {
"account_sid": "<string>",
"auth_token": "<string>",
"from_numbers": [
"<string>"
],
"provider": "twilio"
},
"plivo": {
"auth_id": "<string>",
"auth_token": "<string>",
"from_numbers": [
"<string>"
],
"provider": "plivo",
"application_id": "<string>"
},
"vonage": {
"application_id": "<string>",
"api_key": "<string>",
"api_secret": "<string>",
"private_key": "<string>",
"from_numbers": [
"<string>"
],
"provider": "vonage"
},
"vobiz": {
"auth_id": "<string>",
"auth_token": "<string>",
"from_numbers": [
"<string>"
],
"provider": "vobiz",
"application_id": "<string>"
},
"cloudonix": {
"bearer_token": "<string>",
"domain_id": "<string>",
"from_numbers": [
"<string>"
],
"provider": "cloudonix",
"application_name": "<string>"
},
"ari": {
"ari_endpoint": "<string>",
"app_name": "<string>",
"app_password": "<string>",
"from_numbers": [
"<string>"
],
"provider": "ari",
"ws_client_name": "",
"trunk_endpoint": "",
"outbound_number_format": "as_dialed",
"trunk_country_code": ""
},
"telnyx": {
"api_key": "<string>",
"from_numbers": [
"<string>"
],
"provider": "telnyx",
"connection_id": "<string>",
"webhook_public_key": "<string>"
}
}Get Telephony Configuration
Legacy: returns the orgтАЩs default config in the original per-provider
response shape so the existing single-form UI keeps working. Prefer the
multi-config endpoints (/telephony-configs) for new clients.
curl --request GET \
--url https://api.peachdeskai.com/api/v1/organizations/telephony-config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/organizations/telephony-config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/organizations/telephony-config', 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.peachdeskai.com/api/v1/organizations/telephony-config",
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://api.peachdeskai.com/api/v1/organizations/telephony-config"
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://api.peachdeskai.com/api/v1/organizations/telephony-config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/organizations/telephony-config")
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{
"twilio": {
"account_sid": "<string>",
"auth_token": "<string>",
"from_numbers": [
"<string>"
],
"provider": "twilio"
},
"plivo": {
"auth_id": "<string>",
"auth_token": "<string>",
"from_numbers": [
"<string>"
],
"provider": "plivo",
"application_id": "<string>"
},
"vonage": {
"application_id": "<string>",
"api_key": "<string>",
"api_secret": "<string>",
"private_key": "<string>",
"from_numbers": [
"<string>"
],
"provider": "vonage"
},
"vobiz": {
"auth_id": "<string>",
"auth_token": "<string>",
"from_numbers": [
"<string>"
],
"provider": "vobiz",
"application_id": "<string>"
},
"cloudonix": {
"bearer_token": "<string>",
"domain_id": "<string>",
"from_numbers": [
"<string>"
],
"provider": "cloudonix",
"application_name": "<string>"
},
"ari": {
"ari_endpoint": "<string>",
"app_name": "<string>",
"app_password": "<string>",
"from_numbers": [
"<string>"
],
"provider": "ari",
"ws_client_name": "",
"trunk_endpoint": "",
"outbound_number_format": "as_dialed",
"trunk_country_code": ""
},
"telnyx": {
"api_key": "<string>",
"from_numbers": [
"<string>"
],
"provider": "telnyx",
"connection_id": "<string>",
"webhook_public_key": "<string>"
}
}Authorizations
Interactive user session: the login JWT, sent as Authorization: Bearer <token>.
Response
Successful Response
Top-level telephony configuration response.
Keeps the per-provider field shape that the UI client depends on. When the UI moves to metadata-driven forms, this can be replaced with a flat discriminated union.
Response schema for Twilio configuration with masked sensitive fields.
Show child attributes
Show child attributes
Response schema for Plivo configuration with masked sensitive fields.
Show child attributes
Show child attributes
Response schema for Vonage configuration with masked sensitive fields.
Show child attributes
Show child attributes
Response schema for Vobiz configuration with masked sensitive fields.
Show child attributes
Show child attributes
Response schema for Cloudonix configuration with masked sensitive fields.
Show child attributes
Show child attributes
Response schema for ARI configuration with masked sensitive fields.
Show child attributes
Show child attributes
Response schema for Telnyx configuration with masked sensitive fields.
Show child attributes
Show child attributes

