Server URL Call-Ended
# support
r
Configuring my serverURL using a custom webhook via make, but it triggered every second of the call. How do I change this so it only triggers my webhook for the Call-Ended event?
v
Thanks for your question! To help you set your webhook to trigger only for the "Call-Ended" event, could you clarify how you are currently configuring your webhook in Make—are you able to set event filters (like "call-ended") in your scenario, or are you receiving all events and handling filtering in your webhook handler code? Source: - [Vapi CLI Webhook Documentation](https://docs.vapi.ai/cli/webhook)
v
Message marked as helpful by @raymoney! 🎉
r
I can set filters in make, but the amount of credits being consumed would not be sustainable. And I don’t have webhook handler code in make @Vapi Support Bot
v
Currently, Vapi sends all event types (including "call-ended") to your server URL, and there is no built-in way to filter for only "call-ended" events at the Vapi configuration level. If Make filtering is too costly, the recommended approach is to set up a lightweight webhook handler (for example, using a simple Node.js/Express server) that only forwards "call-ended" events to Make, reducing unnecessary triggers and credit usage.
Copy code
js
// Example: Only forward "call-ended" events
app.post('/webhook', (req, res) => {
  if (req.body.type === 'call-ended') {
    // Forward to Make here
  }
  res.status(200).send();
});
For now, direct event filtering at the Vapi webhook configuration is not supported ([see docs](https://docs.vapi.ai/server-url)). Sources: - [Server URLs](https://docs.vapi.ai/server-url) - [CLI Webhook Documentation](https://docs.vapi.ai/cli/webhook)
r
If anyone has a workaround for this it would be much appreciated
c
You could also just use the
end-of-call
report as your main identifier for a call-ended webhook since it only executes once at the end of a call.
r
Thanks Kyle, it is filtered to only run end_of_call_reports in my make scenario, but vapi still sends every instance to the webhook. How do I change it in Vapi so that it only sends the end_of_call_reports?
c
Remove all other serverMessages besides the end-of-call report.