https://retellai.com/?utm_source=discord&utm_medium=seo logo
What is sent through after a call is ended
# ❓・ai-evy-support
b
@AI Evy What is sent through after a call is ended? I want to tell my system how long the call lasted because we mark calls that last more than 3 minutes as "picked up" and calls shorter continue to be on our call cadence and follow-up
a
Thanks for tagging me @byredyre. I'll look through relevant sources and get back to you shortly.
### Answer After a call ends in Retell AI, the system provides several fields in the call object that you can use to determine call duration: - end_timestamp: End timestamp (milliseconds since epoch) of the call, available after the call ends. - start_timestamp: Begin timestamp (milliseconds since epoch) of the call, available after the call starts. - duration_ms: Duration of the call in milliseconds, available after the call ends. You can use the duration_ms field directly to determine the call length in milliseconds, or calculate the difference between end_timestamp and start_timestamp. These fields are included in the data sent through after a call ends [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Update Call](https://docs.retellai.com/api-references/update-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy That would work, if we had setup webhooks with ReTell. However, the system doesn't currently support webhooks, so we would need to add a new endpoint with all related validations and error checking to update the GHL contact in response to the call results.
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer Retell AI does support webhooks for both inbound and outbound calls, which are specifically designed to notify your system about call events in real time, including after a call ends [(1) ]() [(2) ]() . This means you can use webhooks to receive call results, including call duration, directly to your system and then update your contact or CRM as needed . If you haven't set up webhooks yet, you would need to implement a webhook endpoint and configure it in the Retell AI dashboard. This endpoint will receive structured JSON data from Retell AI, and you can add your own validation and error handling within that endpoint [(3) ]() [(1) ]() [(2) ]() . If your current environment truly doesn't support webhooks (for example, due to infrastructure or policy limitations) , you would indeed need to find another way to update your CRM. However, webhooks are the intended and supported way for Retell AI to push call result data to your system for real-time workflow automation and integration [(1) ]() [(2) ]() . If you need help setting up webhooks or want links to relevant setup guides, let me know.
​ To learn more, see the sources I considered: [[1] Retell AI Webhooks | AI Voice Agents With Live Data | Retell AI](https://www.retellai.com/blog/retell-ai-webhooks-feature) [[2] Webhook](https://www.retellai.com/glossary/webhook) [[3] Inbound call 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.