{
"NumberType": "iot",
"MessageType": "p2p",
"MessageEnabled": true,
"VoiceEnabled": false,
"DataEnabled": true,
"MessageRouteId": "MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a",
"VoiceRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa70dc145",
"AreaCode": "201",
"ZipCode": "84043",
"ICCID": "8901240397190195850",
"ProductType": "Sms+Data",
"AssignedSubscriberId": "TSUID-1234567999"
}curl -X POST https://api.telegent.com/v1.0/numbers/provision \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"NumberType": "iot",
"MessageType": "p2p",
"MessageEnabled": true,
"VoiceEnabled": false,
"DataEnabled": true,
"MessageRouteId": "MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a",
"VoiceRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa70dc145",
"AreaCode": "201",
"ZipCode": "84043",
"ICCID": "8901240397190195850",
"ProductType": "Sms+Data",
"AssignedSubscriberId": "TSUID-1234567999"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/provision"
payload = {
"NumberType": "iot",
"MessageType": "p2p",
"MessageEnabled": True,
"VoiceEnabled": False,
"ProductType": "Sms+Data",
"MmsMessageEnabled": True,
"DataEnabled": True,
"MessageRouteId": "MRID-81dr9t90-....-....-....-..........",
"VoiceRouteId": "CRID-5nov0yuy-....-....-....-.........",
"AreaCode": "201",
"ZipCode": "84043",
"ICCID": "8901240397190195850",
"AssignedSubscriberId": "TSUID-1234567999",
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
}
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({
NumberType: 'iot',
MessageType: 'p2p',
MessageEnabled: true,
VoiceEnabled: false,
ProductType: 'Sms+Data',
MmsMessageEnabled: true,
DataEnabled: true,
MessageRouteId: 'MRID-81dr9t90-....-....-....-..........',
VoiceRouteId: 'CRID-5nov0yuy-....-....-....-.........',
AreaCode: '201',
ZipCode: '84043',
ICCID: '8901240397190195850',
AssignedSubscriberId: 'TSUID-1234567999',
AccountId: 'AID-ab12345-2725-45a1-bd5e-526ed19799xx'
})
};
fetch('https://api.telegent.com/v1.0/numbers/provision', 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/provision",
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([
'NumberType' => 'iot',
'MessageType' => 'p2p',
'MessageEnabled' => true,
'VoiceEnabled' => false,
'ProductType' => 'Sms+Data',
'MmsMessageEnabled' => true,
'DataEnabled' => true,
'MessageRouteId' => 'MRID-81dr9t90-....-....-....-..........',
'VoiceRouteId' => 'CRID-5nov0yuy-....-....-....-.........',
'AreaCode' => '201',
'ZipCode' => '84043',
'ICCID' => '8901240397190195850',
'AssignedSubscriberId' => 'TSUID-1234567999',
'AccountId' => 'AID-ab12345-2725-45a1-bd5e-526ed19799xx'
]),
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/provision"
payload := strings.NewReader("{\n \"NumberType\": \"iot\",\n \"MessageType\": \"p2p\",\n \"MessageEnabled\": true,\n \"VoiceEnabled\": false,\n \"ProductType\": \"Sms+Data\",\n \"MmsMessageEnabled\": true,\n \"DataEnabled\": true,\n \"MessageRouteId\": \"MRID-81dr9t90-....-....-....-..........\",\n \"VoiceRouteId\": \"CRID-5nov0yuy-....-....-....-.........\",\n \"AreaCode\": \"201\",\n \"ZipCode\": \"84043\",\n \"ICCID\": \"8901240397190195850\",\n \"AssignedSubscriberId\": \"TSUID-1234567999\",\n \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\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/provision")
.header("Content-Type", "application/json")
.body("{\n \"NumberType\": \"iot\",\n \"MessageType\": \"p2p\",\n \"MessageEnabled\": true,\n \"VoiceEnabled\": false,\n \"ProductType\": \"Sms+Data\",\n \"MmsMessageEnabled\": true,\n \"DataEnabled\": true,\n \"MessageRouteId\": \"MRID-81dr9t90-....-....-....-..........\",\n \"VoiceRouteId\": \"CRID-5nov0yuy-....-....-....-.........\",\n \"AreaCode\": \"201\",\n \"ZipCode\": \"84043\",\n \"ICCID\": \"8901240397190195850\",\n \"AssignedSubscriberId\": \"TSUID-1234567999\",\n \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/provision")
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 \"NumberType\": \"iot\",\n \"MessageType\": \"p2p\",\n \"MessageEnabled\": true,\n \"VoiceEnabled\": false,\n \"ProductType\": \"Sms+Data\",\n \"MmsMessageEnabled\": true,\n \"DataEnabled\": true,\n \"MessageRouteId\": \"MRID-81dr9t90-....-....-....-..........\",\n \"VoiceRouteId\": \"CRID-5nov0yuy-....-....-....-.........\",\n \"AreaCode\": \"201\",\n \"ZipCode\": \"84043\",\n \"ICCID\": \"8901240397190195850\",\n \"AssignedSubscriberId\": \"TSUID-1234567999\",\n \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
response = http.request(request)
puts response.read_body{
"OrderDate": "2025-10-29T12:36:19.338438+00:00",
"OrderId": "JNUOID-76ba71a8-d7a6-4489-b695-1ad363b8d596",
"OrderStatus": "Complete",
"PhoneNumberAssigned": "+18016025346",
"PhoneNumberId": "NID-8bdf915a-ef65-46c9-8c66-96c98d42d9ca",
"QRCode": "https://quickchart.io/qr?text=LPA:1$T-MOBILE.IDEMIA.IO$LX9G1-Q12VI-CIIWA-WAQIN¢erImageUrl=https://joonto.com/wp-content/uploads/2022/07/cropped-Joonto-2022-Square-Icon-Black-Background.png&ecLevel=H&format=png¢erImageSizeRatio=.3",
"ZipCode": "84603",
"ICCID": "12345678900987654321",
"ErrorMessage": null,
"SubscriberId": "TSUID-ac59a1f8-36b6-42cc-b124-c2aa29f7e3d2"
}{
"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>"
}Number Provision (Purchase/Order)
Rate limit: This endpoint is limited to 1 request per second, separate from the API-wide 120 requests/minute limit. Exceeding it returns HTTP
429 Too Many Requests.
Prerequisites:
- Required: Bearer token —
POST /v1.0/oauth2/tokens - Required: Message Route ID (MRID) —
POST /v1.0/message/routes - Optional: Voice Route ID (CRID) —
POST /v1.0/voice/routes(only needed ifVoiceEnabled: true) - Optional: Subscriber ID (TSUID) —
POST /v1.0/subscribers/create(to assign the number at provision time)
Purchase and activate a phone number on your account. Before provisioning, ensure you have already created a Message Route (MRID) and Voice Route (CRID) — numbers provisioned without routes will have no call or message handling. Specify the number classification (mvno for full messaging and voice, iot for data and p2p messaging only), and required capabilities. Returns an OrderId for status tracking.
What this does: Purchases and activates the number, returning an OrderId, the assigned phone number in E.164 format, a PhoneNumberId (NID-), and an eSIM QR code (if applicable). The OrderId can be used to track provisioning status.
Next steps:
- Check order status —
GET /v1.0/numbers/order - Send a test message —
POST /v1.0/message/outbound
{
"NumberType": "iot",
"MessageType": "p2p",
"MessageEnabled": true,
"VoiceEnabled": false,
"DataEnabled": true,
"MessageRouteId": "MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a",
"VoiceRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa70dc145",
"AreaCode": "201",
"ZipCode": "84043",
"ICCID": "8901240397190195850",
"ProductType": "Sms+Data",
"AssignedSubscriberId": "TSUID-1234567999"
}curl -X POST https://api.telegent.com/v1.0/numbers/provision \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"NumberType": "iot",
"MessageType": "p2p",
"MessageEnabled": true,
"VoiceEnabled": false,
"DataEnabled": true,
"MessageRouteId": "MRID-73af1e73-d7b3-4696-bdd9-5b407c96fc8a",
"VoiceRouteId": "CRID-4dec6beb-3985-444b-8c06-8baa70dc145",
"AreaCode": "201",
"ZipCode": "84043",
"ICCID": "8901240397190195850",
"ProductType": "Sms+Data",
"AssignedSubscriberId": "TSUID-1234567999"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/provision"
payload = {
"NumberType": "iot",
"MessageType": "p2p",
"MessageEnabled": True,
"VoiceEnabled": False,
"ProductType": "Sms+Data",
"MmsMessageEnabled": True,
"DataEnabled": True,
"MessageRouteId": "MRID-81dr9t90-....-....-....-..........",
"VoiceRouteId": "CRID-5nov0yuy-....-....-....-.........",
"AreaCode": "201",
"ZipCode": "84043",
"ICCID": "8901240397190195850",
"AssignedSubscriberId": "TSUID-1234567999",
"AccountId": "AID-ab12345-2725-45a1-bd5e-526ed19799xx"
}
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({
NumberType: 'iot',
MessageType: 'p2p',
MessageEnabled: true,
VoiceEnabled: false,
ProductType: 'Sms+Data',
MmsMessageEnabled: true,
DataEnabled: true,
MessageRouteId: 'MRID-81dr9t90-....-....-....-..........',
VoiceRouteId: 'CRID-5nov0yuy-....-....-....-.........',
AreaCode: '201',
ZipCode: '84043',
ICCID: '8901240397190195850',
AssignedSubscriberId: 'TSUID-1234567999',
AccountId: 'AID-ab12345-2725-45a1-bd5e-526ed19799xx'
})
};
fetch('https://api.telegent.com/v1.0/numbers/provision', 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/provision",
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([
'NumberType' => 'iot',
'MessageType' => 'p2p',
'MessageEnabled' => true,
'VoiceEnabled' => false,
'ProductType' => 'Sms+Data',
'MmsMessageEnabled' => true,
'DataEnabled' => true,
'MessageRouteId' => 'MRID-81dr9t90-....-....-....-..........',
'VoiceRouteId' => 'CRID-5nov0yuy-....-....-....-.........',
'AreaCode' => '201',
'ZipCode' => '84043',
'ICCID' => '8901240397190195850',
'AssignedSubscriberId' => 'TSUID-1234567999',
'AccountId' => 'AID-ab12345-2725-45a1-bd5e-526ed19799xx'
]),
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/provision"
payload := strings.NewReader("{\n \"NumberType\": \"iot\",\n \"MessageType\": \"p2p\",\n \"MessageEnabled\": true,\n \"VoiceEnabled\": false,\n \"ProductType\": \"Sms+Data\",\n \"MmsMessageEnabled\": true,\n \"DataEnabled\": true,\n \"MessageRouteId\": \"MRID-81dr9t90-....-....-....-..........\",\n \"VoiceRouteId\": \"CRID-5nov0yuy-....-....-....-.........\",\n \"AreaCode\": \"201\",\n \"ZipCode\": \"84043\",\n \"ICCID\": \"8901240397190195850\",\n \"AssignedSubscriberId\": \"TSUID-1234567999\",\n \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\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/provision")
.header("Content-Type", "application/json")
.body("{\n \"NumberType\": \"iot\",\n \"MessageType\": \"p2p\",\n \"MessageEnabled\": true,\n \"VoiceEnabled\": false,\n \"ProductType\": \"Sms+Data\",\n \"MmsMessageEnabled\": true,\n \"DataEnabled\": true,\n \"MessageRouteId\": \"MRID-81dr9t90-....-....-....-..........\",\n \"VoiceRouteId\": \"CRID-5nov0yuy-....-....-....-.........\",\n \"AreaCode\": \"201\",\n \"ZipCode\": \"84043\",\n \"ICCID\": \"8901240397190195850\",\n \"AssignedSubscriberId\": \"TSUID-1234567999\",\n \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/provision")
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 \"NumberType\": \"iot\",\n \"MessageType\": \"p2p\",\n \"MessageEnabled\": true,\n \"VoiceEnabled\": false,\n \"ProductType\": \"Sms+Data\",\n \"MmsMessageEnabled\": true,\n \"DataEnabled\": true,\n \"MessageRouteId\": \"MRID-81dr9t90-....-....-....-..........\",\n \"VoiceRouteId\": \"CRID-5nov0yuy-....-....-....-.........\",\n \"AreaCode\": \"201\",\n \"ZipCode\": \"84043\",\n \"ICCID\": \"8901240397190195850\",\n \"AssignedSubscriberId\": \"TSUID-1234567999\",\n \"AccountId\": \"AID-ab12345-2725-45a1-bd5e-526ed19799xx\"\n}"
response = http.request(request)
puts response.read_body{
"OrderDate": "2025-10-29T12:36:19.338438+00:00",
"OrderId": "JNUOID-76ba71a8-d7a6-4489-b695-1ad363b8d596",
"OrderStatus": "Complete",
"PhoneNumberAssigned": "+18016025346",
"PhoneNumberId": "NID-8bdf915a-ef65-46c9-8c66-96c98d42d9ca",
"QRCode": "https://quickchart.io/qr?text=LPA:1$T-MOBILE.IDEMIA.IO$LX9G1-Q12VI-CIIWA-WAQIN¢erImageUrl=https://joonto.com/wp-content/uploads/2022/07/cropped-Joonto-2022-Square-Icon-Black-Background.png&ecLevel=H&format=png¢erImageSizeRatio=.3",
"ZipCode": "84603",
"ICCID": "12345678900987654321",
"ErrorMessage": null,
"SubscriberId": "TSUID-ac59a1f8-36b6-42cc-b124-c2aa29f7e3d2"
}{
"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
Response
Success — returns the order ID, assigned phone number, and provisioning status
The response is of type object.