Demo: How to Make a TeXML Call Using the Telnyx API
Video - 5 min read

Demo: How to Make a TeXML Call Using the Telnyx API

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.

Step 1:

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.

Step 2:

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.

Step 3:

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.

Step 4:

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.

Step 5:

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".

Step 6:

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.

If you have any questions on how to get started with Telnyx Call Control using TeXML, you can find us on slack 24/7.
Share on Social
Worth checking out

By using the site, you agree to our use of cookies. Accept and close Find out more here.