Voice Log
# support
b
I need to find-out the total minutes an assistant used Vapi. When I call the /call/?assistantId there are several minutes which is confusing.
k
To get total minutes used by a Vapi assistant, fetch all calls via /call/?assistantId, sum the durationSeconds values, and divide by 60, ensure to handle pagination if needed.
b
@Kings_big💫 There is no
durationSeconds
in the Swagger response. : https://api.vapi.ai/api#/Calls/CallController_findAll
k
To get call duration, use the Get Call endpoint and calculate it using startedAt and endedAt timestamps