Chad_Button | 2022-07-12 19:41:17 UTC | #1
We are implementing a feature to gather all call forwarding info from all users in the system. When we get a list of all users through UserApi they don't have this information. I see an endpoint POST /api/v2/users/search where you can get additional detail "expand" but i didn't see anything related to call forwarding.
So we are using GET /api/v2/users and iterating through that list and calling /api/v2/users/{userId}/callforwarding for each user but now we are getting severely rate limited and it is taking up to a minute or two to gather this info.
Is there a way to specify an expand attribute that will retrieve this same info for us in one api call?
tim.smith | 2022-07-12 20:26:31 UTC | #2
I'm not aware of any bulk method to get call forwarding information. You'll need to ensure your app expects to be rate limited and handles it gracefully. You can find information on rate limiting and best practices here: https://developer.genesys.cloud/platform/api/rate-limits. TL;DR your app should sleep for the number of seconds in the retry-after header before making additional requests.
Chad_Button | 2022-07-12 21:02:21 UTC | #3
ok, we do handle rate limiting in our app fine, but it is taking a long time to respond back to the client because of these forced delays. Also, this prevents us from using the genesys-side pagination, we had to implement our own after we piece all of this data together. This is complex and kludgy because of this api limitation.
Are there any plans to include call forwarding info into the "expand" attribute of endpoint POST /api/v2/users/search ?
tim.smith | 2022-07-12 21:14:02 UTC | #4
I'm not aware of any existing plans to include this information. But this is a great request to make and to share your use case at https://genesyscloud.ideas.aha.io/. Ideas posted and voted on that site are used by our product management team to help collect customer feedback and prioritize product enhancements.
system | 2022-08-12 21:14:44 UTC | #5
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: 15476