Janmeet Singh
06/05/2025, 5:50 PMVapi Support Bot
06/05/2025, 5:52 PMjs
app.post('/vapi-webhook', (req, res) => {
  if (req.body.message?.type === "end-of-call-report") {
    const call = req.body.message.call;
    const phone = call?.from?.phoneNumber;
    // Extract name, date, time from summary or transcript as needed
    const summary = req.body.message.summary;
    // Save { name, phone, date, time } to your DB here
  }
  res.sendStatus(200);
});
You’ll need to parse the summary/transcript to extract appointment details. This lets you store all relevant data after each call.  
[See Vapi docs for details](https://docs.vapi.ai/server-url/events#end-of-call-report)
Source:
- [Server Events End of Call Report](https://docs.vapi.ai/server-url/events#end-of-call-report)Kings_big💫
06/06/2025, 6:19 AM