Get call duration statistics
Returns call count, average duration, and total duration. Can be filtered by sequence, user, date range, and workspace. Pass workspaceId to narrow to a single workspace within the API key scope. The legacy teamId parameter is still accepted but adds a Deprecation: true response header.
Authorizations
Enter your API Key (sk_live_xxx or sk_test_xxx)
Query Parameters
Filter by sequence ID
Filter by user membership ID
Filter by call type. "all" includes sequence + direct calls.
all, sequence, direct, inbound, outbound Time granularity for grouping results
hour, day, week, month, none Start date (ISO format)
End date (ISO format)
Filter stats by a single workspace ID (must be within the API key scope). Stats endpoints accept exactly one workspace, unlike list endpoints which support a comma-separated workspaceIds filter. Replaces the deprecated teamId.
Deprecated — use workspaceId instead. When set, the response includes a Deprecation: true header.
Response
Call duration statistics