Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
ConceptsWorkspaces and roles

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

RoleCan
viewerread agents, run agents, search knowledge
developereverything a viewer can, plus create and change agents and knowledge
admineverything a developer can, plus workspace settings and model key, API keys, members, invites and the audit trail
ownereverything 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

SettingNotes
nameDisplay name.
model_api_keyYour Ngamia model gateway key. Agents cannot run until it is set. Write-only and stored encrypted (AES-256-GCM).
default_modelModel used by agents that do not name one.