{
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": true,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageAuthenticationType": null,
"CallbackMessageUsername": null,
"CallbackMessagePasswordToken": null,
"InboundBypass": true,
"OutboundBypass": true,
"IntelligentRouteEnabled": true,
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
}curl -X POST https://api.telegent.com/v1.0/message/routes/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": true,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageAuthenticationType": null,
"CallbackMessageUsername": null,
"CallbackMessagePasswordToken": null,
"InboundBypass": true,
"OutboundBypass": true,
"IntelligentRouteEnabled": true,
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
}'import requests
url = "https://api.telegent.com/v1.0/message/routes/update"
payload = {
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": True,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageUsername": "<string>",
"CallbackMessagePasswordToken": "<string>",
"InboundBypass": True,
"OutboundBypass": True,
"IntelligentRouteEnabled": True,
"AccountId": "DID-eab92510-1040-45a5-bb9c-0bad927SDY878W"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
MessageRouteId: 'MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9',
RouteName: 'Main SMS Webhook',
MessageUrl: 'https://apiendpoint.com',
MessageUrlMethod: 'GET',
MessageRouteEnabled: true,
MessageAuthenticationType: 'Basic',
MessageUsername: 'admin',
MessagePasswordToken: 'passwordORbearerToken',
CallbackMessageUrl: 'https://apiendpoint.com',
CallbackMessageUrlMethod: 'POST',
CallbackMessageUsername: '<string>',
CallbackMessagePasswordToken: '<string>',
InboundBypass: true,
OutboundBypass: true,
IntelligentRouteEnabled: true,
AccountId: 'DID-eab92510-1040-45a5-bb9c-0bad927SDY878W'
})
};
fetch('https://api.telegent.com/v1.0/message/routes/update', 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.telegent.com/v1.0/message/routes/update",
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([
'MessageRouteId' => 'MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9',
'RouteName' => 'Main SMS Webhook',
'MessageUrl' => 'https://apiendpoint.com',
'MessageUrlMethod' => 'GET',
'MessageRouteEnabled' => true,
'MessageAuthenticationType' => 'Basic',
'MessageUsername' => 'admin',
'MessagePasswordToken' => 'passwordORbearerToken',
'CallbackMessageUrl' => 'https://apiendpoint.com',
'CallbackMessageUrlMethod' => 'POST',
'CallbackMessageUsername' => '<string>',
'CallbackMessagePasswordToken' => '<string>',
'InboundBypass' => true,
'OutboundBypass' => true,
'IntelligentRouteEnabled' => true,
'AccountId' => 'DID-eab92510-1040-45a5-bb9c-0bad927SDY878W'
]),
CURLOPT_HTTPHEADER => [
"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.telegent.com/v1.0/message/routes/update"
payload := strings.NewReader("{\n \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n \"RouteName\": \"Main SMS Webhook\",\n \"MessageUrl\": \"https://apiendpoint.com\",\n \"MessageUrlMethod\": \"GET\",\n \"MessageRouteEnabled\": true,\n \"MessageAuthenticationType\": \"Basic\",\n \"MessageUsername\": \"admin\",\n \"MessagePasswordToken\": \"passwordORbearerToken\",\n \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n \"CallbackMessageUrlMethod\": \"POST\",\n \"CallbackMessageUsername\": \"<string>\",\n \"CallbackMessagePasswordToken\": \"<string>\",\n \"InboundBypass\": true,\n \"OutboundBypass\": true,\n \"IntelligentRouteEnabled\": true,\n \"AccountId\": \"DID-eab92510-1040-45a5-bb9c-0bad927SDY878W\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.telegent.com/v1.0/message/routes/update")
.header("Content-Type", "application/json")
.body("{\n \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n \"RouteName\": \"Main SMS Webhook\",\n \"MessageUrl\": \"https://apiendpoint.com\",\n \"MessageUrlMethod\": \"GET\",\n \"MessageRouteEnabled\": true,\n \"MessageAuthenticationType\": \"Basic\",\n \"MessageUsername\": \"admin\",\n \"MessagePasswordToken\": \"passwordORbearerToken\",\n \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n \"CallbackMessageUrlMethod\": \"POST\",\n \"CallbackMessageUsername\": \"<string>\",\n \"CallbackMessagePasswordToken\": \"<string>\",\n \"InboundBypass\": true,\n \"OutboundBypass\": true,\n \"IntelligentRouteEnabled\": true,\n \"AccountId\": \"DID-eab92510-1040-45a5-bb9c-0bad927SDY878W\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/message/routes/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n \"RouteName\": \"Main SMS Webhook\",\n \"MessageUrl\": \"https://apiendpoint.com\",\n \"MessageUrlMethod\": \"GET\",\n \"MessageRouteEnabled\": true,\n \"MessageAuthenticationType\": \"Basic\",\n \"MessageUsername\": \"admin\",\n \"MessagePasswordToken\": \"passwordORbearerToken\",\n \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n \"CallbackMessageUrlMethod\": \"POST\",\n \"CallbackMessageUsername\": \"<string>\",\n \"CallbackMessagePasswordToken\": \"<string>\",\n \"InboundBypass\": true,\n \"OutboundBypass\": true,\n \"IntelligentRouteEnabled\": true,\n \"AccountId\": \"DID-eab92510-1040-45a5-bb9c-0bad927SDY878W\"\n}"
response = http.request(request)
puts response.read_body{
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": true,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageAuthenticationType": null,
"CallbackMessageUsername": null,
"CallbackMessagePasswordToken": null
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Update Message Route
Update an existing message route’s configuration including webhook URLs, HTTP methods, and timeout settings. Changes apply immediately to all numbers using this route.
What this does: Returns the updated route configuration. Only the fields you send are changed; omitted fields retain their current values. Changes apply immediately to all numbers using this route — no re-provisioning needed.
Next steps:
- Confirm the update —
GET /v1.0/message/routes - View numbers using this route —
GET /v1.0/numbers/inventory
{
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": true,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageAuthenticationType": null,
"CallbackMessageUsername": null,
"CallbackMessagePasswordToken": null,
"InboundBypass": true,
"OutboundBypass": true,
"IntelligentRouteEnabled": true,
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
}curl -X POST https://api.telegent.com/v1.0/message/routes/update \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": true,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageAuthenticationType": null,
"CallbackMessageUsername": null,
"CallbackMessagePasswordToken": null,
"InboundBypass": true,
"OutboundBypass": true,
"IntelligentRouteEnabled": true,
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
}'import requests
url = "https://api.telegent.com/v1.0/message/routes/update"
payload = {
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": True,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageUsername": "<string>",
"CallbackMessagePasswordToken": "<string>",
"InboundBypass": True,
"OutboundBypass": True,
"IntelligentRouteEnabled": True,
"AccountId": "DID-eab92510-1040-45a5-bb9c-0bad927SDY878W"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
MessageRouteId: 'MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9',
RouteName: 'Main SMS Webhook',
MessageUrl: 'https://apiendpoint.com',
MessageUrlMethod: 'GET',
MessageRouteEnabled: true,
MessageAuthenticationType: 'Basic',
MessageUsername: 'admin',
MessagePasswordToken: 'passwordORbearerToken',
CallbackMessageUrl: 'https://apiendpoint.com',
CallbackMessageUrlMethod: 'POST',
CallbackMessageUsername: '<string>',
CallbackMessagePasswordToken: '<string>',
InboundBypass: true,
OutboundBypass: true,
IntelligentRouteEnabled: true,
AccountId: 'DID-eab92510-1040-45a5-bb9c-0bad927SDY878W'
})
};
fetch('https://api.telegent.com/v1.0/message/routes/update', 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.telegent.com/v1.0/message/routes/update",
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([
'MessageRouteId' => 'MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9',
'RouteName' => 'Main SMS Webhook',
'MessageUrl' => 'https://apiendpoint.com',
'MessageUrlMethod' => 'GET',
'MessageRouteEnabled' => true,
'MessageAuthenticationType' => 'Basic',
'MessageUsername' => 'admin',
'MessagePasswordToken' => 'passwordORbearerToken',
'CallbackMessageUrl' => 'https://apiendpoint.com',
'CallbackMessageUrlMethod' => 'POST',
'CallbackMessageUsername' => '<string>',
'CallbackMessagePasswordToken' => '<string>',
'InboundBypass' => true,
'OutboundBypass' => true,
'IntelligentRouteEnabled' => true,
'AccountId' => 'DID-eab92510-1040-45a5-bb9c-0bad927SDY878W'
]),
CURLOPT_HTTPHEADER => [
"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.telegent.com/v1.0/message/routes/update"
payload := strings.NewReader("{\n \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n \"RouteName\": \"Main SMS Webhook\",\n \"MessageUrl\": \"https://apiendpoint.com\",\n \"MessageUrlMethod\": \"GET\",\n \"MessageRouteEnabled\": true,\n \"MessageAuthenticationType\": \"Basic\",\n \"MessageUsername\": \"admin\",\n \"MessagePasswordToken\": \"passwordORbearerToken\",\n \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n \"CallbackMessageUrlMethod\": \"POST\",\n \"CallbackMessageUsername\": \"<string>\",\n \"CallbackMessagePasswordToken\": \"<string>\",\n \"InboundBypass\": true,\n \"OutboundBypass\": true,\n \"IntelligentRouteEnabled\": true,\n \"AccountId\": \"DID-eab92510-1040-45a5-bb9c-0bad927SDY878W\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.telegent.com/v1.0/message/routes/update")
.header("Content-Type", "application/json")
.body("{\n \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n \"RouteName\": \"Main SMS Webhook\",\n \"MessageUrl\": \"https://apiendpoint.com\",\n \"MessageUrlMethod\": \"GET\",\n \"MessageRouteEnabled\": true,\n \"MessageAuthenticationType\": \"Basic\",\n \"MessageUsername\": \"admin\",\n \"MessagePasswordToken\": \"passwordORbearerToken\",\n \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n \"CallbackMessageUrlMethod\": \"POST\",\n \"CallbackMessageUsername\": \"<string>\",\n \"CallbackMessagePasswordToken\": \"<string>\",\n \"InboundBypass\": true,\n \"OutboundBypass\": true,\n \"IntelligentRouteEnabled\": true,\n \"AccountId\": \"DID-eab92510-1040-45a5-bb9c-0bad927SDY878W\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/message/routes/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"MessageRouteId\": \"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9\",\n \"RouteName\": \"Main SMS Webhook\",\n \"MessageUrl\": \"https://apiendpoint.com\",\n \"MessageUrlMethod\": \"GET\",\n \"MessageRouteEnabled\": true,\n \"MessageAuthenticationType\": \"Basic\",\n \"MessageUsername\": \"admin\",\n \"MessagePasswordToken\": \"passwordORbearerToken\",\n \"CallbackMessageUrl\": \"https://apiendpoint.com\",\n \"CallbackMessageUrlMethod\": \"POST\",\n \"CallbackMessageUsername\": \"<string>\",\n \"CallbackMessagePasswordToken\": \"<string>\",\n \"InboundBypass\": true,\n \"OutboundBypass\": true,\n \"IntelligentRouteEnabled\": true,\n \"AccountId\": \"DID-eab92510-1040-45a5-bb9c-0bad927SDY878W\"\n}"
response = http.request(request)
puts response.read_body{
"MessageRouteId": "MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9",
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx",
"RouteName": "Main SMS Webhook",
"MessageUrl": "https://apiendpoint.com",
"MessageUrlMethod": "GET",
"MessageRouteEnabled": true,
"MessageAuthenticationType": "Basic",
"MessageUsername": "admin",
"MessagePasswordToken": "passwordORbearerToken",
"CallbackMessageUrl": "https://apiendpoint.com",
"CallbackMessageUrlMethod": "POST",
"CallbackMessageAuthenticationType": null,
"CallbackMessageUsername": null,
"CallbackMessagePasswordToken": null
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Body
Message Route ID to update
"MRID-01711e7e-c158-4de7-831f-673ab9fdaaa9"
Friendly name for the message route
"Main SMS Webhook"
Primary webhook URL
"https://apiendpoint.com"
HTTP method
GET, POST "GET"
Enable/disable route
true
Authentication type
None, Basic, Bearer "Basic"
Username for Basic auth
"admin"
Password or Bearer token
"passwordORbearerToken"
Callback webhook URL
"https://apiendpoint.com"
Callback HTTP method
GET, POST "POST"
Callback authentication type
None, Basic, Bearer Callback username
Callback password/token
Bypass AI Guardian filtering for inbound messages on this route
true
Bypass AI Guardian filtering for outbound messages on this route
true
Enable intelligent routing features (AI-assisted message routing)
true
Account ID associated with this message route
"DID-eab92510-1040-45a5-bb9c-0bad927SDY878W"
Response
Update Message Route
The response is of type object.