Workspaces and data boundaries
A workspace is the boundary for your data in HeyBug.
A workspace is the boundary for your data in HeyBug. Every project, run, result, API token, member, invitation and billing record belongs to exactly one workspace. A person can belong to several workspaces, but a project in one workspace never shows up in another.
Each account gets a personal workspace at sign-up. You can create team workspaces for colleagues. Your current workspace is the one the web app shows at the top of each page, in the breadcrumb.
What belongs to a workspace
- Projects, runs, plans and results.
- API tokens. A token stays in the workspace it was created in.
- Members, roles and invitations.
- Settings such as the IP allowlist, SSO and token policy. Only owners change these.
- Billing, usage and retention.
When you open a page, the server reads your workspace from your sign-in, not from the URL. A request for a project in another workspace is refused, as if the project did not exist.
Roles
| Role | What it can do |
|---|---|
| Owner | Everything, including deleting the workspace, granting owner, and transferring ownership. |
| Admin | Invite people, manage invitations, remove members and change roles below admin. |
| Member | Create and run projects, and work on them. |
| Viewer | Read projects and results only. |
Only an owner can grant, change or remove an owner. A workspace always keeps at least one owner. To leave as the last owner, transfer ownership first.
Steps
1. Check the active workspace
Open Settings > Workspaces (/settings/workspaces). The list marks the current workspace. The breadcrumb on every page shows the same name.
2. Switch workspace
Choose Switch on the workspace you want. Your session now uses that workspace. Projects, runs and results change to match. Other browser sessions and API tokens keep their own workspace.
3. Create a team workspace
Choose Create team workspace, enter a name and save. You are its owner. Invite people from the members page.
4. Delete a team workspace
Only the owner can delete a team workspace. Open the workspace, choose Delete, and type the workspace name exactly. Deleting:
- archives its projects, so they stop showing up;
- revokes its API tokens;
- removes its members.
The data stays for 30 days, then a daily job removes it for good. Personal workspaces cannot be deleted.
Example
Check which workspace an agent is using, through the MCP tool heybug_check_account:
{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "heybug_check_account", "arguments": {}}}The reply names the user, workspace, role and plan. Call it first when results look wrong, to confirm you are in the workspace you expect.
List your workspaces with an API token:
curl -s -H "Authorization: Bearer $HEYBUG_TOKEN" \
https://opentest.nagara.cloud/api/workspacesCreate a team workspace:
curl -s -X POST -H "Authorization: Bearer $HEYBUG_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Checkout team"}' \
https://opentest.nagara.cloud/api/workspacesSwitching uses your web session. An API token gets a 403 from POST /api/workspaces/{id}/switch, because tokens stay in their own workspace. Use the web app to switch.
When it fails
- A project is missing. Check the workspace in the breadcrumb. The project may be in another workspace. Switch, or use a token created in that workspace.
- Switching returns
403with "API tokens stay in their own workspace". That call came from a token. Switch in the web app instead. - Switching fails for a workspace you are not in. Your membership may have ended. Open Settings > Workspaces to see the workspaces you can switch to.
- Delete returns
403"Only the workspace owner can delete it." Ask an owner to delete it, or to make you an owner first. - Delete returns
422"Type the workspace name exactly as shown to confirm." The name must match exactly, including capitals and spaces. - Delete returns
409"Cancel the subscription first." The workspace has a paid plan that is active or on trial. Cancel the subscription in billing, then delete. - Delete returns
409"Your personal workspace cannot be deleted." Personal workspaces stay. Delete the projects you do not need instead. - A role change returns "Only admins and owners can change roles." Your role is member or viewer. Ask an admin or owner.
- A role change returns "This is the last owner." Transfer ownership to another member first.
Related
- Getting started for creating your first project.
- MCP for the tools an agent gets, and which workspace each one uses.
- CLI for signing in with a token from the right workspace.
- Troubleshooting for other errors.