Christopher_Greene | 2021-05-26 18:12:30 UTC | #1
Hi, Ref: /api/v2/outbound/contactlists/{Contact List ID}/export Ref: /api/v2/downloads/{Export ID}
Is there anyone else here that uses Alteryx against the Genesys APIs?
Requesting one Export URL provides a payload of one Download URL - if it's available. Or, if one does not make a request too quickly - no more than 1 every two seconds.
For the Download URLs, when those queue up, I've tried running a POST Method against them before running the GET Method hoping they'd queue up without giving the 'unavailable' message. But the POST returns an error that a field is not available.
I've tried - in Alteryx - the Wait A Second macro and set it to three seconds hoping to slow down the batch macro that processes each GET of the download URL. I still get the 'URL not available' message. I think I'm not getting all the data I should from these exports.
For example I may get a list of 45 Contact List IDs, but only 8 have download data. I can run the APIs again and then maybe 13 will have download data.
What should my reasonable expectations be for these two API calls?
Thank you, Chris
anon35336826 | 2021-05-26 20:59:45 UTC | #2
Hi Christopher,
There is a rate limit on the contact list export endpoint of 30 requests/minute. Both the POST and the GET count against this limit. I would recommend hitting the POST endpoint at a rate that won't cause rate limiting, and subscribing to the notification topic v2.users.{id}.outbound.contactlists.{id}.export to receive a notification when the export is complete (see https://developer.genesys.cloud/guides/quickstarts/developer-tools-notifications).
Unfortunately I don't know much about Alteryx or how it integrates with the Genesys Cloud APIs, but if you're able to subscribe to notification topics then that's the recommended path. Otherwise, you'll need to work around the rate limiting with both the initial POST to export and the GET to poll for completion.
Thanks,
system | 2021-06-26 20:59:49 UTC | #3
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: 11031