Authentication
All endpoints require a valid Bearer token in the Authorization header.Base URL
Endpoints
List Organizations
Retrieve a list of organizations the authenticated user belongs to.GET /api/org/list
Create Organization
Create a new organization.POST /api/org/create_org
Query Parameters:
Response:
Add Member to Organization
Add an existing user as a member to an organization with a specific role.POST /api/org/add_member
Request Body:
Response:
This endpoint requires the
team_members feature to be enabled for the organization. It adds an existing user to the organization with the specified role and sets their status to βactiveβ.Error Responses
Implementation Notes
- Every user automatically gets a personal organization upon signup
- When an organization is created, default roles are automatically created:
- Owner (Level 100): Full system access
- Admin (Level 80): Administrative capabilities
- Member (Level 20): Standard user access
- Guest (Level 10): Limited access
- The creating user is automatically assigned the Owner role
- Organizations serve as isolated environments with their own resources, users, and permissions
- All resources (knowledge bases, conversations, etc.) are created within the context of an organization