Phone numbers
Update a phone number
Only the fields you send are changed.
PATCH
/
v1
/
phone-numbers
/
{id}
Update a phone number
curl --request PATCH \
--url https://api.voice.wixzel.com/v1/phone-numbers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14155550100",
"sip_trunk_id": "6a96a3ead6e886d42462dd3e",
"name": "<string>",
"inbound_agent_id": "6a96a3ead6e886d42462dd3e"
}
'import requests
url = "https://api.voice.wixzel.com/v1/phone-numbers/{id}"
payload = {
"phone_number": "+14155550100",
"sip_trunk_id": "6a96a3ead6e886d42462dd3e",
"name": "<string>",
"inbound_agent_id": "6a96a3ead6e886d42462dd3e"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+14155550100',
sip_trunk_id: '6a96a3ead6e886d42462dd3e',
name: '<string>',
inbound_agent_id: '6a96a3ead6e886d42462dd3e'
})
};
fetch('https://api.voice.wixzel.com/v1/phone-numbers/{id}', 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.voice.wixzel.com/v1/phone-numbers/{id}",
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([
'phone_number' => '+14155550100',
'sip_trunk_id' => '6a96a3ead6e886d42462dd3e',
'name' => '<string>',
'inbound_agent_id' => '6a96a3ead6e886d42462dd3e'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.voice.wixzel.com/v1/phone-numbers/{id}"
payload := strings.NewReader("{\n \"phone_number\": \"+14155550100\",\n \"sip_trunk_id\": \"6a96a3ead6e886d42462dd3e\",\n \"name\": \"<string>\",\n \"inbound_agent_id\": \"6a96a3ead6e886d42462dd3e\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.voice.wixzel.com/v1/phone-numbers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14155550100\",\n \"sip_trunk_id\": \"6a96a3ead6e886d42462dd3e\",\n \"name\": \"<string>\",\n \"inbound_agent_id\": \"6a96a3ead6e886d42462dd3e\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.voice.wixzel.com/v1/phone-numbers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+14155550100\",\n \"sip_trunk_id\": \"6a96a3ead6e886d42462dd3e\",\n \"name\": \"<string>\",\n \"inbound_agent_id\": \"6a96a3ead6e886d42462dd3e\"\n}"
response = http.request(request)
puts response.read_body{
"id": "6a96a3ead6e886d42462dd3e",
"object": "phone_number",
"phone_number": "<string>",
"name": "<string>",
"sip_trunk_id": "6a96a3ead6e886d42462dd3e",
"inbound_agent_id": "6a96a3ead6e886d42462dd3e",
"status": "<string>",
"created_at": "2026-09-01T12:00:00.000Z"
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}Authorizations
Your Wixzel Voice API key: Authorization: Bearer wv_live_.... Keys are scoped; grant only what the integration needs.
Path Parameters
Pattern:
^[0-9a-f]{24}$Example:
"6a96a3ead6e886d42462dd3e"
Body
application/json
Pattern:
^\+[1-9]\d{6,14}$Example:
"+14155550100"
Pattern:
^[0-9a-f]{24}$Example:
"6a96a3ead6e886d42462dd3e"
Maximum string length:
200Answers inbound calls to this number. Without it, inbound calls are rejected.
Pattern:
^[0-9a-f]{24}$Example:
"6a96a3ead6e886d42462dd3e"
Response
The updated a phone number
Pattern:
^[0-9a-f]{24}$Example:
"6a96a3ead6e886d42462dd3e"
Available options:
phone_number Pattern:
^[0-9a-f]{24}$Example:
"6a96a3ead6e886d42462dd3e"
Pattern:
^[0-9a-f]{24}$Example:
"6a96a3ead6e886d42462dd3e"
ISO 8601, always UTC.
Example:
"2026-09-01T12:00:00.000Z"
⌘I
Update a phone number
curl --request PATCH \
--url https://api.voice.wixzel.com/v1/phone-numbers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14155550100",
"sip_trunk_id": "6a96a3ead6e886d42462dd3e",
"name": "<string>",
"inbound_agent_id": "6a96a3ead6e886d42462dd3e"
}
'import requests
url = "https://api.voice.wixzel.com/v1/phone-numbers/{id}"
payload = {
"phone_number": "+14155550100",
"sip_trunk_id": "6a96a3ead6e886d42462dd3e",
"name": "<string>",
"inbound_agent_id": "6a96a3ead6e886d42462dd3e"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+14155550100',
sip_trunk_id: '6a96a3ead6e886d42462dd3e',
name: '<string>',
inbound_agent_id: '6a96a3ead6e886d42462dd3e'
})
};
fetch('https://api.voice.wixzel.com/v1/phone-numbers/{id}', 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.voice.wixzel.com/v1/phone-numbers/{id}",
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([
'phone_number' => '+14155550100',
'sip_trunk_id' => '6a96a3ead6e886d42462dd3e',
'name' => '<string>',
'inbound_agent_id' => '6a96a3ead6e886d42462dd3e'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.voice.wixzel.com/v1/phone-numbers/{id}"
payload := strings.NewReader("{\n \"phone_number\": \"+14155550100\",\n \"sip_trunk_id\": \"6a96a3ead6e886d42462dd3e\",\n \"name\": \"<string>\",\n \"inbound_agent_id\": \"6a96a3ead6e886d42462dd3e\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.voice.wixzel.com/v1/phone-numbers/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14155550100\",\n \"sip_trunk_id\": \"6a96a3ead6e886d42462dd3e\",\n \"name\": \"<string>\",\n \"inbound_agent_id\": \"6a96a3ead6e886d42462dd3e\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.voice.wixzel.com/v1/phone-numbers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+14155550100\",\n \"sip_trunk_id\": \"6a96a3ead6e886d42462dd3e\",\n \"name\": \"<string>\",\n \"inbound_agent_id\": \"6a96a3ead6e886d42462dd3e\"\n}"
response = http.request(request)
puts response.read_body{
"id": "6a96a3ead6e886d42462dd3e",
"object": "phone_number",
"phone_number": "<string>",
"name": "<string>",
"sip_trunk_id": "6a96a3ead6e886d42462dd3e",
"inbound_agent_id": "6a96a3ead6e886d42462dd3e",
"status": "<string>",
"created_at": "2026-09-01T12:00:00.000Z"
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request_error",
"code": "agent_not_found",
"message": "<string>",
"request_id": "req_01HXYZ...",
"param": "<string>",
"doc_url": "<string>"
}
}
