Check out our upcoming events and meetups! View events →
List all regions and the interfaces that region supports
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const regions = await client.regions.list();
console.log(regions.data);{
"data": [
{
"record_type": "region",
"code": "ashburn-va",
"name": "Ashburn",
"supported_interfaces": [
"wireguard_interface"
],
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
]
}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.
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 regions = await client.regions.list();
console.log(regions.data);{
"data": [
{
"record_type": "region",
"code": "ashburn-va",
"name": "Ashburn",
"supported_interfaces": [
"wireguard_interface"
],
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
]
}