continuing-cyan
continuing-cyan3h ago

Getting "end of call report" 2 times in webhook

Hello team I am facing issue in every assistant in webhook getting end of call report two times which is causing issue for me Assistant id - 34c92e26-aa44-4038-933d-e7c678c8238f call id - 019abfe1-5034-711c-aa67-f1dfd5fefee1
5 Replies
Vapi Support Bot
To prevent receiving duplicate "end-of-call-report" webhooks, make sure your webhook endpoint always responds quickly with a 200 OK status. For example, in Express.js:
app.post('/webhook', (req, res) => {
// Handle the webhook logic here
res.status(200).send('OK'); // Respond immediately
});
app.post('/webhook', (req, res) => {
// Handle the webhook logic here
res.status(200).send('OK'); // Respond immediately
});
This ensures Vapi knows your server received the event, avoiding retries and duplicate reports.
For more details, see the Server events documentation. Source: - Server events documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Duckie
Duckie3h ago
Message marked as helpful by @Sachin Jaiswal! 🎉
continuing-cyan
continuing-cyanOP3h ago
@Duckie not helpful it didn't worked It's still causing issue
Vapi Support Bot
To avoid duplicate "end-of-call-report" webhooks, make sure your webhook handler responds immediately and processes the event asynchronously. Here’s an example in Express.js:
app.post('/webhook', async (req, res) => {
res.status(200).send(); // Respond right away
// Process the event in the background (e.g., queue it for later)
});
app.post('/webhook', async (req, res) => {
res.status(200).send(); // Respond right away
// Process the event in the background (e.g., queue it for later)
});
This prevents Vapi from retrying the webhook due to timeouts or slow processing.
For more details, see the Vapi CLI webhook documentation. Source: - Vapi CLI webhook documentation
continuing-cyan
continuing-cyanOP3h ago
What will go in error case

Did you find this page helpful?