curl --request GET \
--url https://api.pyai.com/v1/managed-tenants/numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pyai.com/v1/managed-tenants/numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pyai.com/v1/managed-tenants/numbers', 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.pyai.com/v1/managed-tenants/numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pyai.com/v1/managed-tenants/numbers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pyai.com/v1/managed-tenants/numbers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pyai.com/v1/managed-tenants/numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "managed_tenant_number",
"version": "managed-tenant/v1",
"operation_id": "<string>",
"external_workspace_id": "<string>",
"request_hash": "<string>",
"idempotency_key": "<string>",
"child_org_id": "<string>",
"project_id": "<string>",
"inbound_active": true,
"number": {}
}Recover one exact managed owned-number import
Authenticated exact lookup under the same current parent integration and company-account allowance. The mapped child and original number must remain active. Performs no carrier call or mutation. This is not an adoption, list or number search endpoint. Require both returned request_hash and idempotency_key to match the original durable journal before accepting the number. The hash is lowercase SHA-256 of UTF-8 JSON.stringify with normalized keys in this exact order: externalWorkspaceId, providerNumberId, phoneNumber. Values are the exact validated external_workspace_id, provider_number_id and phone_number without trimming, case conversion or defaults. A changed operation key or input cannot adopt an earlier import.
curl --request GET \
--url https://api.pyai.com/v1/managed-tenants/numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pyai.com/v1/managed-tenants/numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pyai.com/v1/managed-tenants/numbers', 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.pyai.com/v1/managed-tenants/numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pyai.com/v1/managed-tenants/numbers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pyai.com/v1/managed-tenants/numbers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pyai.com/v1/managed-tenants/numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "managed_tenant_number",
"version": "managed-tenant/v1",
"operation_id": "<string>",
"external_workspace_id": "<string>",
"request_hash": "<string>",
"idempotency_key": "<string>",
"child_org_id": "<string>",
"project_id": "<string>",
"inbound_active": true,
"number": {}
}Authorizations
Query Parameters
Response
The original number and immutable recovery proof.