"403 Forbidden" on API access with key (not self hosted)

Hi,
I'm trying to access our Metabase via API following the example on here.

I'm getting a 403 response.

My only changes were the host variable to 'ourmetabaseinstancename.metabase.com' and our API_KEY.

Any suggestions on how to resolve this?

Thanks,
AT

Can you share the exact code you are running please (you can omit the API_KEY)

Thanks for your reply and sorry for the delay in mine!

The issue was that the permissions for the API Token key I was using weren't enough to see "group permissions" (which is what's demoed in the example code).

Might be good to switch the example code to an API call that anyone could access - for example /api/user/current/.

Thanks again for the help!

AT