Integrate your Telnyx SIP trunk with Vapi to enable your AI voice assistants to handle calls efficiently. This guide walks you through the complete setup process for both inbound and outbound calls.
sip.vapi.ai
You can get your Vapi SIP URI when you create a new SIP number through the Phone Numbers tab in the Vapi dashboard. The URI will look like:
sip:<your-unique-id>@sip.vapi.aiThis setting modifies the SIP Invite so invites are correctly routed to your Vapi SIP URI.

Use the Vapi API to create a SIP trunk credential:
Use IP addresses in gateways. FQDNs like sip.telnyx.com return a 400 Bad Request.
Replace YOUR_VAPI_PRIVATE_KEY, YOUR_SIP_USERNAME, and YOUR_SIP_PASSWORD with your actual credentials.
Replace the gateway IPs with the Telnyx gateway IPs assigned to your trunk.
Set inboundEnabled to false if you only need outbound calls.
If successful, the response will include an id for the created credential, which you’ll use in the next step.
Associate your phone number with the SIP trunk in Vapi:
Replace YOUR_VAPI_PRIVATE_KEY, YOUR_PHONE_NUMBER, and YOUR_CREDENTIAL_ID with your actual details.
By following these steps, your Telnyx SIP trunk will be fully integrated with Vapi, allowing your AI voice assistants to manage calls effectively.