How to automate download of individual errors from omnichannel file upload?

Bronze Contributor
Bronze Contributor

I've successfully set up an automated file upload from s3 (s3://{account}-{profile}/) using the directions here. I'm also able to use the Omnichannel File Status API to see if those file uploads have succeeded. But, when encountering a failed row, I'm not sure how best to programmatically download the detailed error report that is shown in the UI (see image below).







I see that the download link takes me to s3://{account}-{profile}/{data-source-id}/{file-name} but I can't access that prefix using the same AWS credentials as my upload.

How do I gain access to that S3 prefix? Or, is there another API endpoint that I'm missing to download individual failed rows?