API: Notify endpoint still requires env variable key

Hey, not sure if this is expected, most of api endpoints work with the new api key set in admin but when trying to run notify i get error. Do I need to set it up or will it be included to use new api method?

"MB_API_KEY is not set. See https://www.metabase.com/docs/latest/configuring-metabase/environment-variables#mb_api_key for details"
curl -X POST \
-H "Content-Type: application/json" \
-H 'x-api-key: mb_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-d '{"table_id": "3802"}' \

Exactly, this is technical debt that we have to solve in the future

1 Like