API Access down

Trying to work with my local Metabase instance and attempting (very unsuccessfully) to access the API. I’m carefully following the instructions here: Metabase API Docs

I created an API Key. I tried the example GET request:

$ curl -H 'x-api-key: ' -X GET 'http://localhost:13001/api/permissions/group'
You don't have permissions to do that.

Diagnostic info:
{ "browser-info": { "language": "en-US", "platform": "Win32", "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0", "vendor": "Google Inc." }, "metabase-info": { "databases": [ "postgres" ], "run-mode": "prod", "plan-alias": "", "version": { "date": "2025-10-21", "tag": "v0.56.11", "hash": "01ca4ee" }, "settings": { "report-timezone": null }, "hosting-env": "unknown", "application-database": "postgres", "application-database-details": { "database": { "name": "PostgreSQL", "version": "16.9" }, "jdbc-driver": { "name": "PostgreSQL JDBC Driver", "version": "42.7.7" } } }, "system-info": { "file.encoding": "UTF-8", "java.runtime.name": "OpenJDK Runtime Environment", "java.runtime.version": "21.0.8+9-LTS", "java.vendor": "Eclipse Adoptium", "java.vendor.url": "https://adoptium.net/", "java.version": "21.0.8", "java.vm.name": "OpenJDK 64-Bit Server VM", "java.vm.version": "21.0.8+9-LTS", "os.name": "Linux", "os.version": "6.6.87.2-microsoft-standard-WSL2", "user.language": "en", "user.timezone": "GMT" } }

Are there any workarounds for this?

What group did you attach the API key to? If it’s not part of the Admin group it won’t be able to access things restricted to admins, like permissions.

I had it set to all users. Once I switched it to Admin group it worked. Thank you so much for your prompt reply!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.