Legacy Dev Forum Posts

 View Only

Sign Up

API Query To Get Total Offered Calls to all Queues for a specific date

  • 1.  API Query To Get Total Offered Calls to all Queues for a specific date

    Posted 06-05-2025 18:20

    Chris_Carr | 2021-09-29 16:48:05 UTC | #1

    HI

    Is there an API Query To Get Total Offered Calls to all Queues for a specific date?

    Thank you.


    Eos_Rios | 2021-10-07 22:52:24 UTC | #2

    /api/v2/analytics/conversations/aggregates/query

    { "interval": "2021-09-28T00:00:00/2021-09-29T00:00:00", "granularity": "P1D", "timeZone": "UTC", "metrics": ["nOffered"] }

    Adjust timezone and add any additional groupings or filters as needd.


    Chris_Carr | 2021-10-07 22:52:24 UTC | #3

    Eos_Rios, post:2, topic:12185"] { "interval": "2021-09-28T00:00:00/2021-09-29T00:00:00", "granularity": "P1D", "timeZone": "UTC", "metrics": ["nOffered
    }

    Thank you!!

    What does the below stats mean as in max, count and sum?

    "metric": "tAnswered", "stats": { "max": 128009, "count": 9, "sum": 249473

    Thank you.


    Eos_Rios | 2021-09-29 17:59:59 UTC | #4

    Max is the highest value a call had in that field, count is how many answers happened and sum is the cumulative duration of all 9 of them.


    Chris_Carr | 2021-09-29 18:09:15 UTC | #5

    Thank you this is brilliant! I appreciate it very much.


    Chris_Carr | 2021-09-29 18:11:25 UTC | #6

    is max the highest duration value?


    Chris_Carr | 2021-09-29 18:40:35 UTC | #7

    When I try run it agains tCallbackComplete I get a 400 bad request:

    { "interval": "2021-09-20T00:00:00/2021-09-21T00:00:00", "granularity": "P1D", "timeZone": "UTC", "metrics": ["tCallbackComplete"] }


    Jerome.Saint-Marc | 2021-09-30 06:47:35 UTC | #8

    Hello,

    I think that the 5 Conversation Aggregate Metrics which are tagged as "Preview" are not available at this stage (i.e. not available/released yet): nCobrowseSessions, tCallback, tCallbackComplete, tCoaching, tMonitoringComplete

    The 400 response body says: "unsupported metric xyz"

    Regards,


    Chris_Carr | 2021-09-30 11:57:25 UTC | #9

    Hi Jerome,

    Thank you, customer care confirmed that these metrics are not available at this time.

    Thanks again.

    Kind Regards,


    Eos_Rios | 2021-09-30 13:56:51 UTC | #10

    is max the highest duration value?

    yes, as I understand it max is the highest duration contributing to sum.


    Chris_Carr | 2021-10-07 22:52:10 UTC | #11

    Thank you very much.


    system | 2021-11-07 22:52:40 UTC | #12

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 12185