env.MY_TELNYX is a ready-to-use, authenticated Telnyx client handle — call it like any Telnyx API client, with auth already wired in (no new Telnyx(...), no API key to manage). Calls take the shape env.MY_TELNYX.<resource>.<method>(...), using resource and method names — not raw HTTP paths:
<resource>— a camelCase property:messages,calls,balance,availablePhoneNumbers, …<method>— a method on the resource:.send,.dial,.list,.retrieve, …
messages.send is POST /messages, but messages.cancelScheduled is DELETE /messages/{id}), so discover them rather than guessing from endpoints:
- Autocomplete — after
telnyx-edge types, your editor completesenv.MY_TELNYX.with every resource and method. - Client method reference (
api.md) — lists every<resource>.<method>(...)and the endpoint it maps to. - HTTP API reference — endpoint parameters and behavior.
.data.