https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to connect webhook with retell
# ❓・ai-evy-support
m
@AI Evy how to connect webhook with retell
a
Thanks for tagging me @mirovalor0103. I'll look through relevant sources and get back to you shortly.
### Answer To connect webhooks with Retell AI, you need to configure your webhook endpoint to receive event notifications from Retell. [(1) ]() ## Webhook Configuration Retell AI supports webhook notifications for call events that POST data to your endpoint. The webhook has a timeout of 10 seconds and will retry up to 3 times if no success status (2xx) is received. [(1) ]() [(2) ]() ## Event Types Retell AI triggers webhooks for these events: [(1) ]() -
call_started
- Triggered when a new call begins -
call_ended
- Triggered when a call completes, transfers, or encounters an error -
call_analyzed
- Triggered when call analysis is complete Note: If the call did not connect (like dial failed) , the
call_started
webhook event will not be triggered. ## Webhook Setup To set up webhooks: 1. Configure your webhook URL in your Retell AI agent settings or phone number configuration [(2) ]() 2. Your endpoint should accept POST requests and return a 2xx status code [(1) ]() [(2) ]() 3. The webhook can be verified using your Retell API Key to ensure it comes from Retell AI [(2) ]() ## Request Payload Example The webhook will contain the event type and call object: [(1) ]()
Copy code
json
{
  "event": "call_ended",
  ...
}
For inbound calls, you can also configure an inbound webhook that allows you to filter calls, add dynamic variables, or override agent settings before the call connects. [(2) ]()
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Inbound webhook](https://docs.retellai.com/features/inbound-call-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
i need to get data froma custom function