Regions API

Regions API

List all Regions

List all regions and the interfaces that region supports

SecuritybearerAuth
Responses
200

Successful response

Response Schema: application/json
Array of objects (Region)
Array
code
string

A code for the region.

created_at
string

ISO 8601 formatted date-time indicating when the resource was created.

name
string

A name for the region.

record_type
string

Identifies the type of the resource.

supported_interfaces
Array of strings

List of interface types supported in this region.

updated_at
string

ISO 8601 formatted date-time indicating when the resource was updated.

default

Unexpected error

Response Schema: application/json
Array of objects (Error)
Array
code
required
string <int>
detail
string
meta
object
object
title
required
string
get/regions
Request samples
import telnyx
telnyx.api_key = "YOUR_API_KEY"

telnyx.Region.list()
Response samples
application/json
{
  • "data": [
    • {
      • "code": "ashburn-va",
      • "created_at": "2018-02-02T22:25:27.521Z",
      • "name": "Ashburn",
      • "record_type": "region",
      • "supported_interfaces": [
        • "wireguard_interface"
        ],
      • "updated_at": "2018-02-02T22:25:27.521Z"
      }
    ]
}