Ah, I didn't realize I could GET the url directly. Thank you for the comprehensive guide!
------------------------------
Chad Meyer
Global Voice Engineer
------------------------------
Original Message:
Sent: 03-20-2025 15:45
From: Orhun Sahin
Subject: Download data tables via API
Hi Chad,
You can follow below steps to download Genesys Cloud datatables using the API.
The process involves three main steps:
- Create an Export Job: Initiate an asynchronous export job for the datatable.
- Check Job Status: Monitor the status of the export job until it completes (either successfully or fails).
- Download the Exported File: If the job succeeds, download the exported CSV file using the provided download URL.This URL is provided as a property within the successful job response.
API Endpoints
We'll be using the following Genesys Cloud API endpoints:
Create Export Job:
Get Export Job Status:
Prerequisites
- Genesys Cloud User Account: You'll need a Genesys Cloud user account with the necessary permissions to access and export datatables. Specifically, you'll need a role that includes the
architect:datatable:view
and architect:datatable:export
permissions. - API Token: You'll need an OAuth client with a token. The client should have the required permissions mentioned above. You can create an OAuth client in the Genesys Cloud Admin UI.
------------------------------
Orhun Sahin
Software Development Engineer
Original Message:
Sent: 03-20-2025 14:18
From: Chad Meyer
Subject: Download data tables via API
Hey everyone,
Not sure if I am going about this wrong, however I am attempting to automatically download data tables via API. My python script is able to grab the final URLs to download, however I am needing a way to download them via python. I can utilize the webbrowser module in python, however I still need to authenticate. Is there a Genesys API I can use to pass credentials or use the token to authenticate to be able to download these files? Thanks in advance!
#API/Integrations
------------------------------
Chad Meyer
Global Voice Engineer
------------------------------