username420
03/30/2026, 2:16 PMVapi Support Bot
03/30/2026, 2:17 PMjs
app.post('/webhook', (req, res) => {
const eventType = req.body?.message?.type;
if (eventType === 'tool-calls') {
// Handle your calendar tool logic here
}
res.sendStatus(200); // Always respond to acknowledge receipt
});
Just process the "tool-calls" events and ignore "chat.created" events—they are informational and do not require a response.
Source: [Vapi Server Events documentation](https://docs.vapi.ai/server-url/events)Matt
03/30/2026, 2:17 PMusername420
03/30/2026, 2:36 PMMatt
03/31/2026, 6:35 AMShaunak
03/31/2026, 7:37 AMShaunak
03/31/2026, 7:37 AM