What tenants contain
When you work with the API, almost every request is implicitly scoped to your active tenant. The tenant controls:- Content — all folders, documents, and chunks
- Users — who has access and at what role
- Groups — logical collections of users for bulk permission management
- Settings — display name, SSO configuration, and branding
Multi-tenant access
A single user account can belong to multiple tenants. UseGET /v1/tenants to list all tenants the authenticated user has access to, then select the one you want to operate against.
Tenant settings
You can update a tenant’s display name and other settings withPATCH /v1/tenants/{tenant_id}:
SSO configuration
Knowledge Stack supports single sign-on via external identity providers (IdpType). SSO settings are stored in the tenant’s IdpConfig and control how users authenticate. Configure SSO through PATCH /v1/tenants/{tenant_id} or the directory sync endpoint POST /v1/auth/sso/{tenant_id}/directory_sync.
Users and roles
Every user in a tenant is assigned aTenantUserRole that governs their default level of access:
| Role | Description |
|---|---|
admin | Full control over the tenant — settings, users, and all content |
member | Standard access; content access is further controlled by permissions |
GET /v1/tenants/{tenant_id}/users:
Updating a user’s role
Activating and deactivating users
You can suspend a user’s access without removing them from the tenant:Inviting users
To add a new user to your tenant, create an invite. Knowledge Stack sends an email to the recipient with a link to accept.Create the invite
invite_id and the invite’s current InviteStatus (pending, accepted, or expired).GET /v1/invites, and cancel an invite before it is accepted with DELETE /v1/invites/{invite_id}.
Invites expire after a set period. If a user does not accept in time, delete the old invite and create a new one.
Branding
You can upload a custom logo for your tenant to use in the Knowledge Stack UI. Logos are uploaded as multipart form data.TenantBrandingResponse with the URL of the stored logo.