george_92412
08/28/2025, 8:40 AMAI Evy
08/28/2025, 8:40 AMAI Evy
08/28/2025, 8:40 AMduration_ms field that shows the total call duration in milliseconds [(1) ]() . You can also access start_timestamp and end_timestamp fields to calculate the duration yourself .
The API response includes:
json
{
"start_timestamp": 1703302407333,
"end_timestamp": 1703302428855,
"duration_ms": 10000
}
However, based on the available documentation, I don't see specific information about how the duration is calculated when calls are transferred to external agents or whether this duration includes post-transfer time.
For accessing Twilio Call SID information, there's a known issue where the twilio_call_sid field may not always be populated depending on your setup [(2) ]() . The field is available when using purchased or imported numbers, but may not work with dial-to-SIP configurations .
If you need more detailed call analytics beyond what's provided in Retell's API response, you may need to bring your own Twilio account to access the full Twilio call details directly.AI Evy
08/28/2025, 8:40 AMAI Evy
08/28/2025, 8:40 AMgeorge_92412
08/28/2025, 8:42 AMgeorge_92412
08/28/2025, 8:42 AMAI Evy
08/28/2025, 8:42 AMAI Evy
08/28/2025, 8:42 AMstart_timestamp and end_timestamp fields represent the beginning and end of the call within Retell's system [(1) ]() [(2) ]() [(3) ]() . The duration_ms field shows the duration of the call in milliseconds and is available after the call ends .
However, you're correct that this duration appears to only cover the time the call was active within Retell's system. The documentation doesn't specify whether the duration includes time after a call transfer to an external agent outside of Retell's control.
For post-transfer call duration, you would likely need to:
1. Use your own Twilio account to access the complete call records via Twilio's API
2. Implement call tracking on your external agent system to measure the total duration
3. Combine the Retell call duration with your external system's duration tracking
The Retell API provides these timing fields :
json
{
"start_timestamp": 1703302407333,
"end_timestamp": 1703302428855,
"duration_ms": 10000
}
But these timestamps reflect when the call started and ended within Retell's system, not necessarily the complete call duration including external transfers.AI Evy
08/28/2025, 8:42 AMAI Evy
08/28/2025, 8:42 AMgeorge_92412
08/28/2025, 8:43 AMAI Evy
08/28/2025, 8:43 AMAI Evy
08/28/2025, 8:43 AMduration_ms, start_timestamp, and end_timestamp fields only track the call duration within Retell's system [(1) ]() [(2) ]() . These fields are available after the call ends but do not include time spent with external agents after a call transfer .
The API response provides these timing fields [(1) ]() :
json
{
"start_timestamp": 1703302407333,
"end_timestamp": 1703302428855,
"duration_ms": 10000
}
Unfortunately, Retell's API does not currently provide a way to capture the total call duration including external transfer time. To get the complete call duration including external agent time, you would need to bring your own Twilio account and use Twilio's API directly to access the full call records.
The twilio_call_sid field is provided in the response , but since Retell manages the Twilio account, you don't have access to the Account SID or Auth Token needed to query Twilio's API for the complete call details.AI Evy
08/28/2025, 8:43 AMAI Evy
08/28/2025, 8:43 AMgeorge_92412
08/28/2025, 8:44 AMAI Evy
08/28/2025, 8:44 AMAI Evy
08/28/2025, 8:45 AMAI Evy
08/28/2025, 8:45 AMAI Evy
08/28/2025, 8:45 AMAI Evy
08/28/2025, 8:45 AM