# Teams API reference

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

## List the teams

`GET /organizations/{organizationId}/teams` · operationId `teams.list`

- Scope: `organization:read`
- Role permission: Manage the organization (`organization:update`)
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Returns every team of the organization, by name: its members (membership ids, matching `GET …/members`) and the workspaces it sees. Only users who can edit the organization's settings can read it. A token narrowed to chosen workspaces sees only those workspaces in each team's `workspaces`.

Teams decide which workspaces their members see: members below admin only see the workspaces of their teams (owners and admins see every workspace). Teams grant no permission; roles do. Needs the Team Collaboration add-on (`402 PLAN_UPGRADE_REQUIRED`).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required): The team's id (a UUID).
  - `name` (string, required)
  - `memberCount` (number, required): How many members are in the team.
  - `memberIds` (array of string, required): The team's members, by membership id (the `id` of `GET …/members`, not the user id).
  - `workspaceAccess` (string, required): `all`: the team's members see every workspace, current and future. `selected`: only the workspaces in `workspaces`. Owners and admins see every workspace whatever their teams. one of `all`, `selected`.
  - `workspaces` (array of object, required): The workspaces of a `selected` team (empty for `all`). Through the public API, only the workspaces the token was given are listed.
    - `id` (string, required)
    - `name` (string, required)
  - `createdAt` (string, required): When the team was created, ISO 8601 in UTC.

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: One team restricted to one workspace**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/teams" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35",
      "name": "Editors",
      "memberCount": 1,
      "memberIds": [
        "Qe4hT8vN2sLw6KpZ1cXbR"
      ],
      "workspaceAccess": "selected",
      "workspaces": [
        {
          "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
          "name": "Northwind"
        }
      ],
      "createdAt": "2026-05-06T10:00:00.000Z"
    }
  ]
}
```


## Create a team

`POST /organizations/{organizationId}/teams` · operationId `teams.create`

- Scope: `members:write`
- Role permission: Manage the organization (`organization:update`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Creates a team with no members. `workspaceIds` absent, `null` or empty: the team sees every workspace, current and future; otherwise exactly those workspaces (ids from `GET …/workspaces`; one that isn't a workspace of the organization answers `404 WORKSPACE_NOT_FOUND` and nothing is created). Add members with `PUT …/teams/:teamId/members`. Names need not be unique. Answers `201` with the team.

Teams decide which workspaces their members see: members below admin only see the workspaces of their teams (owners and admins see every workspace). Teams grant no permission; roles do. Needs the Team Collaboration add-on (`402 PLAN_UPGRADE_REQUIRED`).

Needs a token given **all** the workspaces of the organization: one narrowed to chosen workspaces answers `403 INTEGRATION_SELECTION_TOO_NARROW`, since a team's change affects workspaces the token can't see.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |

**Request body** (JSON, required)

- `name` (string, required): 1–100 characters.
- `workspaceIds` (array of string (uuid), optional, nullable): The workspaces the team's members see: `null` or `[]` = every workspace, current and future; otherwise exactly these (each a workspace of the organization, from `GET …/workspaces`). at most 500 items.

**201 Created**

- `data` (object, required, OrganizationTeam)
  - `id` (string, required): The team's id (a UUID).
  - `name` (string, required)
  - `memberCount` (number, required): How many members are in the team.
  - `memberIds` (array of string, required): The team's members, by membership id (the `id` of `GET …/members`, not the user id).
  - `workspaceAccess` (string, required): `all`: the team's members see every workspace, current and future. `selected`: only the workspaces in `workspaces`. Owners and admins see every workspace whatever their teams. one of `all`, `selected`.
  - `workspaces` (array of object, required): The workspaces of a `selected` team (empty for `all`). Through the public API, only the workspaces the token was given are listed.
    - `id` (string, required)
    - `name` (string, required)
  - `createdAt` (string, required): When the team was created, ISO 8601 in UTC.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `INTEGRATION_SELECTION_TOO_NARROW` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A team that sees every workspace**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/teams" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Editors"
}'
```

Answers 201:

```json
{
  "data": {
    "id": "7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35",
    "name": "Editors",
    "memberCount": 0,
    "memberIds": [],
    "workspaceAccess": "all",
    "workspaces": [],
    "createdAt": "2026-05-06T10:00:00.000Z"
  }
}
```


## Rename a team

`PATCH /organizations/{organizationId}/teams/{teamId}` · operationId `teams.update`

