Teams API
A team is a group of users in an organization that holds a single role on a workspace as a unit. Every team member gets that workspace role without being added to the workspace one by one. One team can hold roles on several workspaces, for example a "Marketing" team that is a WORKSPACE_MEMBER of two branch workspaces.
Resources¶
| Resource | What it is |
|---|---|
| Team | A named group of organization users. Belongs to the organization, not to a workspace. |
| Team member | An organization user who is in the team. |
| Team workspace role | The one role a team holds on one workspace. |
Authentication and permissions¶
Send Authorization: Bearer <ACCESS_TOKEN>. See Authentication.
| Action | Permission |
|---|---|
| List or read teams, list members, list a team's workspace roles | Any valid token |
| Create, update or delete a team, add or remove members, add, change or remove a workspace role | org:teams:manage |
By default ORG_OWNER, ORG_ADMIN and ORG_MANAGER hold org:teams:manage.
Base path¶
Served by CoreAPI.
{orgId} is the organization ID and {teamId} the team ID. To list the teams of one workspace, use GET /api/v1/tenancy/organizations/{orgId}/workspaces/{workspaceId}/teams (see Workspaces).
Capabilities¶
- Create, list, read, update and delete teams
- Add and remove team members, list members
- Grant, change and revoke a team's role on a workspace
- Reject changes that would give one user two access paths to the same workspace
Object model¶
Team¶
| Field | Type | Description |
|---|---|---|
id |
string | Team ID. Read-only. |
organizationId |
string | Organization that owns the team. Read-only. |
name |
string | Letters, numbers and single spaces only. Unique per organization, ignoring case. |
description |
string | Free text. |
memberCount |
integer | Members in the team. Read-only. |
workspaceCount |
integer | Workspaces the team holds a role on. Read-only. |
createdAt, updatedAt |
string (ISO 8601) | Times. Read-only. |
{
"id": "team_01HZZ1",
"organizationId": "9b2e4d71-0c3a-4f8e-b6d2-5a1c7e9f3b20",
"name": "Marketing",
"description": "Cross-branch marketing team",
"memberCount": 4,
"workspaceCount": 2,
"createdAt": "2026-08-07T09:00:00Z",
"updatedAt": "2026-08-07T09:00:00Z"
}
Team workspace role¶
| Field | Type | Description |
|---|---|---|
workspaceId |
string | Workspace the role applies to. A team holds at most one role per workspace. Write-once. |
workspaceName |
string | Display name of the workspace. Read-only. |
roleId |
string | A workspace-scope role: WORKSPACE_ADMIN, WORKSPACE_MEMBER, VIEWER or a custom workspace role ID. |
One path per workspace¶
A user reaches a workspace directly (as a workspace member) or through a team, never both. The API checks this on every write:
- Adding a direct member who already has the workspace through a team returns
409. - Adding a user to a team returns
409when the user is already a direct member of a workspace the team has a role on. The response lists theworkspaceIds. - Granting a team a role on a workspace returns
409when a current team member is already a direct member. The response lists theuserIds.
Where a user somehow has both, the higher role applies.
Errors¶
| Status | When | What to do |
|---|---|---|
| 400 | A required field is missing, name has invalid characters, the user is unknown, the workspace is not in this organization, or the role is not a workspace-scope role. The body is {"error": "<reason>"}. |
Fix the request. |
| 401 | No valid token. | Sign in again. |
| 403 | You lack org:teams:manage, or the user is not a member of the organization. |
Ask an administrator, or add the user to the organization first. |
| 404 | The team, member or workspace role does not exist. | Check the IDs. |
| 409 | The team name is taken, the team already has a role on the workspace (use PATCH), or the one-path rule above would be broken. |
Resolve the conflict and retry. |