@fserrey You are referencing two separate API endpoints. They work differently.
Do what you are trying to do in Metabase, meaning click the export button in bottom-right > select JSON. Then look at the request, copy it as cURL.
This is exactly what I repeatedly try to explain in all the other forum topics you are referencing as well.
Read this specifically again: API POST /api/card/:card-id/query/:export-format with parameters - #2 by flamber