TeXML Translator makes it easy to write a new application in minutes, using simple TeXML commands — called verbs — which you wrap in an XML file.
In this guide, we’ll show you how to initiate a basic outbound call using the Telnyx API, and control the call using TeXML.
Watch this video to see how it's done in less than five minutes.
Read the full guide
Before we get started, follow the TeXML setup instructions in our Developer Center to set up your account, number and TeXML connection.
Now, in the Developer Center, toggle to API v2 and click “API Reference” on the top menu bar. Then, select “Call Control”, “TeXML Translator” and “Dial” from the menu on the left.
Scroll down to the section called “Initiate a TeXML Call using the Telnyx API”. Now, copy the code, then open up your favourite notepad editor and paste the code.
Open up your browser and head to the portal. Here, you should already have a connection configured to point at TeXML. Click “Connections”, click the edit symbol to the right of the connection you want to use and copy the connection ID.
Head back to your notepad editor and paste in your connection ID. In the "From" field, enter a phone number associated with your Telnyx account. In the "To" field, enter the number you want to call.
You’ll notice there’s also a header for authorization. This is where you’ll enter your API v2 credentials. If you need to create a new API key, just head back to the [portal], select "Auth" from the left-hand side menu and click "Create API Key".
You’re all set. Copy your code, open up your terminal, paste it and submit. Your call will be made, and an automated message will play using Amazon Polly text-to-speech.
Share on Social
Worth checking out