Skip to main content
A complete function that returns your Telnyx account balance — declared, typed, shipped, and called.

1. Create a function

2. Declare the binding

Add a [telnyx] block to the generated func.toml:

3. Generate types

env.MY_TELNYX is now typed as the Telnyx client.

4. Write the handler

5. Ship

6. Call it

ship prints your function URL. Hit it: