Getting METABASE_SECRET_KEY through api

Hi,

I am working on embedding question to my app. I don’t want to hardcode my METABASE_SECRET_KEY instead i want to fetch through api.
I got one api GET /api/util/random_token, I tried using this for metabase-secret-key but it is giving error.
Is there any other option or api availabale for this?

Hello,

Bumping this question. Does anyone have an answer of whether it is possible to get the METABASE_SECRET_KEY via API?

@Charlie Yes, with /api/setting/embedding-secret-key:
https://github.com/metabase/metabase/blob/master/docs/api-documentation.md#get-apisettingkey
Almost everything you can see in the interface can be retrieved via the API, since that’s what Metabase does.
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.