Personal vs. named organizations
Every account has an implicit personal organization — the tenant an omitted org context resolves to. It always has exactly one member (you, as owner), and it can’t be invited into. A named organization is created explicitly and can have multiple members with different roles (owner or member — a closed set, no custom roles).
Your personal organization is always available and needs no setup. Everything in this guide about using an organization applies to it too — omitting org context entirely is equivalent to explicitly selecting your personal organization.
Administration is dashboard-only
This is a deliberate split, not a gap: these are dashboard-facing operations where a signed-in browser session is doing the asking, not an automated client. If you’re setting up a team — creating the organization, inviting members, changing roles — that all happens by signing into the Bonya dashboard, not by scripting it with an API key. See Organizations for why the split exists and exactly which operations it covers. What an API key can do is select which organization its calls run against, once you’re already a member of one. That’s the rest of this guide.Using an organization from the CLI
bonya org controls which organization your commands act in by default, so you don’t have to pass --organization-id on every command:
bonya org list prints a table of organizations you belong to, marking the current one. bonya org use <name-or-id> saves an organization as the default for future commands — omit the argument to pick from an interactive list. The value saved to disk is always resolved to an id, never a name, since a name can be renamed out from under a saved selection but an id can’t.
bonya org show reports what’s currently in effect and where it came from (flag, environment variable, or saved selection) — useful when you’re not sure which org a command is about to hit. bonya org clear removes the saved selection and falls back to your personal organization.
A saved
org use selection wins only while you’re still a member of that organization. If you’re removed, commands silently fall back to your personal organization rather than erroring.Using an organization from the SDKs
Every SDK readsBONYA_ORGANIZATION_ID from the environment as the default org context for every call, or accepts an explicit override at client construction:
Using an organization from raw REST
Sandbox-scoped calls (sandboxes, exec, sessions, files, previews) accept an optional header to select org context:- Omitted — resolves to your personal organization.
- Malformed —
400. - Well-formed but you’re not a member —
404, not403(the API doesn’t confirm an organization exists to a non-member).