Skip to main content
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.
The credential itself was accepted; OpenType could not tell which organization to act in.

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

Calling the API with an API key, which always has an organization:
The call needs usage_read.