Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Analytics API - post /api/v2/analytics/knowledge/aggregates/query

    Posted 05-12-2026 10:20

    I am running into a issue with Aggregate API  when I run it to fetch data for full day -

    The request failed with response code: 400. Message: Result set is larger than result limit. Avoid grouping on high-cardinality fields, or use filter predicates to reduce the number of groups for that field.

    The query runs smoothly when ran for half a day. So currently we are extracting data twice in a day.

    Could you please help me to know the limit?

    Is there a way to increase this limit?


    #PlatformAPI

    ------------------------------
    Jyoti Sharma
    Senior Design Consultant
    ------------------------------


  • 2.  RE: Analytics API - post /api/v2/analytics/knowledge/aggregates/query

    Posted 05-12-2026 14:29

    Hello Jyoti, 

    Aggregate queries are limited in the granularity of the interval. Do you mind sharing the query JSon, so we could help you troubleshoot, better?



    ------------------------------
    Rodrigo Romao
    NALA Team Lead - Genesys - Employees
    ------------------------------



  • 3.  RE: Analytics API - post /api/v2/analytics/knowledge/aggregates/query

    Posted 05-12-2026 14:48
    Edited by Jyoti Sharma 05-12-2026 14:52

    Hello Rodrigo,

    Here is the complete query - 

    POST /api/v2/analytics/knowledge/aggregates/query HTTP/1.1
    Host: api.mypurecloud.de
    Authorization: Bearer *******************
    Content-Type: application/json

    {"interval":"2026-05-10T23:00:00.000Z/2026-05-11T23:00:00.000Z","granularity":"P1D","groupBy":["searchQuery","searchId","knowledgeBaseDocumentId"],"metrics":["nKnowledgeSearchAnswered"]}



    ------------------------------
    Jyoti Sharma
    Senior Design Consultant
    ------------------------------