List reputation-monitored phone numbers across all enterprises
Convenience alias for GET /v2/enterprises/{enterprise_id}/reputation/numbers that returns numbers across every enterprise you own. Useful when you don’t want to look up the enterprise id first.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const numberListResponse of client.reputation.numbers.list()) {
console.log(numberListResponse.id);
}import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.reputation.numbers.list()
page = page.data[0]
print(page.id)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.Reputation.Numbers.List(context.TODO(), telnyx.ReputationNumberListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.reputation.numbers.NumberListPage;
import com.telnyx.sdk.models.reputation.numbers.NumberListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
NumberListPage page = client.reputation().numbers().list();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.reputation.numbers.list
puts(page)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$page = $client->reputation->numbers->list(
filterEnterpriseID: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
filterPhoneNumberContains: '+16035551234',
filterPhoneNumberEq: '+16035551234',
pageNumber: 1,
pageSize: 20,
);
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx reputation:numbers list \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/reputation/numbers \
--header 'Authorization: Bearer <token>'Authorizations
Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
Query Parameters
1-based page number. Out-of-range values return an empty page with correct meta.
x >= 11
Items per page. Maximum 250; values above are clamped to 250.
1 <= x <= 25020
Partial match on phone number. Must contain at least 5 digits.
"+16035551234"
Filter by enterprise ID.
Exact phone-number match (E.164).
"+16035551234"
Only numbers with this source.
Where the phone number is hosted. telnyx: in your Telnyx inventory. external: a number you own that is hosted with another provider.
telnyx, external "external"
Only numbers with this ownership status. removed lists the numbers that were removed, each with its removal_reason and removed_at; removed numbers are not returned otherwise.
Result of ongoing ownership checks. verified: the number is with the carrier on record. pending_confirmation: the number's carrier changed, or a periodic ownership re-verification is due; confirm you still own it before confirm_by. flagged: a periodic re-verification went unanswered; the number stays monitored and is not removed, but confirm ownership (POST .../ownership_confirm) to return it to verified. removed: the number is no longer monitored; returned by POST .../ownership_confirm with still_own: false, and when listing numbers with filter[ownership_status]=removed.
verified, flagged, pending_confirmation, removed "verified"
Response
Paginated list.
List of reputation-monitored phone numbers, each carrying its current reputation data.
Show child attributes
Show child attributes
JSON:API pagination metadata returned with every paginated list response. Page numbering is 1-based. page_size reports the number of items actually returned in data for this page; the requested size is taken from the page[size] query parameter.
Show child attributes
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const numberListResponse of client.reputation.numbers.list()) {
console.log(numberListResponse.id);
}import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.reputation.numbers.list()
page = page.data[0]
print(page.id)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.Reputation.Numbers.List(context.TODO(), telnyx.ReputationNumberListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.reputation.numbers.NumberListPage;
import com.telnyx.sdk.models.reputation.numbers.NumberListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
NumberListPage page = client.reputation().numbers().list();
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.reputation.numbers.list
puts(page)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$page = $client->reputation->numbers->list(
filterEnterpriseID: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
filterPhoneNumberContains: '+16035551234',
filterPhoneNumberEq: '+16035551234',
pageNumber: 1,
pageSize: 20,
);
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx reputation:numbers list \
--api-key 'My API Key'curl --request GET \
--url https://api.telnyx.com/v2/reputation/numbers \
--header 'Authorization: Bearer <token>'