Check out our upcoming events and meetups! View events →
Return the details of a phone number 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
});
const phoneNumber = await client.externalConnections.phoneNumbers.retrieve('1234567889', {
id: '1293384261075731499',
});
console.log(phoneNumber.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"
]
}
}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"
A phone number's ID via the Telnyx API
"1234567889"
Successful response
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
});
const phoneNumber = await client.externalConnections.phoneNumbers.retrieve('1234567889', {
id: '1293384261075731499',
});
console.log(phoneNumber.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"
]
}
}