Create a web call on the server
# support
b
Ability to hide prompts from frontend dev tools, by creating a web call with a server SDK and passing a token to the client SDK to join. https://cdn.discordapp.com/attachments/1357396338270277702/1357396338429399150/image.png?ex=67f00d5a&is=67eebbda&hm=88f667109b58b5f438f4eb68b9de0eaca79e8ccbb0095fa77f0b6df8d7e6db03&
v
I see you're trying to create a web call using the server SDK but encountering an error with the
type
parameter. Based on the information available, it seems there's a misunderstanding about how web calls are created in Vapi. According to the documentation, the
/call
endpoint you're using is specifically designed for phone calls
(either outbound or inbound), not web calls. That's why you're getting the error message that
type
must be one of:
outboundPhoneCall, inboundPhoneCall
. For web calls, you need to use a different approach: 1. Web calls require using the [Web SDK](https://docs.vapi.ai/sdk/web) or web-html-snippet rather than the
/call
endpoint 2. The server-side approach you're looking for would likely involve: - Generating authentication tokens on your server - Passing those tokens to your client application - Using the client SDK to initialize and join the call Could you clarify if you've already looked into using the Web SDK with server-generated tokens? And are you specifically trying to hide prompts from frontend dev tools, or do you have other security concerns as well? Sources: - [Vapi Web SDK Documentation](https://docs.vapi.ai/sdk/web) - [Vapi Web Quickstart Guide](https://docs.vapi.ai/quickstart/web)
s
Thank you for reaching out to us. We've received your message and will get back to you as soon as possible.
Hi, checking if this is resolved/solved for you?