Check out our upcoming events and meetups! View events →
Returns a list of all active phone numbers associated with the given external connection.
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 externalConnectionPhoneNumber of client.externalConnections.phoneNumbers.list(
'1293384261075731499',
)) {
console.log(externalConnectionPhoneNumber.civic_address_id);
}{
"data": [
{
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"telephone_number": "<string>",
"number_id": "<string>",
"civic_address_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayed_country_code": "<string>",
"acquired_capabilities": [
"FirstPartyAppAssignment"
]
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}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.
Identifies the resource.
"1293384261075731499"
Filter parameter for phone numbers (deepObject style). Supports filtering by phone_number, civic_address_id, and location_id with eq/contains operations.
Show child attributes
Consolidated page parameter (deepObject style). Originally: page[size], page[number]
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 externalConnectionPhoneNumber of client.externalConnections.phoneNumbers.list(
'1293384261075731499',
)) {
console.log(externalConnectionPhoneNumber.civic_address_id);
}{
"data": [
{
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"telephone_number": "<string>",
"number_id": "<string>",
"civic_address_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"displayed_country_code": "<string>",
"acquired_capabilities": [
"FirstPartyAppAssignment"
]
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}