Test VoIP push notifications for Telnyx WebRTC iOS (APNs) and Android (FCM) apps. Use when debugging push notification delivery, validating certificate/credential setup, or testing that a device receives VoIP pushes correctly.
中文简介正在准备中。当前显示原文说明。
Configure private networks, WireGuard VPN gateways, internet gateways, and virtual cross connects. This skill provides Ruby SDK examples.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
gem install telnyx
require "telnyx"
client = Telnyx::Client.new(
api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
public_key: ENV["TELNYX_PUBLIC_KEY"], # Required for client.webhooks.unwrap (webhook verification)
)
All examples below assume client is already initialized as shown above.
All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:
begin
result = client.messages.send_(to: "+13125550001", from: "+13125550002", text: "Hello")
rescue Telnyx::Errors::APIConnectionError
puts "Network error — check connectivity and retry"
raise
rescue Telnyx::Errors::RateLimitError
# 429: rate limited — wait, then retry the request (bounded exponential backoff)
sleep(1) # Check Retry-After header for actual delay
# ...retry the call here (give up after a few attempts); otherwise re-raise:
raise
rescue Telnyx::Errors::APIStatusError => e
puts "API error #{e.status}: #{e.message}"
if e.status == 422
puts "Validation error — check required fields and formats"
end
raise # A failed request must never look like success to the caller
end
Common error codes: 401 invalid API key, 403 insufficient permissions,
404 resource not found, 422 validation error (check field formats),
429 rate limited (retry with exponential backoff).
.auto_paging_each for automatic iteration: page.auto_paging_each { |item| puts item.id }.Retrieve a paginated list of clustering tasks and their statuses.
GET /ai/clusters
page = client.ai.clusters.list
puts(page)
Returns: bucket (string), created_at (date-time), finished_at (date-time), min_cluster_size (integer), min_subcluster_size (integer), status (enum: pending, starting, running, completed, failed), task_id (string)
Starts a background task to compute how the data in an embedded storage bucket is clustered. This helps identify common themes and patterns in the data.
POST /ai/clusters — Required: bucket
Optional: files (array[string]), min_cluster_size (integer), min_subcluster_size (integer), prefix (string)
response = client.ai.clusters.compute(bucket: "my-bucket")
puts(response)
Returns: task_id (string)
Fetch the results of a clustering task, including the discovered clusters.
GET /ai/clusters/{task_id}
cluster = client.ai.clusters.retrieve("task_id")
puts(cluster)
Returns: bucket (string), clusters (array[object]), status (enum: pending, starting, running, completed, failed)
Delete a clustering task and its computed results.
DELETE /ai/clusters/{task_id}
result = client.ai.clusters.delete("task_id")
puts(result)
Fetch a visualization image of the clusters computed by a clustering task.
GET /ai/clusters/{task_id}/graph
response = client.ai.clusters.fetch_graph("task_id")
puts(response)
Returns the list of third-party integrations available to connect to your AI assistants and workflows.
GET /ai/integrations
integrations = client.ai.integrations.list
puts(integrations)
Returns: available_tools (array[string]), description (string), display_name (string), id (string), logo_url (string), name (string), status (enum: disconnected, connected)
Returns the list of integration connections you have set up, linking your account to third-party services.
GET /ai/integrations/connections
connections = client.ai.integrations.connections.list
puts(connections)
Returns: allowed_tools (array[string]), id (string), integration_id (string)
Returns the details of a single integration connection by its ID.
GET /ai/integrations/connections/{user_connection_id}
connection = client.ai.integrations.connections.retrieve("user_connection_id")
puts(connection)
Returns: allowed_tools (array[string]), id (string), integration_id (string)
Delete a specific integration connection.
DELETE /ai/integrations/connections/{user_connection_id}
result = client.ai.integrations.connections.delete("user_connection_id")
puts(result)
Returns the details of a single available integration, including its configuration details.
GET /ai/integrations/{integration_id}
integration = client.ai.integrations.retrieve("integration_id")
puts(integration)
Returns: available_tools (array[string]), description (string), display_name (string), id (string), logo_url (string), name (string), status (enum: disconnected, connected)
Returns the ports allowed for Global IP traffic, for use when configuring Global IP resources.
GET /global_ip_allowed_ports
global_ip_allowed_ports = client.global_ip_allowed_ports.list
puts(global_ip_allowed_ports)
Returns: first_port (integer), id (uuid), last_port (integer), name (string), protocol_code (string), record_type (string)
Retrieve health check metrics for your Global IP assignments.
GET /global_ip_assignment_health
global_ip_assignment_health = client.global_ip_assignment_health.retrieve
puts(global_ip_assignment_health)
Returns: global_ip (object), global_ip_assignment (object), health (object), timestamp (date-time)
Returns a paginated list of your Global IP assignments, the links between Global IPs and the WireGuard peers that receive their traffic.
GET /global_ip_assignments
page = client.global_ip_assignments.list
puts(page)
Returns: created_at (string), global_ip_id (uuid), id (uuid), is_announced (boolean), is_connected (boolean), is_in_maintenance (boolean), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Assigns a Global IP to a WireGuard peer so traffic destined for the IP is delivered over that peer's tunnel. Assignment is asynchronous, so the request is accepted and completes in the background.
POST /global_ip_assignments
Optional: created_at (string), global_ip_id (uuid), id (uuid), is_announced (boolean), is_connected (boolean), is_in_maintenance (boolean), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
global_ip_assignment = client.global_ip_assignments.create
puts(global_ip_assignment)
Returns: created_at (string), global_ip_id (uuid), id (uuid), is_announced (boolean), is_connected (boolean), is_in_maintenance (boolean), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Returns the details of a single Global IP assignment, including the Global IP and WireGuard peer it links.
GET /global_ip_assignments/{id}
global_ip_assignment = client.global_ip_assignments.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(global_ip_assignment)
Returns: created_at (string), global_ip_id (uuid), id (uuid), is_announced (boolean), is_connected (boolean), is_in_maintenance (boolean), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Updates the specified Global IP assignment with the provided fields and returns the updated assignment.
PATCH /global_ip_assignments/{id}
Optional: created_at (string), global_ip_id (string), id (uuid), is_announced (boolean), is_connected (boolean), is_in_maintenance (boolean), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (string)
global_ip_assignment = client.global_ip_assignments.update(
"6a09cdc3-8948-47f0-aa62-74ac943d6c58",
global_ip_assignment_update_request: {}
)
puts(global_ip_assignment)
Returns: created_at (string), global_ip_id (uuid), id (uuid), is_announced (boolean), is_connected (boolean), is_in_maintenance (boolean), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Deletes the specified Global IP assignment, detaching the Global IP from its WireGuard peer.
DELETE /global_ip_assignments/{id}
global_ip_assignment = client.global_ip_assignments.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(global_ip_assignment)
Returns: created_at (string), global_ip_id (uuid), id (uuid), is_announced (boolean), is_connected (boolean), is_in_maintenance (boolean), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Retrieve usage metrics for your Global IP assignments.
GET /global_ip_assignments_usage
global_ip_assignments_usage = client.global_ip_assignments_usage.retrieve
puts(global_ip_assignments_usage)
Returns: global_ip (object), global_ip_assignment (object), received (object), timestamp (date-time), transmitted (object)
Returns the health check types available for Global IPs, for use when creating Global IP health checks.
GET /global_ip_health_check_types
global_ip_health_check_types = client.global_ip_health_check_types.list
puts(global_ip_health_check_types)
Returns: health_check_params (object), health_check_type (string), record_type (string)
Returns a paginated list of the Global IP health checks configured on your account.
GET /global_ip_health_checks
page = client.global_ip_health_checks.list
puts(page)
Returns: created_at (string), global_ip_id (uuid), health_check_params (object), health_check_type (string), id (uuid), record_type (string), updated_at (string)
Creates a health check for a Global IP to monitor the health of its assignments. Creation is asynchronous, so the request is accepted and the health check becomes active once provisioning completes.
POST /global_ip_health_checks
Optional: created_at (string), global_ip_id (uuid), health_check_params (object), health_check_type (string), id (uuid), record_type (string), updated_at (string)
global_ip_health_check = client.global_ip_health_checks.create
puts(global_ip_health_check)
Returns: created_at (string), global_ip_id (uuid), health_check_params (object), health_check_type (string), id (uuid), record_type (string), updated_at (string)
Returns the details of a single Global IP health check, including its type and configuration.
GET /global_ip_health_checks/{id}
global_ip_health_check = client.global_ip_health_checks.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(global_ip_health_check)
Returns: created_at (string), global_ip_id (uuid), health_check_params (object), health_check_type (string), id (uuid), record_type (string), updated_at (string)
Deletes the specified Global IP health check so it no longer monitors the Global IP's assignments.
DELETE /global_ip_health_checks/{id}
global_ip_health_check = client.global_ip_health_checks.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(global_ip_health_check)
Returns: created_at (string), global_ip_id (uuid), health_check_params (object), health_check_type (string), id (uuid), record_type (string), updated_at (string)
Retrieve latency metrics measured for your Global IPs.
GET /global_ip_latency
global_ip_latency = client.global_ip_latency.retrieve
puts(global_ip_latency)
Returns: global_ip (object), mean_latency (object), percentile_latency (object), prober_location (object), timestamp (date-time)
Returns the network protocols supported for Global IP traffic, for use when configuring Global IP resources.
GET /global_ip_protocols
global_ip_protocols = client.global_ip_protocols.list
puts(global_ip_protocols)
Returns: code (string), name (string), record_type (string)
Retrieve usage metrics for your Global IPs.
GET /global_ip_usage
global_ip_usage = client.global_ip_usage.retrieve
puts(global_ip_usage)
Returns: global_ip (object), received (object), timestamp (date-time), transmitted (object)
Returns a paginated list of the Global IPs on your account, including each IP's address and configuration.
GET /global_ips
page = client.global_ips.list
puts(page)
Returns: created_at (string), description (string), id (uuid), ip_address (string), name (string), ports (object), record_type (string), updated_at (string)
Requests creation of a new Global IP, a static IP address announced from the Telnyx network. Provisioning is asynchronous, so the request is accepted and the Global IP becomes available once provisioning completes.
POST /global_ips
Optional: created_at (string), description (string), id (uuid), ip_address (string), name (string), ports (object), record_type (string), updated_at (string)
global_ip = client.global_ips.create
puts(global_ip)
Returns: created_at (string), description (string), id (uuid), ip_address (string), name (string), ports (object), record_type (string), updated_at (string)
Returns the details of a single Global IP, including its address and current configuration.
GET /global_ips/{id}
global_ip = client.global_ips.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(global_ip)
Returns: created_at (string), description (string), id (uuid), ip_address (string), name (string), ports (object), record_type (string), updated_at (string)
Deletes the specified Global IP and releases its address back to Telnyx.
DELETE /global_ips/{id}
global_ip = client.global_ips.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(global_ip)
Returns: created_at (string), description (string), id (uuid), ip_address (string), name (string), ports (object), record_type (string), updated_at (string)
Returns a paginated list of the private networks on your account, with support for filtering.
GET /networks
page = client.networks.list
puts(page)
Returns: created_at (string), id (uuid), name (string), record_type (string), updated_at (string)
Creates a new private network, the container that links your WireGuard interfaces, gateways, and cross connects.
POST /networks — Required: name
Optional: created_at (string), id (uuid), record_type (string), updated_at (string)
network = client.networks.create(name: "test network")
puts(network)
Returns: created_at (string), id (uuid), name (string), record_type (string), updated_at (string)
Returns the details of a single network by its identifier.
GET /networks/{id}
network = client.networks.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(network)
Returns: created_at (string), id (uuid), name (string), record_type (string), updated_at (string)
Updates the specified network's attributes and returns the updated network.
PATCH /networks/{id} — Required: name
Optional: created_at (string), id (uuid), record_type (string), updated_at (string)
network = client.networks.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58", name: "test network")
puts(network)
Returns: created_at (string), id (uuid), name (string), record_type (string), updated_at (string)
Permanently deletes the specified network from your account.
DELETE /networks/{id}
network = client.networks.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(network)
Returns: created_at (string), id (uuid), name (string), record_type (string), updated_at (string)
Returns the status of the default gateway configured on the specified network.
GET /networks/{id}/default_gateway
default_gateway = client.networks.default_gateway.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(default_gateway)
Returns: created_at (string), id (uuid), network_id (uuid), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Creates a default gateway on the specified network, directing the network's outbound traffic through the chosen gateway.
POST /networks/{id}/default_gateway
Optional: created_at (string), id (uuid), network_id (uuid), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
default_gateway = client.networks.default_gateway.create("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(default_gateway)
Returns: created_at (string), id (uuid), network_id (uuid), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Removes the default gateway from the specified network.
DELETE /networks/{id}/default_gateway
default_gateway = client.networks.default_gateway.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(default_gateway)
Returns: created_at (string), id (uuid), network_id (uuid), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string), wireguard_peer_id (uuid)
Returns a paginated list of the interfaces attached to the specified network, with support for filtering.
GET /networks/{id}/network_interfaces
page = client.networks.list_interfaces("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(page)
Returns: created_at (string), id (uuid), name (string), network_id (uuid), record_type (string), region (object), region_code (string), status (enum: created, provisioning, provisioned, deleting), type (string), updated_at (string)
Get all Private Wireless Gateways belonging to the user.
GET /private_wireless_gateways
page = client.private_wireless_gateways.list
puts(page)
Returns: address_mode (enum: static, dynamic), assigned_resources (array[object]), created_at (string), id (uuid), ip_range (string), name (string), network_id (uuid), record_type (string), region_code (string), status (object), updated_at (string)
Asynchronously create a Private Wireless Gateway for SIM cards for a previously created network. This operation may take several minutes so you can check the Private Wireless Gateway status at the section Get a Private Wireless Gateway.
POST /private_wireless_gateways — Required: network_id, name
Optional: address_mode (enum: static, dynamic), region_code (string)
private_wireless_gateway = client.private_wireless_gateways.create(
name: "My private wireless gateway",
network_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
)
puts(private_wireless_gateway)
Returns: address_mode (enum: static, dynamic), assigned_resources (array[object]), created_at (string), id (uuid), ip_range (string), name (string), network_id (uuid), record_type (string), region_code (string), status (object), updated_at (string)
Retrieve information about a Private Wireless Gateway.
GET /private_wireless_gateways/{id}
private_wireless_gateway = client.private_wireless_gateways.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(private_wireless_gateway)
Returns: address_mode (enum: static, dynamic), assigned_resources (array[object]), created_at (string), id (uuid), ip_range (string), name (string), network_id (uuid), record_type (string), region_code (string), status (object), updated_at (string)
Permanently deletes the specified Private Wireless Gateway from your account.
DELETE /private_wireless_gateways/{id}
private_wireless_gateway = client.private_wireless_gateways.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(private_wireless_gateway)
Returns: address_mode (enum: static, dynamic), assigned_resources (array[object]), created_at (string), id (uuid), ip_range (string), name (string), network_id (uuid), record_type (string), region_code (string), status (object), updated_at (string)
Returns a paginated list of the public internet gateways on your account, with support for filtering.
GET /public_internet_gateways
page = client.public_internet_gateways.list
puts(page)
Returns: created_at (string), id (uuid), name (string), network_id (uuid), public_ip (string), record_type (string), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Requests creation of a public internet gateway on the specified network, giving the network internet egress. Creation is asynchronous, so the request is accepted and completes in the background.
POST /public_internet_gateways
Optional: created_at (string), id (uuid), name (string), network_id (uuid), public_ip (string), record_type (string), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
public_internet_gateway = client.public_internet_gateways.create
puts(public_internet_gateway)
Returns: created_at (string), id (uuid), name (string), network_id (uuid), public_ip (string), record_type (string), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Returns the details of a single public internet gateway by its identifier.
GET /public_internet_gateways/{id}
public_internet_gateway = client.public_internet_gateways.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(public_internet_gateway)
Returns: created_at (string), id (uuid), name (string), network_id (uuid), public_ip (string), record_type (string), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Deletes the specified public internet gateway, removing internet egress through it.
DELETE /public_internet_gateways/{id}
public_internet_gateway = client.public_internet_gateways.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(public_internet_gateway)
Returns: created_at (string), id (uuid), name (string), network_id (uuid), public_ip (string), record_type (string), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
List all regions and the interfaces that region supports
GET /regions
regions = client.regions.list
puts(regions)
Returns: code (string), created_at (string), name (string), record_type (string), supported_interfaces (array[string]), updated_at (string)
Returns a paginated list of the virtual cross connects on your account, with support for filtering.
GET /virtual_cross_connects
page = client.virtual_cross_connects.list
puts(page)
Returns: bandwidth_mbps (number), bgp_asn (number), cloud_provider (enum: aws, azure, gce), cloud_provider_region (string), created_at (string), id (uuid), name (string), network_id (uuid), primary_bgp_key (string), primary_cloud_account_id (string), primary_cloud_ip (string), primary_enabled (boolean), primary_routing_announcement (boolean), primary_telnyx_ip (string), record_type (string), region (object), region_code (string), secondary_bgp_key (string), secondary_cloud_account_id (string), secondary_cloud_ip (string), secondary_enabled (boolean), secondary_routing_announcement (boolean), secondary_telnyx_ip (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Create a new Virtual Cross Connect. For AWS and GCE, you have the option of creating the primary connection first and the secondary connection later. You also have the option of disabling the primary and/or secondary connections at any time and later re-enabling them. With Azure, you do not have this option.
POST /virtual_cross_connects — Required: network_id, region_code, cloud_provider, cloud_provider_region, bgp_asn, primary_cloud_account_id
Optional: bandwidth_mbps (number), created_at (string), id (uuid), name (string), primary_bgp_key (string), primary_cloud_ip (string), primary_enabled (boolean), primary_telnyx_ip (string), record_type (string), secondary_bgp_key (string), secondary_cloud_account_id (string), secondary_cloud_ip (string), secondary_enabled (boolean), secondary_telnyx_ip (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
virtual_cross_connect = client.virtual_cross_connects.create(region_code: "ashburn-va")
puts(virtual_cross_connect)
Returns: bandwidth_mbps (number), bgp_asn (number), cloud_provider (enum: aws, azure, gce), cloud_provider_region (string), created_at (string), id (uuid), name (string), network_id (uuid), primary_bgp_key (string), primary_cloud_account_id (string), primary_cloud_ip (string), primary_enabled (boolean), primary_routing_announcement (boolean), primary_telnyx_ip (string), record_type (string), region (object), region_code (string), secondary_bgp_key (string), secondary_cloud_account_id (string), secondary_cloud_ip (string), secondary_enabled (boolean), secondary_routing_announcement (boolean), secondary_telnyx_ip (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Returns the details of a single virtual cross connect by its identifier.
GET /virtual_cross_connects/{id}
virtual_cross_connect = client.virtual_cross_connects.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(virtual_cross_connect)
Returns: bandwidth_mbps (number), bgp_asn (number), cloud_provider (enum: aws, azure, gce), cloud_provider_region (string), created_at (string), id (uuid), name (string), network_id (uuid), primary_bgp_key (string), primary_cloud_account_id (string), primary_cloud_ip (string), primary_enabled (boolean), primary_routing_announcement (boolean), primary_telnyx_ip (string), record_type (string), region (object), region_code (string), secondary_bgp_key (string), secondary_cloud_account_id (string), secondary_cloud_ip (string), secondary_enabled (boolean), secondary_routing_announcement (boolean), secondary_telnyx_ip (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Update the Virtual Cross Connect. Cloud IPs can only be patched during the created state, as GCE will only inform you of your generated IP once the pending connection requested has been accepted.
PATCH /virtual_cross_connects/{id}
Optional: primary_cloud_ip (string), primary_enabled (boolean), primary_routing_announcement (boolean), secondary_cloud_ip (string), secondary_enabled (boolean), secondary_routing_announcement (boolean)
virtual_cross_connect = client.virtual_cross_connects.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(virtual_cross_connect)
Returns: bandwidth_mbps (number), bgp_asn (number), cloud_provider (enum: aws, azure, gce), cloud_provider_region (string), created_at (string), id (uuid), name (string), network_id (uuid), primary_bgp_key (string), primary_cloud_account_id (string), primary_cloud_ip (string), primary_enabled (boolean), primary_routing_announcement (boolean), primary_telnyx_ip (string), record_type (string), region (object), region_code (string), secondary_bgp_key (string), secondary_cloud_account_id (string), secondary_cloud_ip (string), secondary_enabled (boolean), secondary_routing_announcement (boolean), secondary_telnyx_ip (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Deletes the specified virtual cross connect from your account.
DELETE /virtual_cross_connects/{id}
virtual_cross_connect = client.virtual_cross_connects.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(virtual_cross_connect)
Returns: bandwidth_mbps (number), bgp_asn (number), cloud_provider (enum: aws, azure, gce), cloud_provider_region (string), created_at (string), id (uuid), name (string), network_id (uuid), primary_bgp_key (string), primary_cloud_account_id (string), primary_cloud_ip (string), primary_enabled (boolean), primary_routing_announcement (boolean), primary_telnyx_ip (string), record_type (string), region (object), region_code (string), secondary_bgp_key (string), secondary_cloud_account_id (string), secondary_cloud_ip (string), secondary_enabled (boolean), secondary_routing_announcement (boolean), secondary_telnyx_ip (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
List Virtual Cross Connects Cloud Coverage. This endpoint shows which cloud regions are available for the location_code your Virtual Cross Connect will be provisioned in.
GET /virtual_cross_connects_coverage
page = client.virtual_cross_connects_coverage.list
puts(page)
Returns: available_bandwidth (array[number]), cloud_provider (enum: aws, azure, gce), cloud_provider_region (string), location (object), record_type (string)
Returns a paginated list of the WireGuard interfaces on your account, with support for filtering.
GET /wireguard_interfaces
page = client.wireguard_interfaces.list
puts(page)
Returns: created_at (string), enable_sip_trunking (boolean), endpoint (string), id (uuid), name (string), network_id (uuid), public_key (string), record_type (string), region (object), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Create a new WireGuard Interface. Current limitation of 10 interfaces per user can be created.
POST /wireguard_interfaces — Required: network_id, region_code
Optional: created_at (string), enable_sip_trunking (boolean), endpoint (string), id (uuid), name (string), public_key (string), record_type (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
wireguard_interface = client.wireguard_interfaces.create(region_code: "ashburn-va")
puts(wireguard_interface)
Returns: created_at (string), enable_sip_trunking (boolean), endpoint (string), id (uuid), name (string), network_id (uuid), public_key (string), record_type (string), region (object), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Returns the details of a single WireGuard interface by its identifier.
GET /wireguard_interfaces/{id}
wireguard_interface = client.wireguard_interfaces.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireguard_interface)
Returns: created_at (string), enable_sip_trunking (boolean), endpoint (string), id (uuid), name (string), network_id (uuid), public_key (string), record_type (string), region (object), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Deletes the specified WireGuard interface from its network.
DELETE /wireguard_interfaces/{id}
wireguard_interface = client.wireguard_interfaces.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireguard_interface)
Returns: created_at (string), enable_sip_trunking (boolean), endpoint (string), id (uuid), name (string), network_id (uuid), public_key (string), record_type (string), region (object), region_code (string), status (enum: created, provisioning, provisioned, deleting), updated_at (string)
Returns a paginated list of your WireGuard peers, with support for filtering.
GET /wireguard_peers
page = client.wireguard_peers.list
puts(page)
Returns: created_at (string), id (uuid), last_seen (string), private_key (string), public_key (string), record_type (string), updated_at (string), wireguard_interface_id (uuid)
Create a new WireGuard Peer. Current limitation of 5 peers per interface can be created.
POST /wireguard_peers — Required: wireguard_interface_id
Optional: created_at (string), id (uuid), last_seen (string), private_key (string), public_key (string), record_type (string), updated_at (string)
wireguard_peer = client.wireguard_peers.create(wireguard_interface_id: "6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireguard_peer)
Returns: created_at (string), id (uuid), last_seen (string), private_key (string), public_key (string), record_type (string), updated_at (string), wireguard_interface_id (uuid)
Returns the details of a single WireGuard peer by its identifier.
GET /wireguard_peers/{id}
wireguard_peer = client.wireguard_peers.retrieve("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireguard_peer)
Returns: created_at (string), id (uuid), last_seen (string), private_key (string), public_key (string), record_type (string), updated_at (string), wireguard_interface_id (uuid)
Updates the specified WireGuard peer and returns the updated peer.
PATCH /wireguard_peers/{id}
Optional: public_key (string)
wireguard_peer = client.wireguard_peers.update("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireguard_peer)
Returns: created_at (string), id (uuid), last_seen (string), private_key (string), public_key (string), record_type (string), updated_at (string), wireguard_interface_id (uuid)
Deletes the specified WireGuard peer from its interface.
DELETE /wireguard_peers/{id}
wireguard_peer = client.wireguard_peers.delete("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(wireguard_peer)
Returns: created_at (string), id (uuid), last_seen (string), private_key (string), public_key (string), record_type (string), updated_at (string), wireguard_interface_id (uuid)
GET /wireguard_peers/{id}/config
response = client.wireguard_peers.retrieve_config("6a09cdc3-8948-47f0-aa62-74ac943d6c58")
puts(response)
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Test VoIP push notifications for Telnyx WebRTC iOS (APNs) and Android (FCM) apps. Use when debugging push notification delivery, validating certificate/credential setup, or testing that a device receives VoIP pushes correctly.
中文简介正在准备中。当前显示原文说明。
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
中文简介正在准备中。当前显示原文说明。
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
中文简介正在准备中。当前显示原文说明。
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
中文简介正在准备中。当前显示原文说明。
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
中文简介正在准备中。当前显示原文说明。
10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.
中文简介正在准备中。当前显示原文说明。