integrations/voice/telephony/telnyx/) uses the Telnyx v2 API, automated Outbound Voice Profiles, and bidirectional TeXML Media Streams.
Telnyx Calling Pipeline
Required Credentials
To connect Telnyx to BrokerOS, retrieve the following credentials from the Telnyx Mission Control Portal:Automated Outbound Voice Profile Provisioning
Before an outbound telephone call can be placed through Telnyx, an active Outbound Voice Profile must be linked to your account. BrokerOS automates this setup inTelnyxTelephonyClient:
- Queries
https://api.telnyx.com/v2/outbound_voice_profilesto verify existing profiles. - If no profile exists, automatically provisions a BrokerOS Outbound Voice Profile with
traffic_type: 'conversational'andusage_payment_method: 'rate-deck'. - Attaches the outbound voice profile to your Call Control Application via
PATCH /v2/call_control_applications/{appId}.
CRM Telephony PSTN Bridging Setup
To use Telnyx as the organization-wide carrier for human telecalling:- Navigate to Dashboard -> Admin -> Settings -> CRM Telephony & WebRTC (
/dashboard/admin/settings). - Select the Telnyx carrier card.
- Enter the following parameters:
- Telnyx API Key: Your Telnyx V2 API Key (starts with
KEY...). - Call Control Application ID: Your Call Control application ID or TeXML connection ID.
- Caller ID / Outbound DID: Your purchased Telnyx number in E.164 format (e.g.,
+12025550188).
- Telnyx API Key: Your Telnyx V2 API Key (starts with
- Click Save & Activate Carrier.
- During calls, BrokerOS dispatches TeXML bridge calls to
/api/crm/telephony/webhooks/telnyx-voicewith automated dual-channel call recording and Groq Whisper transcription.
Marketing AI Voice Configuration Steps
1
Generate an API Key in Telnyx Portal
Log in to Telnyx Mission Control. Navigate to API Keys and generate a new V2 API Key.
2
Ensure API_PUBLIC_URL is Configured
Telnyx requires a public URL for the TeXML
answer_url parameter. Ensure API_PUBLIC_URL is configured in your root .env (e.g., API_PUBLIC_URL="https://api.yourdomain.com").3
Add Carrier in BrokerOS Settings
In the BrokerOS dashboard:
- Navigate to Dashboard -> Marketing -> Voice -> Settings.
- Select the Gateways & Voice Platforms tab (
/dashboard/marketing/voice/settings?tab=providers). - Under the Telephony Gateways sub-tab, click Add Carrier and select TELNYX.
- Enter an Engine Label / Name (e.g.
Telnyx Ultra-Low Latency Trunk). - Paste your V2 API Key into the API Key field.
- Enter your purchased Telnyx number in From Numbers.
- Click Save & Verify Carrier. Credentials are encrypted with AES-256-GCM and stored in
VoiceTelephonyIntegration.
4
Verify Carrier Credentials
Click Verify Carrier. BrokerOS tests credentials against
https://api.telnyx.com/v2/phone_numbers and measures network latency.5
Place a Test Call
Use the Dual-Mode Test Call Modal from the Agent Composer to verify that the TeXML media stream connects cleanly to your phone.
TeXML Media Stream Handshake
When an outbound call is answered, Telnyx executes the TeXML response provided by/api/marketing/voice/webhooks/telnyx-answer:
VoiceMediaStreamGateway.ts.