Calls-Statistics

Obtain Calls Statistics by filter summarized by period

Curated wrapper over /api/cdrs/cdrs-aggregate: forces yearly period and a fixed set of useful fields (total calls, successful calls, ACD, ASR, costs). Pass the human-readable groupings in group_by (semicolon-separated, e.g. "period;campaign"). For raw aggregation use aggregate_cdrs instead.

post/{sub_domain}/api/calls-statistics

Request

  • Base URL
    https://api.commpeak.com/dialer
  • URL
    https://api.commpeak.com/dialer/{sub_domain}/api/calls-statistics
  • Auth
    API key in header Authorization

Path parameters

sub_domainstring required

Dialer Name (subdomain)

Request body

group_bystring required

Example request

{
  "filter": {
    "start_at": "2020-01-01 00:00:00",
    "end_at": "2025-01-01 23:59:59"
  },
  "group_by": "period;campaign"
}

Response

Successful Response

Changes

No recorded changes to this operation across all 1 revision of this API.