no_active_organization means a signed-in console session is not attached to an organization. Read this page if you see it in the console, or if you call the API with a console session instead of an API key.
What happened
Routes: every protected route under/v1/.
Everything in OpenType belongs to an organization: runs, keys, usage, credit. Each request is served in the organization of its credential.
- API keys always carry their organization, the one they were created in. A request with a valid key never gets this error.
- A console session carries the organization you chose when you signed in. This session was verified, but it names no organization, or an empty one.
How to fix
- In the console: sign in again and choose an organization. If your account does not belong to one yet, create one.
- In your code: use an API key instead of a console session. Create one on the API keys page while signed in to the organization it should belong to.
Example
usage_read.
Related
- Organizations and roles - what an organization holds and who can do what in it.
- Sign in to the console - signing in and choosing an organization.
- Authentication - API keys versus console sessions.
- Problem codes - every code, its status, and whether a retry can help.