Vicious Dog
09/22/2025, 12:04 PMVapi Support Bot
09/22/2025, 12:05 PMjs
// Example: Express route to handle Vapi call with transient assistant
app.post('/call', async (req, res) => {
const vapi = new VapiClient({ token: process.env.VAPI_API_KEY });
const call = await vapi.calls.create({ assistant: req.body.assistant, ...req.body });
res.json(call);
});
Call your backend from the frontend instead of Vapi directly. This keeps your private key secure and allows transient assistant usage.
[See proxy server guide](https://docs.vapi.ai/security-and-privacy/proxy-server)
Sources:
- [Proxy server guide](https://docs.vapi.ai/security-and-privacy/proxy-server)
- [Transient vs permanent configurations](https://docs.vapi.ai/assistants/concepts/transient-vs-permanent-configurations)Vicious Dog
09/22/2025, 12:07 PMVicious Dog
09/22/2025, 12:42 PMChiranjeet Mishra
09/25/2025, 4:50 PMVicious Dog
09/27/2025, 3:03 PMVicious Dog
09/27/2025, 3:04 PMEMILIANOM
09/27/2025, 6:24 PMEMILIANOM
09/27/2025, 6:25 PMEMILIANOM
09/27/2025, 6:47 PMVicious Dog
09/27/2025, 8:27 PM