How to attach a server URL to a phone number
# support
h
How can I attach a server URL to a phone number ? can't find it on the dashboard
v
Hi @hugopdvn, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Setting Server URLs]() * [Update Phone Number]() * [List Phone Numbers]() * [Import Vonage Number]() -----------------------------
### Answer You can attach a server URL to a phone number in Vapi through three main methods: 1. **At the Time of Purchase**: When you buy a phone number through Vapi, you can specify the server URL during the purchase process. 2. **At Import**: When you import a phone number from Twilio or Vonage, you have the option to set a server URL. 3. **Via Update**: You can update a phone number already in your account to include a server URL. Here’s how you can update a server URL for an existing phone number using the API:
Copy code
curl
curl --request PATCH \
  --url https://api.vapi.ai/phone-number/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "serverUrl": "<your_server_url>"
}'
This command updates the server URL for the specified phone number. Make sure to replace
{id}
with the actual ID of the phone number and
<your_server_url>
with the URL you want to set [(1)]() . For more details on how to set server URLs at different levels in Vapi, you can refer to the documentation on setting server URLs [(2)]() .
s
^
v
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
10 Views