json
{
"PhoneNumber": "+12345678901",
"AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
"Street1": "Street 1",
"Street2": "",
"City": "Lehi",
"State": "UT",
"Zip": "84041"
}curl -X POST https://api.telegent.com/v1.0/numbers/e911address/update \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"PhoneNumber": "+12345678901",
"AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
"Street1": "Street 1",
"Street2": "",
"City": "Lehi",
"State": "UT",
"Zip": "84041"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/e911address/update"
payload = {
"PhoneNumber": "+12345678901",
"AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
"Street1": "Street 1",
"Street2": "",
"City": "Lehi",
"State": "UT",
"Zip": "84041"
}
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({
PhoneNumber: '+12345678901',
AccountId: 'AID-eab92510-1040-45a5-bb9c-xxxx',
Street1: 'Street 1',
Street2: '',
City: 'Lehi',
State: 'UT',
Zip: '84041'
})
};
fetch('https://api.telegent.com/v1.0/numbers/e911address/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/numbers/e911address/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([
'PhoneNumber' => '+12345678901',
'AccountId' => 'AID-eab92510-1040-45a5-bb9c-xxxx',
'Street1' => 'Street 1',
'Street2' => '',
'City' => 'Lehi',
'State' => 'UT',
'Zip' => '84041'
]),
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/numbers/e911address/update"
payload := strings.NewReader("{\n \"PhoneNumber\": \"+12345678901\",\n \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n \"Street1\": \"Street 1\",\n \"Street2\": \"\",\n \"City\": \"Lehi\",\n \"State\": \"UT\",\n \"Zip\": \"84041\"\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/numbers/e911address/update")
.header("Content-Type", "application/json")
.body("{\n \"PhoneNumber\": \"+12345678901\",\n \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n \"Street1\": \"Street 1\",\n \"Street2\": \"\",\n \"City\": \"Lehi\",\n \"State\": \"UT\",\n \"Zip\": \"84041\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/e911address/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 \"PhoneNumber\": \"+12345678901\",\n \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n \"Street1\": \"Street 1\",\n \"Street2\": \"\",\n \"City\": \"Lehi\",\n \"State\": \"UT\",\n \"Zip\": \"84041\"\n}"
response = http.request(request)
puts response.read_body{
"PhoneNumber": "+12345678901",
"Status": "Success",
"StatusMessage": ""
}{
"StatusCode": 400,
"Message": "Bad request: one or more required fields are missing or contain an invalid value."
}{
"StatusCode": 401,
"Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
}{
"StatusCode": 403,
"Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
}{
"StatusCode": 404,
"Message": "Not found: the requested resource does not exist or belongs to a different account."
}{
"StatusCode": 405,
"Message": "Method not allowed: verify the HTTP method required for this endpoint."
}{
"StatusCode": 408,
"Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
}{
"StatusCode": 429,
"Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
}{
"StatusCode": 500,
"Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
}{
"StatusCode": 503,
"Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
}{
"StatusCode": 504,
"Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
}Numbers
Numbers - Update E911 Address
Register or update the E911 emergency address for a phone number. This address is provided to emergency services when a 911 call is placed from the specified number. Ensure the address is accurate and matches a valid MSAG (Master Street Address Guide) location.
What this does: Sets or updates the E911 service address associated with the given phone number.
Next steps:
- Verify the updated address —
GET /v1.0/numbers/e911address
POST
/
v1.0
/
numbers
/
e911address
/
update
json
{
"PhoneNumber": "+12345678901",
"AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
"Street1": "Street 1",
"Street2": "",
"City": "Lehi",
"State": "UT",
"Zip": "84041"
}curl -X POST https://api.telegent.com/v1.0/numbers/e911address/update \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"PhoneNumber": "+12345678901",
"AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
"Street1": "Street 1",
"Street2": "",
"City": "Lehi",
"State": "UT",
"Zip": "84041"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/e911address/update"
payload = {
"PhoneNumber": "+12345678901",
"AccountId": "AID-eab92510-1040-45a5-bb9c-xxxx",
"Street1": "Street 1",
"Street2": "",
"City": "Lehi",
"State": "UT",
"Zip": "84041"
}
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({
PhoneNumber: '+12345678901',
AccountId: 'AID-eab92510-1040-45a5-bb9c-xxxx',
Street1: 'Street 1',
Street2: '',
City: 'Lehi',
State: 'UT',
Zip: '84041'
})
};
fetch('https://api.telegent.com/v1.0/numbers/e911address/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/numbers/e911address/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([
'PhoneNumber' => '+12345678901',
'AccountId' => 'AID-eab92510-1040-45a5-bb9c-xxxx',
'Street1' => 'Street 1',
'Street2' => '',
'City' => 'Lehi',
'State' => 'UT',
'Zip' => '84041'
]),
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/numbers/e911address/update"
payload := strings.NewReader("{\n \"PhoneNumber\": \"+12345678901\",\n \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n \"Street1\": \"Street 1\",\n \"Street2\": \"\",\n \"City\": \"Lehi\",\n \"State\": \"UT\",\n \"Zip\": \"84041\"\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/numbers/e911address/update")
.header("Content-Type", "application/json")
.body("{\n \"PhoneNumber\": \"+12345678901\",\n \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n \"Street1\": \"Street 1\",\n \"Street2\": \"\",\n \"City\": \"Lehi\",\n \"State\": \"UT\",\n \"Zip\": \"84041\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/e911address/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 \"PhoneNumber\": \"+12345678901\",\n \"AccountId\": \"AID-eab92510-1040-45a5-bb9c-xxxx\",\n \"Street1\": \"Street 1\",\n \"Street2\": \"\",\n \"City\": \"Lehi\",\n \"State\": \"UT\",\n \"Zip\": \"84041\"\n}"
response = http.request(request)
puts response.read_body{
"PhoneNumber": "+12345678901",
"Status": "Success",
"StatusMessage": ""
}{
"StatusCode": 400,
"Message": "Bad request: one or more required fields are missing or contain an invalid value."
}{
"StatusCode": 401,
"Message": "Unauthorized: Bearer token is missing, expired, or invalid. Re-authenticate via POST /v1.0/oauth2/tokens."
}{
"StatusCode": 403,
"Message": "Forbidden: your token does not have permission to access this resource. Check the ApiEndpoint scope."
}{
"StatusCode": 404,
"Message": "Not found: the requested resource does not exist or belongs to a different account."
}{
"StatusCode": 405,
"Message": "Method not allowed: verify the HTTP method required for this endpoint."
}{
"StatusCode": 408,
"Message": "Request timeout: the server did not receive a complete request within the allowed time. Retry with exponential backoff."
}{
"StatusCode": 429,
"Message": "Too many requests: rate limit exceeded. Slow your request cadence and retry after a short delay."
}{
"StatusCode": 500,
"Message": "Internal server error: an unexpected error occurred. If the problem persists contact support@telegent.com."
}{
"StatusCode": 503,
"Message": "Service unavailable: the API is temporarily unavailable. Retry after a short delay."
}{
"StatusCode": 504,
"Message": "Gateway timeout: an upstream service did not respond in time. Retry with exponential backoff."
}Body
application/json
E911 address update request
E.164-formatted phone number (e.g. +12345678901)
Primary street address line
City name
Two-letter US state abbreviation (e.g. UT)
ZIP or ZIP+4 postal code
Account identifier. Required for Distributors managing multiple accounts.
Secondary address line (suite, unit, etc.). Optional.
Response
E911 address updated successfully
The response is of type object.
⌘I