Seygi
12/10/2025, 10:18 PMSeygi
12/10/2025, 10:18 PMVapi Support Bot
12/10/2025, 10:19 PMcall-ended event and check the endedReason field for failure codes like twilio-failed-to-connect-call. Here’s a sample Express.js handler:
js
app.post('/webhook', (req, res) => {
if (req.body.type === 'call-ended' && req.body.call.endedReason) {
console.log('Call failed:', req.body.call.endedReason);
// Handle failure notification here
}
res.sendStatus(200);
});
Update your Vapi webhook URL to point to this endpoint, and you’ll be notified of call failures via webhook events with the relevant reason code. For more details, see the [Call ended reasons documentation](https://docs.vapi.ai/calls/call-ended-reason).
Sources:
- [Call ended reasons documentation](https://docs.vapi.ai/calls/call-ended-reason)
- [Webhook CLI/Webhook Testing Guide](https://docs.vapi.ai/cli/webhook)Seygi
12/10/2025, 10:34 PMcall-ended event
https://cdn.discordapp.com/attachments/1448438798999355473/1448442823006228601/image.png?ex=693b46ff&is=6939f57f&hm=c33fb1211baab3d0761c31bee1f63a12922af90389f45eb189bc0a251644df87&Seygi
12/11/2025, 9:45 PMSeygi
12/12/2025, 2:56 PMChiranjeet Mishra
12/12/2025, 9:58 PMtrial, then you should receive webhook status-update. We are currently seeing this error in the logs for your call id:
🔴 22:13:00:688 Couldn't initiate outbound call transport and queue for call 019b0a53-24ab-744b-96ba-9b2750c7e8c0. Error: Couldn't Create Twilio Call. Twilio Error: Account not authorized to call +923464801343. Perhaps you need to enable some international permissions: https://www.twilio.com/console/voice/calls/geo-permissions/low-riskSeygi
12/15/2025, 4:14 PM