- Scope: `members:write`
- Role permission: Manage the organization (`organization:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Renames a team (1 to 100 characters, trimmed). Team ids come from `GET …/teams`. Answers with the team.

Teams decide which workspaces their members see: members below admin only see the workspaces of their teams (owners and admins see every workspace). Teams grant no permission; roles do. Needs the Team Collaboration add-on (`402 PLAN_UPGRADE_REQUIRED`).

Needs a token given **all** the workspaces of the organization: one narrowed to chosen workspaces answers `403 INTEGRATION_SELECTION_TOO_NARROW`, since a team's change affects workspaces the token can't see.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `teamId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `name` (string, required): 1–100 characters.

**200 OK**

- `data` (object, required, OrganizationTeam)
  - `id` (string, required): The team's id (a UUID).
  - `name` (string, required)
  - `memberCount` (number, required): How many members are in the team.
  - `memberIds` (array of string, required): The team's members, by membership id (the `id` of `GET …/members`, not the user id).
  - `workspaceAccess` (string, required): `all`: the team's members see every workspace, current and future. `selected`: only the workspaces in `workspaces`. Owners and admins see every workspace whatever their teams. one of `all`, `selected`.
  - `workspaces` (array of object, required): The workspaces of a `selected` team (empty for `all`). Through the public API, only the workspaces the token was given are listed.
    - `id` (string, required)
    - `name` (string, required)
  - `createdAt` (string, required): When the team was created, ISO 8601 in UTC.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `TEAM_NOT_FOUND` | This team doesn't exist in this organization. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `INTEGRATION_SELECTION_TOO_NARROW` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A new name**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/teams/7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Video editors"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35",
    "name": "Video editors",
    "memberCount": 1,
    "memberIds": [
      "Qe4hT8vN2sLw6KpZ1cXbR"
    ],
    "workspaceAccess": "selected",
    "workspaces": [
      {
        "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
        "name": "Northwind"
      }
    ],
    "createdAt": "2026-05-06T10:00:00.000Z"
  }
}
```


## Delete a team

`DELETE /organizations/{organizationId}/teams/{teamId}` · operationId `teams.delete`

- Scope: `members:write`
- Role permission: Manage the organization (`organization:update`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Deletes a team; its members stay in the organization. Members left in no team see no workspace until they join one, so check `GET …/members` first. Cannot be undone. Answers `204`.

Teams decide which workspaces their members see: members below admin only see the workspaces of their teams (owners and admins see every workspace). Teams grant no permission; roles do. Needs the Team Collaboration add-on (`402 PLAN_UPGRADE_REQUIRED`).

Needs a token given **all** the workspaces of the organization: one narrowed to chosen workspaces answers `403 INTEGRATION_SELECTION_TOO_NARROW`, since a team's change affects workspaces the token can't see.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `teamId` | path | string (uuid) | yes |  |

**204 No content**

No content.

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `TEAM_NOT_FOUND` | This team doesn't exist in this organization. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `INTEGRATION_SELECTION_TOO_NARROW` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Delete a team**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/teams/7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 204 with no content.


## Set a team's members

`PUT /organizations/{organizationId}/teams/{teamId}/members` · operationId `teams.members.set`

- Scope: `members:write`
- Role permission: Manage the organization (`organization:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Gives a team exactly these members (replacing them; `[]` empties it), by membership id from `GET …/members`. An id that isn't a member of the organization answers `404 MEMBER_NOT_FOUND` and nothing changes. What each member sees changes at once. Answers with the team.

Teams decide which workspaces their members see: members below admin only see the workspaces of their teams (owners and admins see every workspace). Teams grant no permission; roles do. Needs the Team Collaboration add-on (`402 PLAN_UPGRADE_REQUIRED`).

