Custom URL
# support
k
Hi -- is there a supported way to use a custom URL instead of the Vapi URL in the web SDK? Perhaps an enterprise feature? Looking to obfuscate the tech stack we are using
v
You can continue this conversation by mentioning me in the message.
@kevinmtu Yes, you can use a custom URL by setting the
serverUrl
parameter in your configuration. This will override the default VAPI URL. You can set this at various levels such as function, assistant, phoneNumber, or org, with the precedence order being function.serverUrl > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. Additionally, you can secure your custom server by using the
serverUrlSecret
parameter, which will be sent as a header called
x-vapi-secret
with every request to your server. This adds an extra layer of security to ensure that the requests are coming from your VAPI implementation. If you need further assistance with setting this up or have any more questions, please let me know!
k
looking to obfuscate references to vapi
s
@kevinmtu this would hit your API that you proxy to us. const vapi = new Vapi('your-public-key', https://your-url/voice);
3 Views