# Workspace and roles

A workspace is the tenancy boundary. It owns channels, contacts, campaigns, inboxes, agents, keys, the wallet and audit history. People access it through a membership; API keys are bound to it.

## Workspaces

- One account has a default workspace and can create more.
- A workspace can have a parent for reseller or sub-account billing.
- Data never crosses a workspace boundary.
- A selector (`X-Workspace-ID`) chooses which workspace a dashboard request acts on.

## Members and invitations

Invite a teammate from **Dashboard → Workspace → Members**. The invitation has an email, a role and a token. Accepting creates a membership; until then the invitee has no access.

Seat limits depend on the plan. A suspended account is refused before any workspace data is read.

![Bonga workspace members page with roles, invitations and access controls](/images/docs/bonga-workspace-members.png)

## Built-in roles

| Role | Typical use |
| --- | --- |
| Owner | Billing, ownership transfer, everything |
| Admin | Manage workspace, members, channels, billing |
| Manager | Campaigns, contacts, inbox administration |
| Supervisor | Inbox, campaigns, automations |
| Agent | Inbox replies |
| Billing | Wallet, invoices, plans |
| Developer | Channels, API keys, integrations |
| Analyst | Read-only reports and activity |
| Approver | Read conversations, decide held mail, reply |
| Viewer | Read conversations, sent mail and usage |

Permissions are exact actions such as `inbox.reply`, `campaigns.launch` or `approvals.decide`. A role grant is a default; a member can still be denied a specific action.

## Custom roles

Where custom roles are enabled, the owner can build a role from the action catalogue. A custom role cannot exceed the owner's own authority, and creating or changing one requires the owner role.

## Teams

Teams are organizational rosters: a name, colour, description and a list of members and agents. Membership in a team does not grant permissions. Messenger queues and routing are separate configuration. A team helps reporting and routing; it never widens access.

## Billing modes

- **Own billing** — the workspace pays with its own wallet and plan.
- **Inherited billing** — a child workspace is paid for by its parent.

Switching modes needs owner consent on both sides. Credits can move between a parent and its children.

## Audit

State-changing actions are audited with the actor, target, time and (where relevant) the before/after state. Admins read the audit log in the console.

## Related

- [Authentication](/docs/authentication)
- [Approvals and policy](/docs/agents-approvals)
- [Inbox and Messenger](/docs/inbox)
