Expose metabase API when running on docker + k8s

Hi,
I'm running a metabase image on a k8s instance, everything's running smoothly on the front but I can't access the address:3000/api endpoint, I'm getting an API endpoint does not exist. response.

Is there a way to expose the API? Or am I targetting the wrong endpoint/port?

I'm following this doc: https://www.metabase.com/learn/administration/metabase-api.html

Also unrelated to the subject: can I retrieve the result of metabase questions through the API? That's the end goal for this API access

Thanks

Hi @cberez
There's no endpoint called /api - you'll need to define the full endpoint, eg. /api/health
https://github.com/metabase/metabase/blob/master/docs/api-documentation.md

Yes, you can do everything you can do with your browser in the GUI.
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.

1 Like

OK sorry my bad I was actually calling /api/session to login and getting API endpoint does not exist but that's because I was doing a GET and not a POST.

Thanks @flamber!