https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why does the duration in the call log does not mat...
# ❓・ai-evy-support
s
@AI Evy Why does the duration in the call log does not match the total_duration_seconds that we are getting from the webhook?
a
Thanks for tagging me @sanjay_69738. I'll look through relevant sources and get back to you shortly.
### Answer The call object contains two different duration-related fields: -
duration_ms
– the call duration in milliseconds [(1) ]() -
total_duration_seconds
(inside
call_cost
) – the duration in seconds, used for billing/cost calculation These fields represent the same underlying duration but in different units. If you're seeing a mismatch, verify that you're comparing like-for-like: -
duration_ms / 1000
should approximately equal
total_duration_seconds
You can also calculate duration yourself by subtracting
start_timestamp
from
end_timestamp
(both in milliseconds) , then dividing by 1000 to get seconds. [(2) ]() If the values still don't match after unit conversion, double-check which call record you're looking at—sometimes duplicate call records can be created (e.g., one with an error status and one that completed successfully) , which could cause confusion. [(6) ]()
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] Get call details through the webhook](https://discord.com/channels/1186424376300679209/1265244575463899209) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.