Workspaces and roles
A workspace is one business on Ngamia. Its agents, knowledge, API keys, members, invites, runs and audit trail are isolated: a credential for one workspace cannot see or change another.
Technically a workspace is a KIDA tenant, and its ID (a UUID) also scopes its data in every engine: the knowledge store, the run log, tools and memory.
Creating a workspace
POST /v1/auth/signup creates a
workspace with you as owner. A person can belong to several workspaces;
POST /v1/auth/workspaces lists them and
POST /v1/auth/token signs in to one.
Roles
| Role | Can |
|---|---|
viewer | read agents, run agents, search knowledge |
developer | everything a viewer can, plus create and change agents and knowledge |
admin | everything a developer can, plus workspace settings and model key, API keys, members, invites and the audit trail |
owner | everything an admin can, plus make admins and owners, and invite admins |
A workspace always keeps at least one owner. Roles are changed with
PUT /v1/members/{user_id}.
Joining and leaving
- Invites are one-time codes (
ngi_…) with a role, an expiry (up to 30 days) and a number of uses. The code is shown once when created and stored only as a hash. See Invite your team. - Removing a member ends their access at once: their current token stops working and they cannot sign back in to that workspace until re-invited.
Settings
| Setting | Notes |
|---|---|
name | Display name. |
model_api_key | Your Ngamia model gateway key. Agents cannot run until it is set. Write-only and stored encrypted (AES-256-GCM). |
default_model | Model used by agents that do not name one. |