Telnyx Edge Compute Functions can now call services on your private Telnyx WireGuard network. A network binding connects an Edge Compute Function to an existing Telnyx WireGuard Interface. The function can then use env.<NAME>.fetch() to send HTTP requests through the tunnel.
[network.<name>] binding in func.toml or telnyx.toml, using the WireGuard Interface UUID, not the parent Network UUID.func-<function-id>.env.<NAME>.fetch() accepts a URL string, URL, or Request, and sends HTTP requests through the configured network binding.telnyx-edge v0.5.10 or later, @telnyx/edge-runtime v0.16.0 or later, a Network with a WireGuard Interface in provisioned status, and a host connected as a WireGuard peer, running the target HTTP service.Network bindings let Edge Compute Functions call private HTTP services over an existing Telnyx WireGuard tunnel, without exposing those services to the public internet.
provisioned status, register the target host as a peer, and bring the tunnel up.func.toml or telnyx.toml and regenerate declarations with telnyx-edge types:[network.PRIVATE_NET] id = "<wireguard-interface-uuid>"
import { env } from "@telnyx/edge-runtime"; const response = await env.PRIVATE_NET.fetch("http://172.27.0.2:8787/health");
telnyx-edge ship, invoke the function, and confirm the private HTTP service responds successfully.The network binding docs cover the manifest fields, the fetch options, and the full verification flow.