Alberto
02/05/2026, 3:44 AMVapi Support Bot
02/05/2026, 3:45 AMhttps://myproxy.com is handling the /call endpoint and forwarding requests to Vapi. Here’s a minimal example of a proxy handler (e.g., for a Cloudflare Worker):
js
export default {
async fetch(request, env, ctx) {
if (new URL(request.url).pathname.startsWith('/call')) {
const response = await fetch(`https://api.vapi.ai/call`, {
method: 'POST',
headers: { Authorization: `Bearer ${env.VAPI_API_KEY}`, 'Content-Type': 'application/json' },
body: await request.text(),
});
return new Response(response.body, { status: response.status });
}
return new Response('Proxy running');
}
}
Ensure your proxy is live and accessible at the URL you provide in the frontend.
For more details, see the [Vapi proxy server guide](https://docs.vapi.ai/security-and-privacy/proxy-server).
Source:
- [Proxy server guide](https://docs.vapi.ai/security-and-privacy/proxy-server)Alberto
02/05/2026, 3:55 AMAlberto
02/05/2026, 4:00 AMChiranjeet Mishra
02/07/2026, 1:01 AM