Skip to main content
GET
/
regions
JavaScript
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"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Response

Successful response

data
Region · object[]