Needs a token given **all** the workspaces of the organization: one narrowed to chosen workspaces answers `403 INTEGRATION_SELECTION_TOO_NARROW`, since a team's change affects workspaces the token can't see.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `teamId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `memberIds` (array of string, required): Every member of the team, by membership id (replaces them; `[]` empties the team). at most 1000 items; each 1–128 characters.

**200 OK**

- `data` (object, required, OrganizationTeam)
  - `id` (string, required): The team's id (a UUID).
  - `name` (string, required)
  - `memberCount` (number, required): How many members are in the team.
  - `memberIds` (array of string, required): The team's members, by membership id (the `id` of `GET …/members`, not the user id).
  - `workspaceAccess` (string, required): `all`: the team's members see every workspace, current and future. `selected`: only the workspaces in `workspaces`. Owners and admins see every workspace whatever their teams. one of `all`, `selected`.
  - `workspaces` (array of object, required): The workspaces of a `selected` team (empty for `all`). Through the public API, only the workspaces the token was given are listed.
    - `id` (string, required)
    - `name` (string, required)
  - `createdAt` (string, required): When the team was created, ISO 8601 in UTC.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `MEMBER_NOT_FOUND` | This person isn't a member of the organization anymore. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `TEAM_NOT_FOUND` | This team doesn't exist in this organization. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `INTEGRATION_SELECTION_TOO_NARROW` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: One member**

```bash
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/teams/7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35/members" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "memberIds": [
    "Qe4hT8vN2sLw6KpZ1cXbR"
  ]
}'
```

Answers 200:

```json
{
  "data": {
    "id": "7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35",
    "name": "Editors",
    "memberCount": 1,
    "memberIds": [
      "Qe4hT8vN2sLw6KpZ1cXbR"
    ],
    "workspaceAccess": "selected",
    "workspaces": [
      {
        "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
        "name": "Northwind"
      }
    ],
    "createdAt": "2026-05-06T10:00:00.000Z"
  }
}
```


## Set a team's workspaces

`PUT /organizations/{organizationId}/teams/{teamId}/workspaces` · operationId `teams.workspaces.set`

- Scope: `members:write`
- Role permission: Manage the organization (`organization:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-20.

Sets the workspaces a team sees (replacing them): `null` or `[]` for every workspace, current and future, or exactly the given ones (ids from `GET …/workspaces`; one that isn't a workspace of the organization answers `404 WORKSPACE_NOT_FOUND` and nothing changes). What the team's members see changes at once. Answers with the team.

Teams decide which workspaces their members see: members below admin only see the workspaces of their teams (owners and admins see every workspace). Teams grant no permission; roles do. Needs the Team Collaboration add-on (`402 PLAN_UPGRADE_REQUIRED`).

Needs a token given **all** the workspaces of the organization: one narrowed to chosen workspaces answers `403 INTEGRATION_SELECTION_TOO_NARROW`, since a team's change affects workspaces the token can't see.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `teamId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `workspaceIds` (array of string (uuid), required, nullable): The workspaces the team's members see: `null` or `[]` = every workspace, current and future; otherwise exactly these (each a workspace of the organization, from `GET …/workspaces`). at most 500 items.

**200 OK**

- `data` (object, required, OrganizationTeam)
  - `id` (string, required): The team's id (a UUID).
  - `name` (string, required)
  - `memberCount` (number, required): How many members are in the team.
  - `memberIds` (array of string, required): The team's members, by membership id (the `id` of `GET …/members`, not the user id).
  - `workspaceAccess` (string, required): `all`: the team's members see every workspace, current and future. `selected`: only the workspaces in `workspaces`. Owners and admins see every workspace whatever their teams. one of `all`, `selected`.
  - `workspaces` (array of object, required): The workspaces of a `selected` team (empty for `all`). Through the public API, only the workspaces the token was given are listed.
    - `id` (string, required)
    - `name` (string, required)
  - `createdAt` (string, required): When the team was created, ISO 8601 in UTC.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `PLAN_UPGRADE_REQUIRED` | Your current plan doesn't include this feature. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `TEAM_NOT_FOUND` | This team doesn't exist in this organization. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `INTEGRATION_SELECTION_TOO_NARROW` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Only one workspace**

```bash
curl -X PUT "https://api.beplan.io/v1/organizations/Yx0k2N7mQf3bA9cRz1LwP/teams/7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35/workspaces" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "workspaceIds": [
    "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62"
  ]
}'
```

Answers 200:

```json
{
  "data": {
    "id": "7a3e9c21-5b8d-4f60-9e2a-1c4d7b8f0e35",
    "name": "Editors",
    "memberCount": 1,
    "memberIds": [
      "Qe4hT8vN2sLw6KpZ1cXbR"
    ],
    "workspaceAccess": "selected",
    "workspaces": [
      {
        "id": "3f6c2a8e-91b4-4d7e-a2c5-7e0b9d1f4a62",
        "name": "Northwind"
      }
    ],
    "createdAt": "2026-05-06T10:00:00.000Z"
  }
}
```


---
HTML version: https://beplan.io/docs/api/teams/
