How to programmatically create and publish a question?

I’m new to Metabase and currently trying to see if there is a away to programmatically create a question and then publish it so that I can embed the generate report into my ReactJS application.
I’m able to embed manually generated dashboards and questions but there isn’t an endpoint where I can use for publishing.
Is it possible to do so? Am I missing something here?

Hi @minh
There’s an API for almost everything you can do in the Metabase UI:
https://www.metabase.com/blog/metabase-api/index.html
https://github.com/metabase/metabase/blob/master/docs/api-documentation.md
The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received.

Hi @flamber,
Yeah right, manually publishing a dashboard is basically an API call to Metabase. What a silly question of mine!
Still, I reckon the API could be more explanatory about the endpoints and its params.

Thanks heaps for the pointer!