Call duration statistics

View as Markdown
Returns call duration statistics including average, median, p90, p95 percentiles, and the proportion of short vs. long calls.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Query parameters

agentIdstringOptional

Comma-separated agent IDs to filter results

campaignIdstringOptional
Campaign ID to filter results
callTypestringOptional

Type of call to filter (e.g. inbound, outbound)

dateFromdatetimeOptional

Start of date range (ISO 8601)

dateTodatetimeOptional

End of date range (ISO 8601)

Response

Duration statistics
successboolean
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error