curl --request PATCH \
--url https://api.lumisreach.com/api/v1/phone-numbers/{id}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_active": true,
"business_name": "<string>",
"business_description": "<string>",
"timezone": "<unknown>",
"call_settings": {
"max_call_duration_seconds": 915,
"recording_enabled": true,
"transcription_enabled": true,
"summary_enabled": true,
"recording_retention_days": 90,
"hd_voice_enabled": true
},
"voice": {
"voice_id": "<string>",
"language": "<string>",
"speed": 1.05,
"greeting_message": "<string>",
"farewell_message": "<string>",
"prompt": "<string>",
"outbound_greeting_message": "<string>",
"outbound_prompt": "<string>"
},
"sms": {
"auto_reply_enabled": true,
"reply_delay_seconds": 150,
"skip_conditions": [
"<string>"
],
"prompt": "<string>",
"language": "<string>",
"stop_on_stop_word": true,
"stop_words": [
"<string>"
],
"stop_after_replies": true,
"max_replies_per_contact": 50
},
"knowledge": {
"knowledge_enabled": true,
"web_search_enabled": true,
"knowledge_base_ids": [
0
],
"faq_ids": [
0
]
},
"qualification": {
"enabled": true,
"contact_info_collection": [],
"questions": [
{
"question_text": "<string>",
"type": "OPEN_ENDED",
"required": false,
"is_qualifying": true,
"id": "<string>",
"options": [
"<string>"
],
"qualifying_answers": [
"<string>"
],
"scale_min": 0,
"scale_max": 0,
"qualifying_min_score": 0
}
]
},
"booking": {
"enabled": true,
"event_type_ids": [
0
],
"confirmation_message": "<string>",
"minimum_notice_minutes": 4503599627370495,
"available_hours": [
{
"start": "<string>",
"end": "<string>"
}
],
"available_days": [
3
]
},
"transfers": {
"primary_transfer_number": "<string>",
"rules": [
{
"priority": 0,
"enabled": true,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>",
"round_robin_numbers": [
"<string>"
],
"webhook_url": "<string>",
"webhook_lead_source": "<string>",
"notify_message": "<string>"
}
],
"office_hours_only": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"office_hours_timezone": null,
"outside_office_hours_message": "<string>"
},
"sms_referrals": [
{
"priority": 0,
"enabled": true,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>"
}
],
"forwarding": {
"forwarding_number": "<string>",
"ring_duration_seconds": 32,
"sequential_targets": [
{
"phone_number": "<string>",
"timeout_seconds": 32,
"active": true,
"id": "<string>",
"label": "<string>"
}
],
"chain_transition_message": "<string>",
"record_human_calls": true,
"office_hours_enabled": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"selected_carrier": "<string>",
"setup_completed": true
},
"ivr": {
"enabled": true,
"greeting": "<string>",
"menus": [
{
"id": "<string>",
"name": "<string>",
"options": [
{
"label": "<string>",
"action": {
"type": "transfer",
"phone_number": "<string>",
"fallback_phone_number": "<string>"
},
"id": "<string>"
}
],
"prompt": "<string>"
}
],
"invalid_input_message": "<string>",
"no_input_message": "<string>",
"transfer_message": "<string>",
"voice_id": "<string>",
"speed": 1,
"timeout_seconds": 9,
"max_attempts": 3,
"fallback": {
"type": "transfer",
"phone_number": "<string>"
}
}
}
'import requests
url = "https://api.lumisreach.com/api/v1/phone-numbers/{id}/config"
payload = {
"name": "<string>",
"is_active": True,
"business_name": "<string>",
"business_description": "<string>",
"timezone": "<unknown>",
"call_settings": {
"max_call_duration_seconds": 915,
"recording_enabled": True,
"transcription_enabled": True,
"summary_enabled": True,
"recording_retention_days": 90,
"hd_voice_enabled": True
},
"voice": {
"voice_id": "<string>",
"language": "<string>",
"speed": 1.05,
"greeting_message": "<string>",
"farewell_message": "<string>",
"prompt": "<string>",
"outbound_greeting_message": "<string>",
"outbound_prompt": "<string>"
},
"sms": {
"auto_reply_enabled": True,
"reply_delay_seconds": 150,
"skip_conditions": ["<string>"],
"prompt": "<string>",
"language": "<string>",
"stop_on_stop_word": True,
"stop_words": ["<string>"],
"stop_after_replies": True,
"max_replies_per_contact": 50
},
"knowledge": {
"knowledge_enabled": True,
"web_search_enabled": True,
"knowledge_base_ids": [0],
"faq_ids": [0]
},
"qualification": {
"enabled": True,
"contact_info_collection": [],
"questions": [
{
"question_text": "<string>",
"type": "OPEN_ENDED",
"required": False,
"is_qualifying": True,
"id": "<string>",
"options": ["<string>"],
"qualifying_answers": ["<string>"],
"scale_min": 0,
"scale_max": 0,
"qualifying_min_score": 0
}
]
},
"booking": {
"enabled": True,
"event_type_ids": [0],
"confirmation_message": "<string>",
"minimum_notice_minutes": 4503599627370495,
"available_hours": [
{
"start": "<string>",
"end": "<string>"
}
],
"available_days": [3]
},
"transfers": {
"primary_transfer_number": "<string>",
"rules": [
{
"priority": 0,
"enabled": True,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>",
"round_robin_numbers": ["<string>"],
"webhook_url": "<string>",
"webhook_lead_source": "<string>",
"notify_message": "<string>"
}
],
"office_hours_only": True,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"office_hours_timezone": None,
"outside_office_hours_message": "<string>"
},
"sms_referrals": [
{
"priority": 0,
"enabled": True,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>"
}
],
"forwarding": {
"forwarding_number": "<string>",
"ring_duration_seconds": 32,
"sequential_targets": [
{
"phone_number": "<string>",
"timeout_seconds": 32,
"active": True,
"id": "<string>",
"label": "<string>"
}
],
"chain_transition_message": "<string>",
"record_human_calls": True,
"office_hours_enabled": True,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"selected_carrier": "<string>",
"setup_completed": True
},
"ivr": {
"enabled": True,
"greeting": "<string>",
"menus": [
{
"id": "<string>",
"name": "<string>",
"options": [
{
"label": "<string>",
"action": {
"type": "transfer",
"phone_number": "<string>",
"fallback_phone_number": "<string>"
},
"id": "<string>"
}
],
"prompt": "<string>"
}
],
"invalid_input_message": "<string>",
"no_input_message": "<string>",
"transfer_message": "<string>",
"voice_id": "<string>",
"speed": 1,
"timeout_seconds": 9,
"max_attempts": 3,
"fallback": {
"type": "transfer",
"phone_number": "<string>"
}
}
}
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({
name: '<string>',
is_active: true,
business_name: '<string>',
business_description: '<string>',
timezone: '<unknown>',
call_settings: {
max_call_duration_seconds: 915,
recording_enabled: true,
transcription_enabled: true,
summary_enabled: true,
recording_retention_days: 90,
hd_voice_enabled: true
},
voice: {
voice_id: '<string>',
language: '<string>',
speed: 1.05,
greeting_message: '<string>',
farewell_message: '<string>',
prompt: '<string>',
outbound_greeting_message: '<string>',
outbound_prompt: '<string>'
},
sms: {
auto_reply_enabled: true,
reply_delay_seconds: 150,
skip_conditions: ['<string>'],
prompt: '<string>',
language: '<string>',
stop_on_stop_word: true,
stop_words: ['<string>'],
stop_after_replies: true,
max_replies_per_contact: 50
},
knowledge: {
knowledge_enabled: true,
web_search_enabled: true,
knowledge_base_ids: [0],
faq_ids: [0]
},
qualification: {
enabled: true,
contact_info_collection: [],
questions: [
{
question_text: '<string>',
type: 'OPEN_ENDED',
required: false,
is_qualifying: true,
id: '<string>',
options: ['<string>'],
qualifying_answers: ['<string>'],
scale_min: 0,
scale_max: 0,
qualifying_min_score: 0
}
]
},
booking: {
enabled: true,
event_type_ids: [0],
confirmation_message: '<string>',
minimum_notice_minutes: 4503599627370495,
available_hours: [{start: '<string>', end: '<string>'}],
available_days: [3]
},
transfers: {
primary_transfer_number: '<string>',
rules: [
{
priority: 0,
enabled: true,
id: '<string>',
custom_condition: '<string>',
target_number: '<string>',
round_robin_numbers: ['<string>'],
webhook_url: '<string>',
webhook_lead_source: '<string>',
notify_message: '<string>'
}
],
office_hours_only: true,
office_hours_start: '<string>',
office_hours_end: '<string>',
office_hours_timezone: null,
outside_office_hours_message: '<string>'
},
sms_referrals: [
{
priority: 0,
enabled: true,
id: '<string>',
custom_condition: '<string>',
target_number: '<string>'
}
],
forwarding: {
forwarding_number: '<string>',
ring_duration_seconds: 32,
sequential_targets: [
{
phone_number: '<string>',
timeout_seconds: 32,
active: true,
id: '<string>',
label: '<string>'
}
],
chain_transition_message: '<string>',
record_human_calls: true,
office_hours_enabled: true,
office_hours_start: '<string>',
office_hours_end: '<string>',
selected_carrier: '<string>',
setup_completed: true
},
ivr: {
enabled: true,
greeting: '<string>',
menus: [
{
id: '<string>',
name: '<string>',
options: [
{
label: '<string>',
action: {type: 'transfer', phone_number: '<string>', fallback_phone_number: '<string>'},
id: '<string>'
}
],
prompt: '<string>'
}
],
invalid_input_message: '<string>',
no_input_message: '<string>',
transfer_message: '<string>',
voice_id: '<string>',
speed: 1,
timeout_seconds: 9,
max_attempts: 3,
fallback: {type: 'transfer', phone_number: '<string>'}
}
})
};
fetch('https://api.lumisreach.com/api/v1/phone-numbers/{id}/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.lumisreach.com/api/v1/phone-numbers/{id}/config",
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([
'name' => '<string>',
'is_active' => true,
'business_name' => '<string>',
'business_description' => '<string>',
'timezone' => '<unknown>',
'call_settings' => [
'max_call_duration_seconds' => 915,
'recording_enabled' => true,
'transcription_enabled' => true,
'summary_enabled' => true,
'recording_retention_days' => 90,
'hd_voice_enabled' => true
],
'voice' => [
'voice_id' => '<string>',
'language' => '<string>',
'speed' => 1.05,
'greeting_message' => '<string>',
'farewell_message' => '<string>',
'prompt' => '<string>',
'outbound_greeting_message' => '<string>',
'outbound_prompt' => '<string>'
],
'sms' => [
'auto_reply_enabled' => true,
'reply_delay_seconds' => 150,
'skip_conditions' => [
'<string>'
],
'prompt' => '<string>',
'language' => '<string>',
'stop_on_stop_word' => true,
'stop_words' => [
'<string>'
],
'stop_after_replies' => true,
'max_replies_per_contact' => 50
],
'knowledge' => [
'knowledge_enabled' => true,
'web_search_enabled' => true,
'knowledge_base_ids' => [
0
],
'faq_ids' => [
0
]
],
'qualification' => [
'enabled' => true,
'contact_info_collection' => [
],
'questions' => [
[
'question_text' => '<string>',
'type' => 'OPEN_ENDED',
'required' => false,
'is_qualifying' => true,
'id' => '<string>',
'options' => [
'<string>'
],
'qualifying_answers' => [
'<string>'
],
'scale_min' => 0,
'scale_max' => 0,
'qualifying_min_score' => 0
]
]
],
'booking' => [
'enabled' => true,
'event_type_ids' => [
0
],
'confirmation_message' => '<string>',
'minimum_notice_minutes' => 4503599627370495,
'available_hours' => [
[
'start' => '<string>',
'end' => '<string>'
]
],
'available_days' => [
3
]
],
'transfers' => [
'primary_transfer_number' => '<string>',
'rules' => [
[
'priority' => 0,
'enabled' => true,
'id' => '<string>',
'custom_condition' => '<string>',
'target_number' => '<string>',
'round_robin_numbers' => [
'<string>'
],
'webhook_url' => '<string>',
'webhook_lead_source' => '<string>',
'notify_message' => '<string>'
]
],
'office_hours_only' => true,
'office_hours_start' => '<string>',
'office_hours_end' => '<string>',
'office_hours_timezone' => null,
'outside_office_hours_message' => '<string>'
],
'sms_referrals' => [
[
'priority' => 0,
'enabled' => true,
'id' => '<string>',
'custom_condition' => '<string>',
'target_number' => '<string>'
]
],
'forwarding' => [
'forwarding_number' => '<string>',
'ring_duration_seconds' => 32,
'sequential_targets' => [
[
'phone_number' => '<string>',
'timeout_seconds' => 32,
'active' => true,
'id' => '<string>',
'label' => '<string>'
]
],
'chain_transition_message' => '<string>',
'record_human_calls' => true,
'office_hours_enabled' => true,
'office_hours_start' => '<string>',
'office_hours_end' => '<string>',
'selected_carrier' => '<string>',
'setup_completed' => true
],
'ivr' => [
'enabled' => true,
'greeting' => '<string>',
'menus' => [
[
'id' => '<string>',
'name' => '<string>',
'options' => [
[
'label' => '<string>',
'action' => [
'type' => 'transfer',
'phone_number' => '<string>',
'fallback_phone_number' => '<string>'
],
'id' => '<string>'
]
],
'prompt' => '<string>'
]
],
'invalid_input_message' => '<string>',
'no_input_message' => '<string>',
'transfer_message' => '<string>',
'voice_id' => '<string>',
'speed' => 1,
'timeout_seconds' => 9,
'max_attempts' => 3,
'fallback' => [
'type' => 'transfer',
'phone_number' => '<string>'
]
]
]),
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.lumisreach.com/api/v1/phone-numbers/{id}/config"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"is_active\": true,\n \"business_name\": \"<string>\",\n \"business_description\": \"<string>\",\n \"timezone\": \"<unknown>\",\n \"call_settings\": {\n \"max_call_duration_seconds\": 915,\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"summary_enabled\": true,\n \"recording_retention_days\": 90,\n \"hd_voice_enabled\": true\n },\n \"voice\": {\n \"voice_id\": \"<string>\",\n \"language\": \"<string>\",\n \"speed\": 1.05,\n \"greeting_message\": \"<string>\",\n \"farewell_message\": \"<string>\",\n \"prompt\": \"<string>\",\n \"outbound_greeting_message\": \"<string>\",\n \"outbound_prompt\": \"<string>\"\n },\n \"sms\": {\n \"auto_reply_enabled\": true,\n \"reply_delay_seconds\": 150,\n \"skip_conditions\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"language\": \"<string>\",\n \"stop_on_stop_word\": true,\n \"stop_words\": [\n \"<string>\"\n ],\n \"stop_after_replies\": true,\n \"max_replies_per_contact\": 50\n },\n \"knowledge\": {\n \"knowledge_enabled\": true,\n \"web_search_enabled\": true,\n \"knowledge_base_ids\": [\n 0\n ],\n \"faq_ids\": [\n 0\n ]\n },\n \"qualification\": {\n \"enabled\": true,\n \"contact_info_collection\": [],\n \"questions\": [\n {\n \"question_text\": \"<string>\",\n \"type\": \"OPEN_ENDED\",\n \"required\": false,\n \"is_qualifying\": true,\n \"id\": \"<string>\",\n \"options\": [\n \"<string>\"\n ],\n \"qualifying_answers\": [\n \"<string>\"\n ],\n \"scale_min\": 0,\n \"scale_max\": 0,\n \"qualifying_min_score\": 0\n }\n ]\n },\n \"booking\": {\n \"enabled\": true,\n \"event_type_ids\": [\n 0\n ],\n \"confirmation_message\": \"<string>\",\n \"minimum_notice_minutes\": 4503599627370495,\n \"available_hours\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"available_days\": [\n 3\n ]\n },\n \"transfers\": {\n \"primary_transfer_number\": \"<string>\",\n \"rules\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\",\n \"round_robin_numbers\": [\n \"<string>\"\n ],\n \"webhook_url\": \"<string>\",\n \"webhook_lead_source\": \"<string>\",\n \"notify_message\": \"<string>\"\n }\n ],\n \"office_hours_only\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"office_hours_timezone\": null,\n \"outside_office_hours_message\": \"<string>\"\n },\n \"sms_referrals\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\"\n }\n ],\n \"forwarding\": {\n \"forwarding_number\": \"<string>\",\n \"ring_duration_seconds\": 32,\n \"sequential_targets\": [\n {\n \"phone_number\": \"<string>\",\n \"timeout_seconds\": 32,\n \"active\": true,\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"chain_transition_message\": \"<string>\",\n \"record_human_calls\": true,\n \"office_hours_enabled\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"selected_carrier\": \"<string>\",\n \"setup_completed\": true\n },\n \"ivr\": {\n \"enabled\": true,\n \"greeting\": \"<string>\",\n \"menus\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"action\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\",\n \"fallback_phone_number\": \"<string>\"\n },\n \"id\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\"\n }\n ],\n \"invalid_input_message\": \"<string>\",\n \"no_input_message\": \"<string>\",\n \"transfer_message\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"speed\": 1,\n \"timeout_seconds\": 9,\n \"max_attempts\": 3,\n \"fallback\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\"\n }\n }\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.lumisreach.com/api/v1/phone-numbers/{id}/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"is_active\": true,\n \"business_name\": \"<string>\",\n \"business_description\": \"<string>\",\n \"timezone\": \"<unknown>\",\n \"call_settings\": {\n \"max_call_duration_seconds\": 915,\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"summary_enabled\": true,\n \"recording_retention_days\": 90,\n \"hd_voice_enabled\": true\n },\n \"voice\": {\n \"voice_id\": \"<string>\",\n \"language\": \"<string>\",\n \"speed\": 1.05,\n \"greeting_message\": \"<string>\",\n \"farewell_message\": \"<string>\",\n \"prompt\": \"<string>\",\n \"outbound_greeting_message\": \"<string>\",\n \"outbound_prompt\": \"<string>\"\n },\n \"sms\": {\n \"auto_reply_enabled\": true,\n \"reply_delay_seconds\": 150,\n \"skip_conditions\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"language\": \"<string>\",\n \"stop_on_stop_word\": true,\n \"stop_words\": [\n \"<string>\"\n ],\n \"stop_after_replies\": true,\n \"max_replies_per_contact\": 50\n },\n \"knowledge\": {\n \"knowledge_enabled\": true,\n \"web_search_enabled\": true,\n \"knowledge_base_ids\": [\n 0\n ],\n \"faq_ids\": [\n 0\n ]\n },\n \"qualification\": {\n \"enabled\": true,\n \"contact_info_collection\": [],\n \"questions\": [\n {\n \"question_text\": \"<string>\",\n \"type\": \"OPEN_ENDED\",\n \"required\": false,\n \"is_qualifying\": true,\n \"id\": \"<string>\",\n \"options\": [\n \"<string>\"\n ],\n \"qualifying_answers\": [\n \"<string>\"\n ],\n \"scale_min\": 0,\n \"scale_max\": 0,\n \"qualifying_min_score\": 0\n }\n ]\n },\n \"booking\": {\n \"enabled\": true,\n \"event_type_ids\": [\n 0\n ],\n \"confirmation_message\": \"<string>\",\n \"minimum_notice_minutes\": 4503599627370495,\n \"available_hours\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"available_days\": [\n 3\n ]\n },\n \"transfers\": {\n \"primary_transfer_number\": \"<string>\",\n \"rules\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\",\n \"round_robin_numbers\": [\n \"<string>\"\n ],\n \"webhook_url\": \"<string>\",\n \"webhook_lead_source\": \"<string>\",\n \"notify_message\": \"<string>\"\n }\n ],\n \"office_hours_only\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"office_hours_timezone\": null,\n \"outside_office_hours_message\": \"<string>\"\n },\n \"sms_referrals\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\"\n }\n ],\n \"forwarding\": {\n \"forwarding_number\": \"<string>\",\n \"ring_duration_seconds\": 32,\n \"sequential_targets\": [\n {\n \"phone_number\": \"<string>\",\n \"timeout_seconds\": 32,\n \"active\": true,\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"chain_transition_message\": \"<string>\",\n \"record_human_calls\": true,\n \"office_hours_enabled\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"selected_carrier\": \"<string>\",\n \"setup_completed\": true\n },\n \"ivr\": {\n \"enabled\": true,\n \"greeting\": \"<string>\",\n \"menus\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"action\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\",\n \"fallback_phone_number\": \"<string>\"\n },\n \"id\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\"\n }\n ],\n \"invalid_input_message\": \"<string>\",\n \"no_input_message\": \"<string>\",\n \"transfer_message\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"speed\": 1,\n \"timeout_seconds\": 9,\n \"max_attempts\": 3,\n \"fallback\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/phone-numbers/{id}/config")
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 \"name\": \"<string>\",\n \"is_active\": true,\n \"business_name\": \"<string>\",\n \"business_description\": \"<string>\",\n \"timezone\": \"<unknown>\",\n \"call_settings\": {\n \"max_call_duration_seconds\": 915,\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"summary_enabled\": true,\n \"recording_retention_days\": 90,\n \"hd_voice_enabled\": true\n },\n \"voice\": {\n \"voice_id\": \"<string>\",\n \"language\": \"<string>\",\n \"speed\": 1.05,\n \"greeting_message\": \"<string>\",\n \"farewell_message\": \"<string>\",\n \"prompt\": \"<string>\",\n \"outbound_greeting_message\": \"<string>\",\n \"outbound_prompt\": \"<string>\"\n },\n \"sms\": {\n \"auto_reply_enabled\": true,\n \"reply_delay_seconds\": 150,\n \"skip_conditions\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"language\": \"<string>\",\n \"stop_on_stop_word\": true,\n \"stop_words\": [\n \"<string>\"\n ],\n \"stop_after_replies\": true,\n \"max_replies_per_contact\": 50\n },\n \"knowledge\": {\n \"knowledge_enabled\": true,\n \"web_search_enabled\": true,\n \"knowledge_base_ids\": [\n 0\n ],\n \"faq_ids\": [\n 0\n ]\n },\n \"qualification\": {\n \"enabled\": true,\n \"contact_info_collection\": [],\n \"questions\": [\n {\n \"question_text\": \"<string>\",\n \"type\": \"OPEN_ENDED\",\n \"required\": false,\n \"is_qualifying\": true,\n \"id\": \"<string>\",\n \"options\": [\n \"<string>\"\n ],\n \"qualifying_answers\": [\n \"<string>\"\n ],\n \"scale_min\": 0,\n \"scale_max\": 0,\n \"qualifying_min_score\": 0\n }\n ]\n },\n \"booking\": {\n \"enabled\": true,\n \"event_type_ids\": [\n 0\n ],\n \"confirmation_message\": \"<string>\",\n \"minimum_notice_minutes\": 4503599627370495,\n \"available_hours\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"available_days\": [\n 3\n ]\n },\n \"transfers\": {\n \"primary_transfer_number\": \"<string>\",\n \"rules\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\",\n \"round_robin_numbers\": [\n \"<string>\"\n ],\n \"webhook_url\": \"<string>\",\n \"webhook_lead_source\": \"<string>\",\n \"notify_message\": \"<string>\"\n }\n ],\n \"office_hours_only\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"office_hours_timezone\": null,\n \"outside_office_hours_message\": \"<string>\"\n },\n \"sms_referrals\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\"\n }\n ],\n \"forwarding\": {\n \"forwarding_number\": \"<string>\",\n \"ring_duration_seconds\": 32,\n \"sequential_targets\": [\n {\n \"phone_number\": \"<string>\",\n \"timeout_seconds\": 32,\n \"active\": true,\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"chain_transition_message\": \"<string>\",\n \"record_human_calls\": true,\n \"office_hours_enabled\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"selected_carrier\": \"<string>\",\n \"setup_completed\": true\n },\n \"ivr\": {\n \"enabled\": true,\n \"greeting\": \"<string>\",\n \"menus\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"action\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\",\n \"fallback_phone_number\": \"<string>\"\n },\n \"id\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\"\n }\n ],\n \"invalid_input_message\": \"<string>\",\n \"no_input_message\": \"<string>\",\n \"transfer_message\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"speed\": 1,\n \"timeout_seconds\": 9,\n \"max_attempts\": 3,\n \"fallback\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"phone_number": "<string>",
"provider": "<string>",
"stack": "t1",
"agent_id": "<string>",
"name": "<string>",
"is_active": true,
"business_name": "<string>",
"business_description": "<string>",
"timezone": "<string>",
"call_settings": {
"max_call_duration_seconds": 915,
"recording_enabled": true,
"transcription_enabled": true,
"summary_enabled": true,
"recording_retention_days": 90,
"hd_voice_enabled": true
},
"voice": {
"voice_id": "<string>",
"voice_model_tier": "standard",
"llm_model": "gpt-5.4-mini",
"language": "<string>",
"speed": 1.05,
"greeting_message": "<string>",
"farewell_message": "<string>",
"prompt": "<string>",
"background_sound": "off",
"outbound_greeting_message": "<string>",
"outbound_prompt": "<string>",
"inherits_workspace_default": true
},
"sms": {
"auto_reply_enabled": true,
"reply_delay_seconds": 150,
"skip_conditions": [
"<string>"
],
"prompt": "<string>",
"language": "<string>",
"llm_model": "gpt-5.4-mini",
"stop_on_stop_word": true,
"stop_words": [
"<string>"
],
"stop_after_replies": true,
"max_replies_per_contact": 50,
"inherits_workspace_default": true
},
"knowledge": {
"knowledge_enabled": true,
"web_search_enabled": true,
"knowledge_base_ids": [
0
],
"faq_ids": [
0
]
},
"qualification": {
"enabled": true,
"contact_info_collection": [
"name"
],
"questions": [
{
"id": "<string>",
"question_text": "<string>",
"type": "OPEN_ENDED",
"required": false,
"is_qualifying": true,
"options": [
"<string>"
],
"qualifying_answers": [
"<string>"
],
"scale_min": 0,
"scale_max": 0,
"qualifying_min_score": 0
}
]
},
"booking": {
"enabled": true,
"event_type_ids": [
0
],
"confirmation_message": "<string>",
"minimum_notice_minutes": 4503599627370495,
"available_hours": [
{
"start": "<string>",
"end": "<string>"
}
],
"available_days": [
3
]
},
"transfers": {
"primary_transfer_number": "<string>",
"rules": [
{
"id": "<string>",
"condition": "human_requested",
"action": "transfer",
"priority": 0,
"enabled": true,
"custom_condition": "<string>",
"target_number": "<string>",
"round_robin_numbers": [
"<string>"
],
"webhook_url": "<string>",
"webhook_lead_source": "<string>",
"notify_message": "<string>"
}
],
"office_hours_only": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"office_hours_timezone": null,
"outside_office_hours_message": "<string>"
},
"sms_referrals": [
{
"id": "<string>",
"condition": "human_requested",
"priority": 0,
"enabled": true,
"custom_condition": "<string>",
"target_number": "<string>"
}
],
"forwarding": {
"phone_config_mode": "lumisreach_number",
"phone_service_type": "cellphone",
"call_handling_mode": "ai_handles_all",
"forwarding_mode": "single_target",
"forwarding_number": "<string>",
"ring_duration_seconds": 32,
"sequential_targets": [
{
"id": "<string>",
"phone_number": "<string>",
"timeout_seconds": 32,
"active": true,
"label": "<string>"
}
],
"chain_transition_message": "<string>",
"record_human_calls": true,
"office_hours_enabled": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"carrier_forwarding_type": "forward_all",
"selected_carrier": "<string>",
"setup_completed": true
},
"ivr": {
"enabled": true,
"greeting": "<string>",
"menus": [
{
"id": "<string>",
"name": "<string>",
"options": [
{
"key": "0",
"label": "<string>",
"action": {
"type": "transfer",
"phone_number": "<string>",
"fallback_phone_number": "<string>"
},
"id": "<string>"
}
],
"prompt": "<string>"
}
],
"invalid_input_message": "<string>",
"no_input_message": "<string>",
"transfer_message": "<string>",
"transfer_caller_id": "business",
"voice_id": "<string>",
"speed": 1,
"timeout_seconds": 9,
"max_attempts": 3,
"fallback": {
"type": "transfer",
"phone_number": "<string>"
}
},
"updated_at": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}Update a number's AI configuration
Changes any setting on the number’s Answer page. Send only what you want to change: inside a section, fields you leave out keep their current value. Lists (transfers.rules, qualification.questions, sms_referrals, forwarding.sequential_targets, ivr.menus) are replaced as a whole, so fetch the config, edit the list, and send it back. Changes apply from the next call or text on both T1 (Twilio + VAPI) and T2 (Telnyx + LiveKit) numbers, exactly as a save in the dashboard does. Returns the full updated configuration.
curl --request PATCH \
--url https://api.lumisreach.com/api/v1/phone-numbers/{id}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_active": true,
"business_name": "<string>",
"business_description": "<string>",
"timezone": "<unknown>",
"call_settings": {
"max_call_duration_seconds": 915,
"recording_enabled": true,
"transcription_enabled": true,
"summary_enabled": true,
"recording_retention_days": 90,
"hd_voice_enabled": true
},
"voice": {
"voice_id": "<string>",
"language": "<string>",
"speed": 1.05,
"greeting_message": "<string>",
"farewell_message": "<string>",
"prompt": "<string>",
"outbound_greeting_message": "<string>",
"outbound_prompt": "<string>"
},
"sms": {
"auto_reply_enabled": true,
"reply_delay_seconds": 150,
"skip_conditions": [
"<string>"
],
"prompt": "<string>",
"language": "<string>",
"stop_on_stop_word": true,
"stop_words": [
"<string>"
],
"stop_after_replies": true,
"max_replies_per_contact": 50
},
"knowledge": {
"knowledge_enabled": true,
"web_search_enabled": true,
"knowledge_base_ids": [
0
],
"faq_ids": [
0
]
},
"qualification": {
"enabled": true,
"contact_info_collection": [],
"questions": [
{
"question_text": "<string>",
"type": "OPEN_ENDED",
"required": false,
"is_qualifying": true,
"id": "<string>",
"options": [
"<string>"
],
"qualifying_answers": [
"<string>"
],
"scale_min": 0,
"scale_max": 0,
"qualifying_min_score": 0
}
]
},
"booking": {
"enabled": true,
"event_type_ids": [
0
],
"confirmation_message": "<string>",
"minimum_notice_minutes": 4503599627370495,
"available_hours": [
{
"start": "<string>",
"end": "<string>"
}
],
"available_days": [
3
]
},
"transfers": {
"primary_transfer_number": "<string>",
"rules": [
{
"priority": 0,
"enabled": true,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>",
"round_robin_numbers": [
"<string>"
],
"webhook_url": "<string>",
"webhook_lead_source": "<string>",
"notify_message": "<string>"
}
],
"office_hours_only": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"office_hours_timezone": null,
"outside_office_hours_message": "<string>"
},
"sms_referrals": [
{
"priority": 0,
"enabled": true,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>"
}
],
"forwarding": {
"forwarding_number": "<string>",
"ring_duration_seconds": 32,
"sequential_targets": [
{
"phone_number": "<string>",
"timeout_seconds": 32,
"active": true,
"id": "<string>",
"label": "<string>"
}
],
"chain_transition_message": "<string>",
"record_human_calls": true,
"office_hours_enabled": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"selected_carrier": "<string>",
"setup_completed": true
},
"ivr": {
"enabled": true,
"greeting": "<string>",
"menus": [
{
"id": "<string>",
"name": "<string>",
"options": [
{
"label": "<string>",
"action": {
"type": "transfer",
"phone_number": "<string>",
"fallback_phone_number": "<string>"
},
"id": "<string>"
}
],
"prompt": "<string>"
}
],
"invalid_input_message": "<string>",
"no_input_message": "<string>",
"transfer_message": "<string>",
"voice_id": "<string>",
"speed": 1,
"timeout_seconds": 9,
"max_attempts": 3,
"fallback": {
"type": "transfer",
"phone_number": "<string>"
}
}
}
'import requests
url = "https://api.lumisreach.com/api/v1/phone-numbers/{id}/config"
payload = {
"name": "<string>",
"is_active": True,
"business_name": "<string>",
"business_description": "<string>",
"timezone": "<unknown>",
"call_settings": {
"max_call_duration_seconds": 915,
"recording_enabled": True,
"transcription_enabled": True,
"summary_enabled": True,
"recording_retention_days": 90,
"hd_voice_enabled": True
},
"voice": {
"voice_id": "<string>",
"language": "<string>",
"speed": 1.05,
"greeting_message": "<string>",
"farewell_message": "<string>",
"prompt": "<string>",
"outbound_greeting_message": "<string>",
"outbound_prompt": "<string>"
},
"sms": {
"auto_reply_enabled": True,
"reply_delay_seconds": 150,
"skip_conditions": ["<string>"],
"prompt": "<string>",
"language": "<string>",
"stop_on_stop_word": True,
"stop_words": ["<string>"],
"stop_after_replies": True,
"max_replies_per_contact": 50
},
"knowledge": {
"knowledge_enabled": True,
"web_search_enabled": True,
"knowledge_base_ids": [0],
"faq_ids": [0]
},
"qualification": {
"enabled": True,
"contact_info_collection": [],
"questions": [
{
"question_text": "<string>",
"type": "OPEN_ENDED",
"required": False,
"is_qualifying": True,
"id": "<string>",
"options": ["<string>"],
"qualifying_answers": ["<string>"],
"scale_min": 0,
"scale_max": 0,
"qualifying_min_score": 0
}
]
},
"booking": {
"enabled": True,
"event_type_ids": [0],
"confirmation_message": "<string>",
"minimum_notice_minutes": 4503599627370495,
"available_hours": [
{
"start": "<string>",
"end": "<string>"
}
],
"available_days": [3]
},
"transfers": {
"primary_transfer_number": "<string>",
"rules": [
{
"priority": 0,
"enabled": True,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>",
"round_robin_numbers": ["<string>"],
"webhook_url": "<string>",
"webhook_lead_source": "<string>",
"notify_message": "<string>"
}
],
"office_hours_only": True,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"office_hours_timezone": None,
"outside_office_hours_message": "<string>"
},
"sms_referrals": [
{
"priority": 0,
"enabled": True,
"id": "<string>",
"custom_condition": "<string>",
"target_number": "<string>"
}
],
"forwarding": {
"forwarding_number": "<string>",
"ring_duration_seconds": 32,
"sequential_targets": [
{
"phone_number": "<string>",
"timeout_seconds": 32,
"active": True,
"id": "<string>",
"label": "<string>"
}
],
"chain_transition_message": "<string>",
"record_human_calls": True,
"office_hours_enabled": True,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"selected_carrier": "<string>",
"setup_completed": True
},
"ivr": {
"enabled": True,
"greeting": "<string>",
"menus": [
{
"id": "<string>",
"name": "<string>",
"options": [
{
"label": "<string>",
"action": {
"type": "transfer",
"phone_number": "<string>",
"fallback_phone_number": "<string>"
},
"id": "<string>"
}
],
"prompt": "<string>"
}
],
"invalid_input_message": "<string>",
"no_input_message": "<string>",
"transfer_message": "<string>",
"voice_id": "<string>",
"speed": 1,
"timeout_seconds": 9,
"max_attempts": 3,
"fallback": {
"type": "transfer",
"phone_number": "<string>"
}
}
}
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({
name: '<string>',
is_active: true,
business_name: '<string>',
business_description: '<string>',
timezone: '<unknown>',
call_settings: {
max_call_duration_seconds: 915,
recording_enabled: true,
transcription_enabled: true,
summary_enabled: true,
recording_retention_days: 90,
hd_voice_enabled: true
},
voice: {
voice_id: '<string>',
language: '<string>',
speed: 1.05,
greeting_message: '<string>',
farewell_message: '<string>',
prompt: '<string>',
outbound_greeting_message: '<string>',
outbound_prompt: '<string>'
},
sms: {
auto_reply_enabled: true,
reply_delay_seconds: 150,
skip_conditions: ['<string>'],
prompt: '<string>',
language: '<string>',
stop_on_stop_word: true,
stop_words: ['<string>'],
stop_after_replies: true,
max_replies_per_contact: 50
},
knowledge: {
knowledge_enabled: true,
web_search_enabled: true,
knowledge_base_ids: [0],
faq_ids: [0]
},
qualification: {
enabled: true,
contact_info_collection: [],
questions: [
{
question_text: '<string>',
type: 'OPEN_ENDED',
required: false,
is_qualifying: true,
id: '<string>',
options: ['<string>'],
qualifying_answers: ['<string>'],
scale_min: 0,
scale_max: 0,
qualifying_min_score: 0
}
]
},
booking: {
enabled: true,
event_type_ids: [0],
confirmation_message: '<string>',
minimum_notice_minutes: 4503599627370495,
available_hours: [{start: '<string>', end: '<string>'}],
available_days: [3]
},
transfers: {
primary_transfer_number: '<string>',
rules: [
{
priority: 0,
enabled: true,
id: '<string>',
custom_condition: '<string>',
target_number: '<string>',
round_robin_numbers: ['<string>'],
webhook_url: '<string>',
webhook_lead_source: '<string>',
notify_message: '<string>'
}
],
office_hours_only: true,
office_hours_start: '<string>',
office_hours_end: '<string>',
office_hours_timezone: null,
outside_office_hours_message: '<string>'
},
sms_referrals: [
{
priority: 0,
enabled: true,
id: '<string>',
custom_condition: '<string>',
target_number: '<string>'
}
],
forwarding: {
forwarding_number: '<string>',
ring_duration_seconds: 32,
sequential_targets: [
{
phone_number: '<string>',
timeout_seconds: 32,
active: true,
id: '<string>',
label: '<string>'
}
],
chain_transition_message: '<string>',
record_human_calls: true,
office_hours_enabled: true,
office_hours_start: '<string>',
office_hours_end: '<string>',
selected_carrier: '<string>',
setup_completed: true
},
ivr: {
enabled: true,
greeting: '<string>',
menus: [
{
id: '<string>',
name: '<string>',
options: [
{
label: '<string>',
action: {type: 'transfer', phone_number: '<string>', fallback_phone_number: '<string>'},
id: '<string>'
}
],
prompt: '<string>'
}
],
invalid_input_message: '<string>',
no_input_message: '<string>',
transfer_message: '<string>',
voice_id: '<string>',
speed: 1,
timeout_seconds: 9,
max_attempts: 3,
fallback: {type: 'transfer', phone_number: '<string>'}
}
})
};
fetch('https://api.lumisreach.com/api/v1/phone-numbers/{id}/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.lumisreach.com/api/v1/phone-numbers/{id}/config",
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([
'name' => '<string>',
'is_active' => true,
'business_name' => '<string>',
'business_description' => '<string>',
'timezone' => '<unknown>',
'call_settings' => [
'max_call_duration_seconds' => 915,
'recording_enabled' => true,
'transcription_enabled' => true,
'summary_enabled' => true,
'recording_retention_days' => 90,
'hd_voice_enabled' => true
],
'voice' => [
'voice_id' => '<string>',
'language' => '<string>',
'speed' => 1.05,
'greeting_message' => '<string>',
'farewell_message' => '<string>',
'prompt' => '<string>',
'outbound_greeting_message' => '<string>',
'outbound_prompt' => '<string>'
],
'sms' => [
'auto_reply_enabled' => true,
'reply_delay_seconds' => 150,
'skip_conditions' => [
'<string>'
],
'prompt' => '<string>',
'language' => '<string>',
'stop_on_stop_word' => true,
'stop_words' => [
'<string>'
],
'stop_after_replies' => true,
'max_replies_per_contact' => 50
],
'knowledge' => [
'knowledge_enabled' => true,
'web_search_enabled' => true,
'knowledge_base_ids' => [
0
],
'faq_ids' => [
0
]
],
'qualification' => [
'enabled' => true,
'contact_info_collection' => [
],
'questions' => [
[
'question_text' => '<string>',
'type' => 'OPEN_ENDED',
'required' => false,
'is_qualifying' => true,
'id' => '<string>',
'options' => [
'<string>'
],
'qualifying_answers' => [
'<string>'
],
'scale_min' => 0,
'scale_max' => 0,
'qualifying_min_score' => 0
]
]
],
'booking' => [
'enabled' => true,
'event_type_ids' => [
0
],
'confirmation_message' => '<string>',
'minimum_notice_minutes' => 4503599627370495,
'available_hours' => [
[
'start' => '<string>',
'end' => '<string>'
]
],
'available_days' => [
3
]
],
'transfers' => [
'primary_transfer_number' => '<string>',
'rules' => [
[
'priority' => 0,
'enabled' => true,
'id' => '<string>',
'custom_condition' => '<string>',
'target_number' => '<string>',
'round_robin_numbers' => [
'<string>'
],
'webhook_url' => '<string>',
'webhook_lead_source' => '<string>',
'notify_message' => '<string>'
]
],
'office_hours_only' => true,
'office_hours_start' => '<string>',
'office_hours_end' => '<string>',
'office_hours_timezone' => null,
'outside_office_hours_message' => '<string>'
],
'sms_referrals' => [
[
'priority' => 0,
'enabled' => true,
'id' => '<string>',
'custom_condition' => '<string>',
'target_number' => '<string>'
]
],
'forwarding' => [
'forwarding_number' => '<string>',
'ring_duration_seconds' => 32,
'sequential_targets' => [
[
'phone_number' => '<string>',
'timeout_seconds' => 32,
'active' => true,
'id' => '<string>',
'label' => '<string>'
]
],
'chain_transition_message' => '<string>',
'record_human_calls' => true,
'office_hours_enabled' => true,
'office_hours_start' => '<string>',
'office_hours_end' => '<string>',
'selected_carrier' => '<string>',
'setup_completed' => true
],
'ivr' => [
'enabled' => true,
'greeting' => '<string>',
'menus' => [
[
'id' => '<string>',
'name' => '<string>',
'options' => [
[
'label' => '<string>',
'action' => [
'type' => 'transfer',
'phone_number' => '<string>',
'fallback_phone_number' => '<string>'
],
'id' => '<string>'
]
],
'prompt' => '<string>'
]
],
'invalid_input_message' => '<string>',
'no_input_message' => '<string>',
'transfer_message' => '<string>',
'voice_id' => '<string>',
'speed' => 1,
'timeout_seconds' => 9,
'max_attempts' => 3,
'fallback' => [
'type' => 'transfer',
'phone_number' => '<string>'
]
]
]),
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.lumisreach.com/api/v1/phone-numbers/{id}/config"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"is_active\": true,\n \"business_name\": \"<string>\",\n \"business_description\": \"<string>\",\n \"timezone\": \"<unknown>\",\n \"call_settings\": {\n \"max_call_duration_seconds\": 915,\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"summary_enabled\": true,\n \"recording_retention_days\": 90,\n \"hd_voice_enabled\": true\n },\n \"voice\": {\n \"voice_id\": \"<string>\",\n \"language\": \"<string>\",\n \"speed\": 1.05,\n \"greeting_message\": \"<string>\",\n \"farewell_message\": \"<string>\",\n \"prompt\": \"<string>\",\n \"outbound_greeting_message\": \"<string>\",\n \"outbound_prompt\": \"<string>\"\n },\n \"sms\": {\n \"auto_reply_enabled\": true,\n \"reply_delay_seconds\": 150,\n \"skip_conditions\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"language\": \"<string>\",\n \"stop_on_stop_word\": true,\n \"stop_words\": [\n \"<string>\"\n ],\n \"stop_after_replies\": true,\n \"max_replies_per_contact\": 50\n },\n \"knowledge\": {\n \"knowledge_enabled\": true,\n \"web_search_enabled\": true,\n \"knowledge_base_ids\": [\n 0\n ],\n \"faq_ids\": [\n 0\n ]\n },\n \"qualification\": {\n \"enabled\": true,\n \"contact_info_collection\": [],\n \"questions\": [\n {\n \"question_text\": \"<string>\",\n \"type\": \"OPEN_ENDED\",\n \"required\": false,\n \"is_qualifying\": true,\n \"id\": \"<string>\",\n \"options\": [\n \"<string>\"\n ],\n \"qualifying_answers\": [\n \"<string>\"\n ],\n \"scale_min\": 0,\n \"scale_max\": 0,\n \"qualifying_min_score\": 0\n }\n ]\n },\n \"booking\": {\n \"enabled\": true,\n \"event_type_ids\": [\n 0\n ],\n \"confirmation_message\": \"<string>\",\n \"minimum_notice_minutes\": 4503599627370495,\n \"available_hours\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"available_days\": [\n 3\n ]\n },\n \"transfers\": {\n \"primary_transfer_number\": \"<string>\",\n \"rules\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\",\n \"round_robin_numbers\": [\n \"<string>\"\n ],\n \"webhook_url\": \"<string>\",\n \"webhook_lead_source\": \"<string>\",\n \"notify_message\": \"<string>\"\n }\n ],\n \"office_hours_only\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"office_hours_timezone\": null,\n \"outside_office_hours_message\": \"<string>\"\n },\n \"sms_referrals\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\"\n }\n ],\n \"forwarding\": {\n \"forwarding_number\": \"<string>\",\n \"ring_duration_seconds\": 32,\n \"sequential_targets\": [\n {\n \"phone_number\": \"<string>\",\n \"timeout_seconds\": 32,\n \"active\": true,\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"chain_transition_message\": \"<string>\",\n \"record_human_calls\": true,\n \"office_hours_enabled\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"selected_carrier\": \"<string>\",\n \"setup_completed\": true\n },\n \"ivr\": {\n \"enabled\": true,\n \"greeting\": \"<string>\",\n \"menus\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"action\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\",\n \"fallback_phone_number\": \"<string>\"\n },\n \"id\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\"\n }\n ],\n \"invalid_input_message\": \"<string>\",\n \"no_input_message\": \"<string>\",\n \"transfer_message\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"speed\": 1,\n \"timeout_seconds\": 9,\n \"max_attempts\": 3,\n \"fallback\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\"\n }\n }\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.lumisreach.com/api/v1/phone-numbers/{id}/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"is_active\": true,\n \"business_name\": \"<string>\",\n \"business_description\": \"<string>\",\n \"timezone\": \"<unknown>\",\n \"call_settings\": {\n \"max_call_duration_seconds\": 915,\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"summary_enabled\": true,\n \"recording_retention_days\": 90,\n \"hd_voice_enabled\": true\n },\n \"voice\": {\n \"voice_id\": \"<string>\",\n \"language\": \"<string>\",\n \"speed\": 1.05,\n \"greeting_message\": \"<string>\",\n \"farewell_message\": \"<string>\",\n \"prompt\": \"<string>\",\n \"outbound_greeting_message\": \"<string>\",\n \"outbound_prompt\": \"<string>\"\n },\n \"sms\": {\n \"auto_reply_enabled\": true,\n \"reply_delay_seconds\": 150,\n \"skip_conditions\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"language\": \"<string>\",\n \"stop_on_stop_word\": true,\n \"stop_words\": [\n \"<string>\"\n ],\n \"stop_after_replies\": true,\n \"max_replies_per_contact\": 50\n },\n \"knowledge\": {\n \"knowledge_enabled\": true,\n \"web_search_enabled\": true,\n \"knowledge_base_ids\": [\n 0\n ],\n \"faq_ids\": [\n 0\n ]\n },\n \"qualification\": {\n \"enabled\": true,\n \"contact_info_collection\": [],\n \"questions\": [\n {\n \"question_text\": \"<string>\",\n \"type\": \"OPEN_ENDED\",\n \"required\": false,\n \"is_qualifying\": true,\n \"id\": \"<string>\",\n \"options\": [\n \"<string>\"\n ],\n \"qualifying_answers\": [\n \"<string>\"\n ],\n \"scale_min\": 0,\n \"scale_max\": 0,\n \"qualifying_min_score\": 0\n }\n ]\n },\n \"booking\": {\n \"enabled\": true,\n \"event_type_ids\": [\n 0\n ],\n \"confirmation_message\": \"<string>\",\n \"minimum_notice_minutes\": 4503599627370495,\n \"available_hours\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"available_days\": [\n 3\n ]\n },\n \"transfers\": {\n \"primary_transfer_number\": \"<string>\",\n \"rules\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\",\n \"round_robin_numbers\": [\n \"<string>\"\n ],\n \"webhook_url\": \"<string>\",\n \"webhook_lead_source\": \"<string>\",\n \"notify_message\": \"<string>\"\n }\n ],\n \"office_hours_only\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"office_hours_timezone\": null,\n \"outside_office_hours_message\": \"<string>\"\n },\n \"sms_referrals\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\"\n }\n ],\n \"forwarding\": {\n \"forwarding_number\": \"<string>\",\n \"ring_duration_seconds\": 32,\n \"sequential_targets\": [\n {\n \"phone_number\": \"<string>\",\n \"timeout_seconds\": 32,\n \"active\": true,\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"chain_transition_message\": \"<string>\",\n \"record_human_calls\": true,\n \"office_hours_enabled\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"selected_carrier\": \"<string>\",\n \"setup_completed\": true\n },\n \"ivr\": {\n \"enabled\": true,\n \"greeting\": \"<string>\",\n \"menus\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"action\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\",\n \"fallback_phone_number\": \"<string>\"\n },\n \"id\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\"\n }\n ],\n \"invalid_input_message\": \"<string>\",\n \"no_input_message\": \"<string>\",\n \"transfer_message\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"speed\": 1,\n \"timeout_seconds\": 9,\n \"max_attempts\": 3,\n \"fallback\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumisreach.com/api/v1/phone-numbers/{id}/config")
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 \"name\": \"<string>\",\n \"is_active\": true,\n \"business_name\": \"<string>\",\n \"business_description\": \"<string>\",\n \"timezone\": \"<unknown>\",\n \"call_settings\": {\n \"max_call_duration_seconds\": 915,\n \"recording_enabled\": true,\n \"transcription_enabled\": true,\n \"summary_enabled\": true,\n \"recording_retention_days\": 90,\n \"hd_voice_enabled\": true\n },\n \"voice\": {\n \"voice_id\": \"<string>\",\n \"language\": \"<string>\",\n \"speed\": 1.05,\n \"greeting_message\": \"<string>\",\n \"farewell_message\": \"<string>\",\n \"prompt\": \"<string>\",\n \"outbound_greeting_message\": \"<string>\",\n \"outbound_prompt\": \"<string>\"\n },\n \"sms\": {\n \"auto_reply_enabled\": true,\n \"reply_delay_seconds\": 150,\n \"skip_conditions\": [\n \"<string>\"\n ],\n \"prompt\": \"<string>\",\n \"language\": \"<string>\",\n \"stop_on_stop_word\": true,\n \"stop_words\": [\n \"<string>\"\n ],\n \"stop_after_replies\": true,\n \"max_replies_per_contact\": 50\n },\n \"knowledge\": {\n \"knowledge_enabled\": true,\n \"web_search_enabled\": true,\n \"knowledge_base_ids\": [\n 0\n ],\n \"faq_ids\": [\n 0\n ]\n },\n \"qualification\": {\n \"enabled\": true,\n \"contact_info_collection\": [],\n \"questions\": [\n {\n \"question_text\": \"<string>\",\n \"type\": \"OPEN_ENDED\",\n \"required\": false,\n \"is_qualifying\": true,\n \"id\": \"<string>\",\n \"options\": [\n \"<string>\"\n ],\n \"qualifying_answers\": [\n \"<string>\"\n ],\n \"scale_min\": 0,\n \"scale_max\": 0,\n \"qualifying_min_score\": 0\n }\n ]\n },\n \"booking\": {\n \"enabled\": true,\n \"event_type_ids\": [\n 0\n ],\n \"confirmation_message\": \"<string>\",\n \"minimum_notice_minutes\": 4503599627370495,\n \"available_hours\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"available_days\": [\n 3\n ]\n },\n \"transfers\": {\n \"primary_transfer_number\": \"<string>\",\n \"rules\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\",\n \"round_robin_numbers\": [\n \"<string>\"\n ],\n \"webhook_url\": \"<string>\",\n \"webhook_lead_source\": \"<string>\",\n \"notify_message\": \"<string>\"\n }\n ],\n \"office_hours_only\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"office_hours_timezone\": null,\n \"outside_office_hours_message\": \"<string>\"\n },\n \"sms_referrals\": [\n {\n \"priority\": 0,\n \"enabled\": true,\n \"id\": \"<string>\",\n \"custom_condition\": \"<string>\",\n \"target_number\": \"<string>\"\n }\n ],\n \"forwarding\": {\n \"forwarding_number\": \"<string>\",\n \"ring_duration_seconds\": 32,\n \"sequential_targets\": [\n {\n \"phone_number\": \"<string>\",\n \"timeout_seconds\": 32,\n \"active\": true,\n \"id\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"chain_transition_message\": \"<string>\",\n \"record_human_calls\": true,\n \"office_hours_enabled\": true,\n \"office_hours_start\": \"<string>\",\n \"office_hours_end\": \"<string>\",\n \"selected_carrier\": \"<string>\",\n \"setup_completed\": true\n },\n \"ivr\": {\n \"enabled\": true,\n \"greeting\": \"<string>\",\n \"menus\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"options\": [\n {\n \"label\": \"<string>\",\n \"action\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\",\n \"fallback_phone_number\": \"<string>\"\n },\n \"id\": \"<string>\"\n }\n ],\n \"prompt\": \"<string>\"\n }\n ],\n \"invalid_input_message\": \"<string>\",\n \"no_input_message\": \"<string>\",\n \"transfer_message\": \"<string>\",\n \"voice_id\": \"<string>\",\n \"speed\": 1,\n \"timeout_seconds\": 9,\n \"max_attempts\": 3,\n \"fallback\": {\n \"type\": \"transfer\",\n \"phone_number\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"phone_number": "<string>",
"provider": "<string>",
"stack": "t1",
"agent_id": "<string>",
"name": "<string>",
"is_active": true,
"business_name": "<string>",
"business_description": "<string>",
"timezone": "<string>",
"call_settings": {
"max_call_duration_seconds": 915,
"recording_enabled": true,
"transcription_enabled": true,
"summary_enabled": true,
"recording_retention_days": 90,
"hd_voice_enabled": true
},
"voice": {
"voice_id": "<string>",
"voice_model_tier": "standard",
"llm_model": "gpt-5.4-mini",
"language": "<string>",
"speed": 1.05,
"greeting_message": "<string>",
"farewell_message": "<string>",
"prompt": "<string>",
"background_sound": "off",
"outbound_greeting_message": "<string>",
"outbound_prompt": "<string>",
"inherits_workspace_default": true
},
"sms": {
"auto_reply_enabled": true,
"reply_delay_seconds": 150,
"skip_conditions": [
"<string>"
],
"prompt": "<string>",
"language": "<string>",
"llm_model": "gpt-5.4-mini",
"stop_on_stop_word": true,
"stop_words": [
"<string>"
],
"stop_after_replies": true,
"max_replies_per_contact": 50,
"inherits_workspace_default": true
},
"knowledge": {
"knowledge_enabled": true,
"web_search_enabled": true,
"knowledge_base_ids": [
0
],
"faq_ids": [
0
]
},
"qualification": {
"enabled": true,
"contact_info_collection": [
"name"
],
"questions": [
{
"id": "<string>",
"question_text": "<string>",
"type": "OPEN_ENDED",
"required": false,
"is_qualifying": true,
"options": [
"<string>"
],
"qualifying_answers": [
"<string>"
],
"scale_min": 0,
"scale_max": 0,
"qualifying_min_score": 0
}
]
},
"booking": {
"enabled": true,
"event_type_ids": [
0
],
"confirmation_message": "<string>",
"minimum_notice_minutes": 4503599627370495,
"available_hours": [
{
"start": "<string>",
"end": "<string>"
}
],
"available_days": [
3
]
},
"transfers": {
"primary_transfer_number": "<string>",
"rules": [
{
"id": "<string>",
"condition": "human_requested",
"action": "transfer",
"priority": 0,
"enabled": true,
"custom_condition": "<string>",
"target_number": "<string>",
"round_robin_numbers": [
"<string>"
],
"webhook_url": "<string>",
"webhook_lead_source": "<string>",
"notify_message": "<string>"
}
],
"office_hours_only": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"office_hours_timezone": null,
"outside_office_hours_message": "<string>"
},
"sms_referrals": [
{
"id": "<string>",
"condition": "human_requested",
"priority": 0,
"enabled": true,
"custom_condition": "<string>",
"target_number": "<string>"
}
],
"forwarding": {
"phone_config_mode": "lumisreach_number",
"phone_service_type": "cellphone",
"call_handling_mode": "ai_handles_all",
"forwarding_mode": "single_target",
"forwarding_number": "<string>",
"ring_duration_seconds": 32,
"sequential_targets": [
{
"id": "<string>",
"phone_number": "<string>",
"timeout_seconds": 32,
"active": true,
"label": "<string>"
}
],
"chain_transition_message": "<string>",
"record_human_calls": true,
"office_hours_enabled": true,
"office_hours_start": "<string>",
"office_hours_end": "<string>",
"carrier_forwarding_type": "forward_all",
"selected_carrier": "<string>",
"setup_completed": true
},
"ivr": {
"enabled": true,
"greeting": "<string>",
"menus": [
{
"id": "<string>",
"name": "<string>",
"options": [
{
"key": "0",
"label": "<string>",
"action": {
"type": "transfer",
"phone_number": "<string>",
"fallback_phone_number": "<string>"
},
"id": "<string>"
}
],
"prompt": "<string>"
}
],
"invalid_input_message": "<string>",
"no_input_message": "<string>",
"transfer_message": "<string>",
"transfer_caller_id": "business",
"voice_id": "<string>",
"speed": 1,
"timeout_seconds": 9,
"max_attempts": 3,
"fallback": {
"type": "transfer",
"phone_number": "<string>"
}
},
"updated_at": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"fields": {},
"doc_url": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
UUID — when present, deduplicates repeat submissions. See /api-reference/idempotency.
Path Parameters
Body
1 - 100false stops the number from answering calls
2002000IANA zone; drives booking hours and office hours
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
50Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Success
Show child attributes
Show child attributes