https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why does the Retell AI webhook sometimes trigger t...
# ❓・ai-evy-support
i
@AI Evy Why does the Retell AI webhook sometimes trigger the same event twice, like call_ended for the same call?
a
Thanks for tagging me @iamluciferx. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available information, this appears to be a known issue that some users have experienced with Retell AI webhooks [(1) ]() [(2) ]() . According to community discussions, webhook events like
call_started
have been observed triggering twice inconsistently on some inbound calls [(2) ]() . Users have reported this happening since around August 16th, 2024, where some calls receive the expected single webhook while others receive duplicate webhooks . However, it's important to note that not all webhook events are designed to trigger only once [(3) ]() . According to one community response, only
call_started
and
call_ended
events are intended to trigger one time, while other events like
call_analyzed
may trigger multiple times as part of normal operation . For webhook reliability, Retell AI expects a successful status code (2xx) to be returned from your webhook endpoint [(4) ]() . If your endpoint doesn't respond properly, the system might retry sending the webhook, which could explain duplicate events. To handle this, you should implement idempotency checks in your webhook handler to guard against processing the same event multiple times, especially since this behavior has been reported by multiple users [(2) ]() .
​ To learn more, see the sources I considered: [[1] Webhook running twice for same event](https://discord.com/channels/1186424376300679209/1352045972754272256) [[2] webhook for call_started event getting sent twice on some inbound calls](https://discord.com/channels/1186424376300679209/1275810854440276039) [[3] call_analyzed webhook triggered multiple times](https://discord.com/channels/1186424376300679209/1408550487216750634) [[4] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.