Temporary Files
Your API might have to manage temporary files, i.e., files you manipulate and forget.
An option would be to save them in the src/api/public folder (don't forget to update the src/api/public/.htaccess file for security reason) and delete them once your API has served them to the user.
For instance:
src/api/src/Infrastructure/Controller/DownloadXLSXController.php