Sheets API - Download workbook

Sheets API - Download workbook

I am calling the Zoho Sheets API from a CRM function.  I want to download the workbook as a CSV and attach it to the record.

If I use format xlsx, the response is the file.  It downloads and attaches perfectly.
If I use format csv. the response is a text stream of the CSV itself.  As a result, it doesn't download or attach.

How can I download the CSV file itself?

Kind regards

Matt