Skip to main content
GET
/
external_connections
/
{id}
/
phone_numbers
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const phoneNumbers = await client.externalConnections.phoneNumbers.list('id');

console.log(phoneNumbers.data);
{
  "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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<int64>
required

Identifies the resource.

Example:

"1293384261075731499"

Query Parameters

filter
object

Filter parameter for phone numbers (deepObject style). Supports filtering by phone_number, civic_address_id, and location_id with eq/contains operations.

page
object

Consolidated page parameter (deepObject style). Originally: page[size], page[number]

Response

Successful response

data
Phone number details with relation to an external connection · object[]
meta
object