Skip to navigation

Telnyx

Connect Telnyx numbers with a Telnyx API key

Connect a Telnyx number to your agent by pasting a Telnyx API key into Vapi for CX and picking your numbers.

  • Receive calls: Yes.
  • Transfer to a phone number: Offered. Telnyx needs the Vapi application on an Outbound Voice Profile before the agent can hand off. See Transfer to a phone number below. Whoever answers sees the agent’s number.
  • Transfer to a SIP address: Offered, with named caller details and no summary. Telnyx needs the same Outbound Voice Profile as for a phone number.
  • Return the call to their system: Only when a contact center or phone system that takes calls back is linked to the line. See Handing callers to people.
  • Place calls: Offered. Telnyx needs the Vapi application on an Outbound Voice Profile before the agent can place calls. See Transfer to a phone number below. The caller ID must be valid for the account, or Telnyx refuses the call; Telnyx refuses a number from outside Telnyx unless you have verified it.

Send calls to the agent

1

Create a v2 API key

In the Telnyx portal, open API Keys and create a v2 API key. For more information, see Telnyx’s API keys article.

2

Paste it into Vapi for CX

On the agent’s setup checklist, open Connect your phone line, choose Another carrier or my own phone system, then Telnyx. Paste the key and choose Find my numbers. Vapi keeps the key in your Vapi account. Vapi for CX doesn’t keep it.

3

Pick your numbers

Vapi for CX lists each number and the connection it is on today. Select the numbers this agent answers and choose Connect. The button shows how many numbers you selected. Vapi for CX saves each number’s old connection so that Disconnect can put it back.

Connecting a number to the agent stops its calls going to its old SIP connection, TeXML app, or Voice API app at once, so your phone system stops receiving them. Vapi for CX warns you before you confirm. A number outside North America shows a warning too: on this route its calls can sound garbled, and the trunk route avoids that.

Vapi creates an application named “Vapi” in your Telnyx account (in the Telnyx portal under Voice › Programmable Voice) and moves each number onto it. Nothing else on the number changes. For more information, see Vapi’s Telnyx guide.

Number the agent sees: the caller’s own number.

Check it: when Vapi for CX shows Call this number from your phone, call the number from your own phone. The check passes when your call reaches the agent. Handoffs and calls out need the Outbound Voice Profile below.

Disconnect. Disconnecting a Telnyx number never deletes it. Vapi for CX asks you to paste the API key again, moves the number back onto its old connection, then detaches the agent. The number stays in Vapi. If that fails, the agent stays attached and the message says what to set in the Telnyx portal.

Hand callers to your team

On a line connected by key, no summary travels with a handoff. For how handoffs work, see Handing callers to people.

Transfer to a phone number

Vapi asks Telnyx to transfer the call, and Telnyx dials the number.

1

Add the Vapi application to an Outbound Voice Profile

In the Telnyx portal, open Voice › Outbound Voice Profiles. Create or open a profile and choose its destinations. A profile allows the US and Canada by default, and many other destinations need Telnyx’s Level 2 verification. Choose Add connections/apps to profile, pick Vapi, and save. For more information, see Telnyx’s Vapi integration article and its outbound voice profiles page.

Vapi for CX reminds you of this step when you add a Transfer to a phone number or a Transfer to a SIP address handoff on a Telnyx line. The same profile lets the agent place calls.

2

Add the handoff

On the agent’s Call handling tab, choose Add a handoff on the Handing callers to people card and pick Transfer to a phone number. Say when the agent should hand off, and enter the number.

Number whoever answers sees: the agent’s own Telnyx number, not the caller’s.

Transfer to a SIP address

Telnyx transfers the call to the SIP address. Named caller details travel with it as X- headers. The Outbound Voice Profile above applies here too.

Limitations

  • On a line connected by key, no summary travels with a handoff, and whoever answers sees the agent’s number. If nobody answers, the call ends: it doesn’t come back to the agent.
  • A Telnyx number alone doesn’t allow Return the call to their system. See Handing callers to people.
  • Vapi for CX connects one Telnyx account per organization. A second account uses the trunk route.
  • Numbers outside North America can sound garbled on this route. Use the trunk route for them.
  • Telnyx bills the call at its own rates, and Vapi bills its own minutes.
  • Telnyx limits an account to 30 calls placed a second.
  • Telnyx’s documentation gives a trial account one number, calls only to and from its one verified number, 2 calls out at once, and 10 minutes per call.

Other options

SIP trunk (Connect in Vapi). For a summary with each SIP handoff, numbers outside North America, or a second Telnyx account. This page gives no steps for it.

It takes a SIP connection in the Telnyx portal, set up as Vapi’s Telnyx SIP guide describes. It also takes one SIP trunk in Vapi’s dashboard that holds both Telnyx’s addresses for calls in (192.76.120.10 and 64.16.250.10) and the sign-in for calls out, with Enable leading plus for outbound calls turned on in its Advanced Settings (Optional).

Vapi’s Telnyx SIP guide sets each number’s Translated Number in the Telnyx portal to a Vapi SIP address, so this setup makes two Vapi numbers for one line. On a trunk line, Vapi passes a SIP handoff on to Telnyx with the summary and named details as SIP headers.

Forward the Telnyx number to a Vapi number. Call forwarding on the number in Telnyx. It is a fallback, not a main route.

Telnyx AI Assistants or media streaming: nothing to connect.