Downloading a File via API call

Another option is to use the Custom API Server.
You can configure the Custom API endpoint to return a file download by adding a Construct HTTP Response step to the endpoint’s workflow.