I cant get my phone number from telnyx in vapi and...
# support
a
I am trying to import my Telnyx phone number into Vapi, but I keep getting credential errors even though my Telnyx account is fully verified, paid, and active. Here’s what I have done so far: • Created and activated an API key in Telnyx (v2). • Set up a SIP connection and outbound voice profile in Telnyx. • Tried to import the number into Vapi using the API key, but I always get the error “The provided credentials are not valid”. • I also tried using a Free Vapi SIP URI, but I am still unable to link my Telnyx number. Could you please guide me through the correct way to connect my Telnyx number to Vapi, or let me know if there is something wrong with my setup? Thank you very much for your help!
v
To connect your Telnyx number to Vapi, you need to add your Telnyx SIP credentials (username and password) to Vapi, not just the API key. Use the following API call to create a SIP trunk credential:
Copy code
bash
curl -X POST https://api.vapi.ai/credential \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Telnyx Trunk",
    "gateways": [{ "ip": "sip.telnyx.com" }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD",
      "sipRegisterPlan": { "realm": "sip.telnyx.com" }
    }
  }'
Replace
YOUR_VAPI_PRIVATE_KEY
,
YOUR_SIP_USERNAME
, and
YOUR_SIP_PASSWORD
with your actual credentials.
This should resolve the credential error if your SIP details are correct. Source: - [Vapi Docs: Telnyx SIP Integration](https://docs.vapi.ai/advanced/sip/telnyx)
a
Nope, dosent work
Please help
c
Hello, Sorry for the inconvenience. Can you try the following: Method 1 – Direct Import 1. Go to the Phone Numbers tab in your Vapi dashboard. 2. Click Create a Phone Number. 3. Select the Telnyx tab. 4. Enter your Telnyx account details and phone number. Method 2 – SIP Integration If direct import does not work, you can connect via SIP trunking: 1. Configure your Telnyx SIP trunk - FQDN:
sip.vapi.ai
- Port:
5060
- Set inbound settings - Set your number’s Translated Number to match your Vapi SIP URI 2. Set up outbound authentication - In Telnyx, go to Voice → SIP Trunking → Authentication - Create new SIP credentials for Vapi - Configure an outbound voice profile 3. Add credentials in Vapi via API
Copy code
curl -X POST https://api.vapi.ai/credential \
  -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
  -d '{
    "provider": "byo-sip-trunk",
    "name": "Telnyx Trunk",
    "gateways": [{"ip": "sip.telnyx.com", "inboundEnabled": false}],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD",
      "sipRegisterPlan": {"realm": "sip.telnyx.com"}
    }
  }'
If the direct import continues to fail, we recommend trying the SIP trunk integration as an alternative.
9 Views