Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  real time call count per DNIS?

    Posted 08-08-2024 09:45

    do you guys have any recommendations on how do we get live call counts for the DNIS via API?

    I originally thought of running this API every 30 seconds, to get sort of live call counts but this pulls all the conversation data that I don't need for this purpose, and not real-time.

    https://api.usw2.pure.cloud/api/v2/analytics/conversations/details/query
    Request Method:
    POST{
      "order": "desc",
      "orderBy": "conversationStart",
      "paging": {
        "pageSize": 50,
        "pageNumber": 1
      },
      "interval": "2024-08-01T04:00:00.000Z/2024-09-01T04:00:00.000Z",
      "segmentFilters": [
        {
          "type": "or",
          "predicates": [
            {
              "dimension": "direction",
              "value": "inbound"
            },
            {
              "dimension": "direction",
              "value": "outbound"
            }
          ]
        }
      ],
      "conversationFilters": [
        {
          "type": "and",
          "predicates": [
            {
              "type": "dimension",
              "dimension": "conversationEnd",
              "operator": "notExists"
            }
          ]
        }
      ],
      "evaluationFilters": [],
      "surveyFilters": []
    }


    #API/Integrations
    #Reporting/Analytics


  • 2.  RE: real time call count per DNIS?
    Best Answer

    GENESYS
    Posted 08-12-2024 09:10

    Hello Ryan!  Generally the details API isn't the best place if you're looking to produce a count of some sort.  The aggregate API grouped by DNIS should give you a good place to start.  https://developer.genesys.cloud/analyticsdatamanagement/analytics/aggregate/

    We also have plenty of active API users on the dev forum to answer API questions.  https://developer.genesys.cloud/forum/  This type of question you have would be right in their wheelhouse.



    ------------------------------
    Ryan Legner
    Staff Product Manager, Genesys Cloud CX
    ------------------------------



  • 3.  RE: real time call count per DNIS?

    Posted 08-12-2024 09:17

    Hello! I appreciate the reply, thank you!



    ------------------------------
    Ryan Singson
    Infinity Sales Group
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources