Browse the API reference

Assistants

Get assistant statistics

View as Markdown
gethttps://www.getrevox.com/api/assistants/{id}/statistics

Retrieve the "Statistiques" report for an assistant's inbound activity: total calls received with a 12-week activity chart, the weekday and hour distribution, and the duration breakdown of answered calls. The perimeter is invariant and matches the call-history page filtered on this agent and the inbound direction: calls with your organization id, this assistant id, direction 'inbound' and not soft-deleted — no status or date filter. All weekday/hour/week bucketing happens server-side in the assistant's reporting timezone (currently fixed to Europe/Paris). 'has_activity' is false when no inbound call exists yet (the UI then shows the empty state, never a zero-count test), and 'weekly_average' is null in that case. Durations cover answered calls only (last attempt with both answered_at and ended_at); the rest are counted as unanswered.

Path parameters

  • idstringrequired

Responses

200Success
  • statisticsobjectrequired
    Show 4 fields
    • assistantobjectrequired
      Show 4 fields
      • idstringrequired
      • namestringrequired
      • timezonestringrequired
      • has_activitybooleanrequired
    • activityobjectrequired
      Show 3 fields
      • calls_totalnumberrequired
      • weekly_averagenumberrequirednullable
      • weeksarray of objectrequired
        Show 2 fields
        • week_startstringrequired
        • countnumberrequired
    • weekdaysobjectrequired
      Show 3 fields
      • daysarray of numberrequired
      • busiest_dayobjectrequirednullable
        Show 2 fields
        • indexnumberrequired
        • countnumberrequired
      • busiest_hourobjectrequirednullable
        Show 2 fields
        • startnumberrequired
        • countnumberrequired
    • durationsobjectrequired
      Show 3 fields
      • average_secondsnumberrequirednullable
      • bucketsobjectrequired
        Show 4 fields
        • under_1numberrequired
        • from_1_to_2numberrequired
        • from_2_to_3numberrequired
        • over_3numberrequired
      • unanswerednumberrequired
404Not found in your organization
  • errorstringrequired