How to pass parameters (API)

why aren't you using the native endpoint that metabase have for exporting a csv? How to download in CSV using API