Legacy Dev Forum Posts

 View Only

Sign Up

Get Stations Pagination bug

  • 1.  Get Stations Pagination bug

    Posted 06-05-2025 18:22

    Adrian_Santamaria | 2022-04-27 09:44:40 UTC | #1

    Hello!

    I think I've found a bug: When making a request to GET /api/v2/stations, if I filter by webRtcUserId, in the result the "total" and the "pageCount" are 0, although it found a result. Here you have an example:

    It's not a big deal, but I think it may break someone's autopagination method.


    tim.smith | 2022-04-27 16:05:17 UTC | #2

    Hello, this sounds like a bug with the API. Could you open a case with Genesys Cloud Care to report the issue?


    tim.smith | 2022-04-27 16:02:46 UTC | #4

    That's correct. There is no way to resolve an ID of unknown origin; you'd have to try every API endpoint that accepts a GUID until you get a successful response.


    Brad_Murlin | 2022-04-27 17:20:41 UTC | #5

    Pagination is very inconsistent in the API - we are noticing that some endpoints return a pageCount, others do not. Some include the current/next/last/previous page URL... others do not. Some include a total entity count... others do not.

    I have a care case open for the missing pageCount on a specific API, but seeing the inconsistencies among endpoints makes me think y'all need an internal audit on pagination standards.


    Adrian_Santamaria | 2022-04-28 07:50:35 UTC | #6

    I 100% agree with this. I think the pagination for all the API endpoints should be standarized, so we could reutilize the algorithm to fetch all pages.

    Also, it would be great if the SDKs included some option for autopagination out-of-the-box, like the CLI does.


    tim.smith | 2022-04-28 13:20:39 UTC | #7

    You can request new features and share your use case at https://genesyscloud.ideas.aha.io/.


    Brad_Murlin | 2022-05-03 01:24:29 UTC | #8

    Are pagination standards really a feature though? Or something that should be present since day 1? The Tips and Tricks page suggests things should be more standardized than they are https://developer.genesys.cloud/platform/api/tips


    tim.smith | 2022-05-03 20:21:00 UTC | #9

    The information on the tips page describes the typical paging behavior; it is not meant to convey that all occurrences of paging function exactly like that. You should always refer to the documentation for a specific endpoint to understand its request and response format and options.

    The ideas site is the way to provide feature requests and suggestions to change the product from its current behavior, regardless if you believe it's a new idea or something you think should have been done differently originally. Our product management group uses that site to collect that feedback. If you do not submit your suggestions and feature requests there, that feedback is unlikely to reach the product management team.


    system | 2022-06-03 20:21:38 UTC | #10

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