How do I connect Vapi with Twilio
# support
d
I entered the SID and Auth Token from my Twilio number in Vapi but it still doesn‘t work. From what I understand I need to add the Vapi server URL to Twilio. Where do I find the server URL ?
v
@Daniel The server URL you need to provide to Twilio is the URL where Vapi will send webhooks to your application. This URL is typically the endpoint on your server that is set up to handle incoming requests from Vapi. If you're unsure about what your server URL is, you'll need to check the configuration of your web server or the settings within your Vapi dashboard where you have set up your voice application. The server URL is the address that Vapi will use to communicate with your application. Once you have your server URL, you'll need to configure your Twilio number's webhook URLs to point to this server URL so that Twilio can forward calls and messages to Vapi, which in turn will handle them according to your application logic. If you need further assistance with finding your server URL or configuring your Twilio number, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
d
@Vapi I can‘t find the server URL. In my Vapi Dashboard there‘s one field on the left that contains an array of numbers instead of a URL and on the right there are two empty fields for Server URL and Server URL secret
v
@Daniel It sounds like you might be looking at a placeholder or default value in your Vapi Dashboard. The server URL should be a web address where Vapi can send HTTP requests. If the fields for the Server URL and Server URL secret are empty, you will need to provide the URL of the server where your voice application is hosted. If you have a web application that's designed to work with Vapi, the server URL will be the endpoint in your application that's set up to receive and respond to webhooks from Vapi. This URL is something you or your development team would have created as part of your application's backend. If you do not have this URL, you will need to set up a server endpoint that can handle requests from Vapi. This typically involves writing server-side code to process the webhooks and configuring your server to be accessible over the internet. Once you have your server set up and you know the URL, you should enter it into the Server URL field in your Vapi Dashboard. The Server URL secret is a security measure to ensure that the requests to your server are coming from Vapi; you can generate a secret and provide it in both Vapi and your server configuration for validation. If you're still unsure about how to proceed or if you need technical assistance with setting up your server, please ask support for more info on this.
s
You don't require to add any URL, Vapi will add for you.
What you have to do is import your number from twilio and url will be added.
d
Nevermind I found the issue already
I selected the country code assuming I wouldn‘t need to write +1 in the phone number field. Stupid mistake that has cost me many hours 😂
52 Views