Hi @roshanyadav
Just for reference: https://github.com/metabase/metabase/blob/master/docs/api-documentation.md#post-apicardcard-idqueryexport-format
Have you tried to make sure you’re sending the exact same parameters, when using the browser? It’s the best way to learn the API.
Also, using CURL might be a simpler way to debug something.
The 401
is something to do with a wrong token used I guess. Have a look at this topic: How to access metabase api using vue js
Not sure what’s going on, when you’re seeing 500
, so make sure you’re using 0.35.3 (released yesterday), otherwise you need to enable debug logging:
https://www.metabase.com/docs/latest/operations-guide/log-configuration.html