{
"DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5",
"Filter": "active"
}curl -X POST https://api.telegent.com/v1.0/numbers/inventory-report \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5",
"Filter": "active"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/inventory-report"
payload = {
"DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5",
"Filter": "active"
}
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({DistributorId: 'DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5', Filter: 'active'})
};
fetch('https://api.telegent.com/v1.0/numbers/inventory-report', 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/inventory-report",
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([
'DistributorId' => 'DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5',
'Filter' => 'active'
]),
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/inventory-report"
payload := strings.NewReader("{\n \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n \"Filter\": \"active\"\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/inventory-report")
.header("Content-Type", "application/json")
.body("{\n \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n \"Filter\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/inventory-report")
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 \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n \"Filter\": \"active\"\n}"
response = http.request(request)
puts response.read_body{
"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>"
}Numbers Inventory Report
Request a full inventory report for a distributor. Instead of paging through GET /v1.0/numbers/inventory, this endpoint runs a single query and delivers the results asynchronously: a CSV of every number on the account — with its number details — is generated and emailed to the distributor’s admin email.
What this does: Accepts the request and returns 200 OK immediately with no body. The report is generated in the background and emailed to the AdminEmail configured on the distributor (set via POST /v1.0/distributor/create or POST /v1.0/distributor/update). Use it for bulk exports and reconciliation without hammering the paginated inventory endpoint.
Next steps:
- Set or update the recipient —
POST /v1.0/distributor/update - Browse inventory interactively —
GET /v1.0/numbers/inventory
{
"DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5",
"Filter": "active"
}curl -X POST https://api.telegent.com/v1.0/numbers/inventory-report \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5",
"Filter": "active"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/inventory-report"
payload = {
"DistributorId": "DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5",
"Filter": "active"
}
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({DistributorId: 'DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5', Filter: 'active'})
};
fetch('https://api.telegent.com/v1.0/numbers/inventory-report', 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/inventory-report",
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([
'DistributorId' => 'DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5',
'Filter' => 'active'
]),
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/inventory-report"
payload := strings.NewReader("{\n \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n \"Filter\": \"active\"\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/inventory-report")
.header("Content-Type", "application/json")
.body("{\n \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n \"Filter\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/inventory-report")
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 \"DistributorId\": \"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5\",\n \"Filter\": \"active\"\n}"
response = http.request(request)
puts response.read_body{
"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
Distributor ID (DID) to run the inventory report for.
"DID-1e24785ab-3f3c-7db1-89d7-956d80fdnn5"
Status of the numbers to include in the report. Case-insensitive; common synonyms (for example cancel, canceled, deactivate) are also accepted.
active, pending, swapped, parked, cancelled, deactivated "active"
Response
Accepted — the report is generated in the background and emailed to the distributor's admin email. No response body is returned.