Enterprise & Workspaces API
Accounts, members, workspaces, and audit logs.
Base Paths
These endpoints are not prefixed with /enterprise. The actual API routes are:
text
/accounts — account management, members, audit logs
/workspaces — workspace lifecycle, members, tool policiesAuthentication
All endpoints require JWT authentication. Some actions require owner or admin access.
Set up authentication and the shared environment in Prerequisites.
Sections
- Accounts — account details, members, and audit logs.
- Account Invitations — invite an email address to an account and accept an invitation.
- Business billing — licensed seats, per-member allowances, and billing lifecycle.
- Workspaces — workspace lifecycle and member management.
- Tool Policies — control which AI tools are permitted, require approval, or are blocked within a workspace. Routes are at
/workspaces/:workspaceId/tool-policies. - Files — workspace file uploads, presigned URLs, and downloads.
- Artifacts — Artifact visibility, explicit access grants, and Website version sharing.
- Knowledge Namespaces — named knowledge bases with visibility control for RAG retrieval.
- API Keys — account-scoped API keys for M2M and service account authentication.
Notes
DELETE /accounts/:idsuspends an account; it does not erase data. Permanent deletion applies to personal accounts only (see Accounts — Current limitations).- Workspace listing and creation are scoped from the authenticated account context.
- Roles follow this order:
owner,admin,member,analyst,billing,viewer.ownercan only be assigned through account creation or a dedicated ownership-transfer flow — not through the member or invitation endpoints. - Workspace membership requirement: A user must first be an account member before being added to a workspace. Adding a non-member to a workspace returns
403 Forbidden. - Two ways to bring someone into an account: attach an existing user directly by ID (
POST /accounts/:accountId/members), or invite an email address that may not have a Chainabit account yet (POST /accounts/:accountId/invitations) — the membership is only created once that invitation is accepted. - Licensed seats: Pending invitations do not consume a paid seat. Joining creates a billable membership whose Business usage waits for verified seat activation. Each active human role, including the owner, requires its own license. Membership and billing limits are enforced by the server. Removal immediately revokes access and automatically queues the lower subscription quantity; the compatibility removal flag does not opt out of billing. See Business billing.