https://retellai.com/?utm_source=discord&utm_medium=seo logo
Realised I had the wrong webhook url on
# ❓・ai-evy-support
c
@AI Evy Realised I had the wrong webhook url on... Is there a way to get all the chats and reperform the webhooks?
a
Thanks for tagging me @Ciaran. I'll look through relevant sources and get back to you shortly.
### Answer I don't have information on retrieving all past chats and re-sending their webhooks. The sources don't describe a replay or resend mechanism for webhooks that were already delivered. What the sources do cover is how to correct the webhook URL going forward: - For chat agents,
webhook_url
is a field you can set when creating or updating a chat agent. The update endpoint is
PATCH /update-chat-agent/{agent_id}
, and the example body includes `"webhook_url": " [(1)]() - For inbound SMS on a Retell number,
inbound_sms_webhook_url
is configured per phone number via the Update Phone Number API. This webhook fires when an inbound SMS arrives, so it's separate from agent-level event webhooks. [(2)]()
Copy code
javascript
const chatAgentResponse = await client.chatAgent.update('16b980523634a6dc504898cda492e939');
[(1)]() Fixing the URL only affects future events. Whether previously failed or missed events can be replayed isn't something I can confirm from the available information. Check out these potentially useful sources: [Update Chat Agent](), [Update Phone Number](), [Inbound call & SMS webhook]() I can also give a general answer based on my broader knowledge if you'd like.
​ To learn more, see the sources I considered: [[1] Update Chat Agent](https://docs.retellai.com/api-references/update-chat-agent) [[2] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.