https://retellai.com/?utm_source=discord&utm_medium=seo logo
My agent is not passing any data on the webhook th...
# ❓・ai-evy-support
a
@AI Evy My agent is not passing any data on the webhook that i have linked in my workflow. I have checked and tested my endpoint and it's working. The main issue is Retell is not passing anything on the webhook, I have tried with multiple webhooks but it is not sending data to any of those. Can anyone help me out here, although I have reached to the support team but after taking my agent id they have not given me any update so reaching out here with my concern
a
Thanks for tagging me @ankitkr4479. I'll look through relevant sources and get back to you shortly.
### Answer Here are several common reasons why your webhook might not be receiving data from Retell AI: 1. Webhook Configuration Location Webhooks can be configured in two places, and the agent-level webhook takes precedence [(1) ]() : - **Agent-level**: Set in the agent's
webhook_url
field - **Account-level**: Set in your dashboard If you've set a webhook at the agent level, it will override the account-level webhook for that specific agent . 2. Webhook Timeout Requirements The webhook has a timeout of 10 seconds [(2) ]() . Your endpoint must respond with a success status (2xx) within 10 seconds, or the webhook will be retried up to 3 times . Ensure your endpoint responds quickly. 3. Event Trigger Conditions Not all calls trigger all webhook events : -
call_started
is not triggered if the call did not connect (e.g.,
dial_failed
,
dial_no_answer
,
dial_busy
) -
call_ended
and
call_analyzed
will still trigger even for failed connections 4. Verify Your Webhook Setup Your webhook endpoint should accept POST requests with JSON payloads [(3) ]() . Here's the expected structure:
Copy code
javascript
app.post("/webhook", (req: Request, res: Response) => {
 const {event, call} = req.body;
 switch (event) {
 case "call_started":
 console.log("Call started event received", call.call_id) ;
 break;
 case "call_ended":
 console.log("Call ended event received", call.call_id) ;
 break;
 case "call_analyzed":
 console.log("Call analyzed event received", call.call_id) ;
 break;
 default:
 console.log("Received an unknown event:", event) ;
 }
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
5. Check Response Requirements Your endpoint must return a successful status code (2xx) with no body expected [(2) ]() . Troubleshooting Steps: 1. Verify the webhook URL is correctly set in your agent configuration [(1) ]() 2. Ensure your endpoint is publicly accessible (use ngrok for local testing) [(3) ]() 3. Check that your endpoint responds within 10 seconds [(2) ]() 4. Confirm you're testing with calls that actually connect (to trigger
call_started
) 5. Review your server logs to see if requests are arriving but failing If you've verified all these points and still aren't receiving data, the support team should be able to check the webhook delivery logs for your specific agent.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[3] Setup guide](https://docs.retellai.com/features/register-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.