Legacy Dev Forum Posts

 View Only

Sign Up

Queue Observations with API request

  • 1.  Queue Observations with API request

    Posted 06-05-2025 18:19

    Fquin | 2021-05-15 14:49:27 UTC | #1

    Hi there,

    first let me apologize for the newbie question but I'm trying to make an API call to get some queue metrics. I definitely have something wrong as I'm getting error 400. Any help would be greatly appreciated!

    { "filter": { "type": "and", "clauses": [ { "type": "or", "predicates": [ { "dimension": "queueId", "operator": "matches", "value": "QUEUEID", "range": {} } ] } ], "predicates": [ { "dimension": "mediaType", "value": "voice", "range": { "gt": {}, "gte": {}, "lt": {}, "lte": {} } } ] }, "metrics": ["oUserRoutingStatuses"], "detailMetrics": ["oActiveUsers", "oAlerting", "oInteracting", "oMemberUsers", "oOffQueueUsers", "oOnQueueUsers", "oUserPresences", "oUserRoutingStatuses", "oWaiting"] }


    Jason_Mathison | 2021-05-16 03:01:54 UTC | #2

    Hi Fquin,

    In case you didn't know, we have a tool to help you build these: Go to https://developer.mypurecloud.com/developer-tools/#/analytics-query-builder and then at the top there is a drop down for "Query Type:", it looks like you would want "Queue Observation"

    --Jason


    Fquin | 2021-05-17 13:03:04 UTC | #3

    Thank you @Jason_Mathison I totally missed that. Thank you so much!


    system | 2021-06-17 13:05:52 UTC | #4

    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: 10928