I have a weird error from the API when trying to display usage data. It’s so weird, this forum has no references to it and Google can only find about a dozen unrelated hits… “organization.read”.
Quick notes:
- I just created a new OpenAI account.
- I created two keys with “All” permissions selected.
- The key checks as valid. See the screenshot.
I’m a weak programmer using Replit. Sorry in advance for my newbieness…
===========
You have insufficient permissions for this operation. Missing scopes: organization.read. Check that you have the correct role in your organization (Reader, Writer, Owner), and if you’re using a restricted API key, that it has the necessary scopes. (HTTP 403)
Failed endpoint: usage statistics
Possible solutions:
Ensure your API key has organization read access
Verify you’re using a non-restricted API key
Check if you have the correct role (Reader, Writer, or Owner) in your organization