Retrieve Call Statistics

GET /stats/call-statistics/

Use the GET /stats/call-statistics/ endpoint to fetch aggregated statistics related to calls. The statistics may include metrics such as total calls, average duration, and call outcomes.


Parameters

This endpoint does not require any parameters.


Responses

200 OK

Description: Successfully retrieved call statistics.

Example Response:

{
  "total_calls": 1500,
  "successful_calls": 1400,
  "failed_calls": 100,
  "average_call_duration": "00:05:30",
  "most_active_time": "14:00 - 15:00",
  "call_outcomes": {
    "answered": 1200,
    "declined": 200,
    "missed": 100
  }
}

Last updated