Check out our upcoming events and meetups! View events →
List all phone numbers associated with an enterprise for Number Reputation monitoring.
Returns phone numbers with their cached reputation data (if available). Supports pagination and filtering by phone number.
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 reputationPhoneNumberWithReputationData of client.enterprises.reputation.numbers.list(
'6a09cdc3-8948-47f0-aa62-74ac943d6c58',
)) {
console.log(reputationPhoneNumberWithReputationData.id);
}{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "+16035551234",
"enterprise_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"reputation_data": {
"spam_risk": "low",
"spam_category": "<string>",
"maturity_score": 50,
"connection_score": 50,
"engagement_score": 50,
"sentiment_score": 50,
"last_refreshed_at": "2023-11-07T05:31:56Z"
}
}
],
"meta": {
"page_number": 123,
"page_size": 123,
"total_results": 123,
"total_pages": 123
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the enterprise (UUID)
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
Page number (1-indexed)
x >= 1Number of items per page
1 <= x <= 100Filter by specific phone number (E.164 format)
"+16035551234"
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 reputationPhoneNumberWithReputationData of client.enterprises.reputation.numbers.list(
'6a09cdc3-8948-47f0-aa62-74ac943d6c58',
)) {
console.log(reputationPhoneNumberWithReputationData.id);
}{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "+16035551234",
"enterprise_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"reputation_data": {
"spam_risk": "low",
"spam_category": "<string>",
"maturity_score": 50,
"connection_score": 50,
"engagement_score": 50,
"sentiment_score": 50,
"last_refreshed_at": "2023-11-07T05:31:56Z"
}
}
],
"meta": {
"page_number": 123,
"page_size": 123,
"total_results": 123,
"total_pages": 123
}
}