Legacy Dev Forum Posts

 View Only

Sign Up

API for Min and Max Time in status for Agent

  • 1.  API for Min and Max Time in status for Agent

    Posted 06-05-2025 19:06

    SergioRota | 2020-05-15 08:33:00 UTC | #1

    Hi Community,

    is there an api method to retrieve the maximum time in a state for an agent?

    I have seen that in the API: / api / v2 / analytics / users / aggregates / query can i get this:

    { "interval": "2020-05-14T22: 00: 00.000Z / 2020-05-15T22: 00: 00.000Z", "metrics": [ { "metric": "tOrganizationPresence", "qualifier": "e08eaf1b-ee47-4fa9-a231-1200e284798f", "stats": { "sum": 2568597 } }, { "metric": "tAgentRoutingStatus", "qualifier": "INTERACTING", "stats": { "sum": 33976

    is there something like this that also returns the min and max?

    Thanks Sergio


    tim.smith | 2020-05-19 12:35:58 UTC | #2

    You could use the User Status Details Query and calculate and sort each individual status change.


    system | 2020-06-18 12:36:00 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 7797