Xentree supports organization management for collaborative workspaces.What you can do#
create and manage organizations
structure collaboration across teams
Authentication and scopes#
Organizations endpoints support both bearer and API key auth.Recommended API key scopes:organizations:read for listing organizations and members
organizations:write for create/update/delete and membership changes
Main endpoints#
Organizations#
GET /api/organizations/{org_id}
PATCH /api/organizations/{org_id}
DELETE /api/organizations/{org_id}
Members#
GET /api/organizations/{org_id}/members
POST /api/organizations/{org_id}/members
PATCH /api/organizations/{org_id}/members/{target_user_id}
PUT /api/organizations/{org_id}/members/{target_user_id}
DELETE /api/organizations/{org_id}/members/{target_user_id}
Role model#
Representative roles include:Member API details#
List members#
GET /api/organizations/{org_id}/members
Optional query: team_id to filter members in a specific team.
Response includes scoped team fields per organization: Update role only#
PATCH /api/organizations/{org_id}/members/{target_user_id}
Super admins are resolved from auth context (JWT/session) and are not restricted by per-row organization role.
Regular administrators can update role in the same organization.
Team managers cannot use this endpoint to elevate roles.
Comprehensive update (role/org/team)#
PUT /api/organizations/{org_id}/members/{target_user_id}
Supports combined update:team_id (null to remove team assignment)
organization administrator: full access in allowed org scope
team manager: team assignment only
Team assignment is validated against destination organization to avoid cross-organization mismatches.
Example create organization request#
{
"name": "Acme Learning",
"slug": "acme-learning",
"description": "Workspace for team learning and collaboration"
}
Access model#
Most organization endpoints require an authenticated user, and privileged actions require the appropriate organization role.When using API keys, organization-role checks still apply after scope checks. Modified at 2026-08-18 03:53:50