https://retellai.com/?utm_source=discord&utm_medium=seo logo
not receiving the webhook notification in discord
# ❓・ai-evy-support
d
@AI Evy not receiving the webhook notification in discord
a
Thanks for tagging me @dr.romik. I'll look through relevant sources and get back to you shortly.
### Answer There are several potential causes for not receiving webhook notifications from Retell AI [(1) ]() . The webhook has a timeout of 10 seconds, and if no success status (2xx) is received within that time, it will be retried up to 3 times . First, verify your webhook endpoint is properly configured to return a success status. Here's the proper Node.js implementation for handling webhooks:
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
 if (
 !Retell.verify(
 JSON.stringify(req.body) ,
 process.env.RETELL_API_KEY,
 req.headers["x-retell-signature"] as string,
 )
 ) {
 console.error("Invalid signature") ;
 return;
 }
 const {event, call} = req.body;
 // process the webhook
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
[(2) ]() Key troubleshooting points: 1. Ensure your endpoint returns a 2xx status code within 10 seconds [(1) ]() 2. Verify the webhook signature using your API key (only API keys with a webhook badge can verify webhooks) [(2) ]() 3. Check that your endpoint can handle the webhook payload structure [(1) ]() 4. Note that if a call doesn't connect (dial failed, no answer, busy) , the
call_started
webhook won't trigger, but
call_ended
and
call_analyzed
will still be sent Other users have reported similar issues with missing webhook notifications [(3) ]() , so double-check your endpoint configuration and response handling.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Secure the webhook](https://docs.retellai.com/features/secure-webhook) [[3] Webhook issue](https://discord.com/channels/1186424376300679209/1313609427932151808) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.