Get Call History Metrics
Calls
Get Call History Metrics
Retrieve aggregated metrics and analytics for call history records in your workspace.
GET
Get Call History Metrics
Headers
API key used for authenticating requests to the API.
Workspace identifier for the API.
Query Parameters
Filter metrics by a specific agent ID.
Filter by call status (e.g., “completed”, “failed”, “no-answer”).
Filter by call direction (“inbound”, “outbound”, “bidirectional”).
Filter by call flow ID.
JSON string with startDate and endDate in ISO format. Example:
{"startDate":"2024-01-01","endDate":"2024-01-31"}Filter by call type: “sip” or “web”.
Response Fields
Total number of calls matching the filters.
Number of completed calls.
Number of failed calls.
Average call duration in seconds.
Total cost of all calls.
