Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Issue with the stations API (pageSize)

    Posted 09-14-2025 21:02

    Hi, 

    With the stations API the max pageSize allowed user to set is 500 (when setting it to greater, such as 600, the returned result is still 500, as in screenshot below)

    Normally this indicates the max return size is 500 per page, for other Genesys APIs. But for stations, it only can return 100 items as result.

    Moreover, although it only returns 100 items, for the next page it start getting items from the 500th station.  So for a 2000 stations API, total page will be 4 and by iterating through it using pageSize 500 and increasing the pageNumber, I will only get 400 stations as result.

    I have checked a previous post regarding this issue:

    Response was that the API only supports max 100 entitie. I request that if that is the case, change Max pageSize to be 100 to be consistent. This is the behaviour for other Genesys API, that if the pageSize exceeds the max, then it will automatically set it to the max. 

    If it is possible to actually be returning 500 stations, that would be great. In my case the environment has 26k stations, and with 100*100 the API won't be able to return all the results. 

    Kind Regards,

    Yi


    #PlatformAPI

    ------------------------------
    Yi Lu
    ------------------------------


  • 2.  RE: Issue with the stations API (pageSize)

    Posted 09-15-2025 02:50

    Hi Yi Lu,

    I find it a good suggestion to - 
    - cap pageSize to 100 if that's the actual limit; OR
    - support up to 500 entities per page for consistency and scalability.

    You can submit this idea at Genesys Ideas Lab or
    provide you feedback at - Genesys Product Design Team Feedback

    Thanks




    ------------------------------
    Ashiesh Sharma
    GCX- GCP, ARC, SCR, QM
    BT plc
    ------------------------------



  • 3.  RE: Issue with the stations API (pageSize)

    Posted 09-15-2025 03:53

    Hello,

    Could you please open a ticket with Genesys Cloud Product Support/Customer Care to report this?

    Support should be able to raise this to Engineering attention to analyze and to fix/update this based on their findings.

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 4.  RE: Issue with the stations API (pageSize)

    Posted 09-15-2025 20:27

    Thank you! I'll do that



    ------------------------------
    Yi Lu
    ------------------------------



  • 5.  RE: Issue with the stations API (pageSize)

    Posted 09-15-2025 07:46

    I get through page size for listing things using the GC CLI with the auto paginate function. That will allow all to be listed as a single JSON or CSV using JQ.  



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 6.  RE: Issue with the stations API (pageSize)

    Posted 09-15-2025 20:33

    Thanks for the suggestion. I will give it a go.



    ------------------------------
    Yi Lu
    ------------------------------