v2

latestOpenAPI 3.1.02026-07-313981108.2 KB
Calls

Get Call Metrics Stats

Returns aggregated call metrics (TTS/LLM/STT latency, turns, barge-in, durations) for finished calls in a date range.

  • Default (no teamId): returns stats for the requester's team.
  • teamId=all: returns all-teams stats (super_admin only).
  • Date range (start to end) must not exceed 31 days.
get/calls/v1/stats/call-metrics

Query parameters

startstring date-time
Example:2024-11-01T00:00:00.000Z

Start of the date range (ISO 8601). Defaults to start of the current month.

endstring date-time
Example:2024-11-30T23:59:59.999Z

End of the date range (ISO 8601). Defaults to end of the current month. Must be within 31 days of start.

teamIdstring
Example:66bb3b489f7f0f58f7bcadbc

Team to query. Omit for the current team. Use all for all teams (super_admin only).

assistantIdstring
Example:5b0a4a08-133c-4146-9315-0984f8c6be80

Filter metrics for a single assistant. Pass temp-assistant to include temporary assistants.

assistantIdsstring[]

Filter metrics for multiple assistants.

Response

Successful response

messagestring

Example response

{
  "message": "Team call metrics retrieved successfully",
  "data": {
    "teamId": "66bb3b489f7f0f58f7bcadbc",
    "totalCalls": 174,
    "totalCallDuration": 4847802,
    "assistantCallDuration": 4801118,
    "avgCallDuration": 27860.93
  }
}