# List or read teams

URL: https://heaven.dev/docs/reference/teams/view
Updated: 2026-11-21

List an organization's teams, including their members, Computers and shares. Name one team to read just that team.

`GET /v1/organization/team/`

## Parameters

- `team` (string): Team name, ID or ORGANIZATION@TEAM. Omit to list teams in the selected organization.
- `organization` (string): Organization name or ID. A credential, named resource or sole membership can select the organization for you.

## Returns

- `data` (object[] | object, always present): Accessible teams, or one team's members, Computers and shared access.
  - `alternative-1` (object[]): An organization team, its members, owned Computers and shared access.
    - `items` (object): An organization team, its members, owned Computers and shared access.
      - `computers` (string[] | null, always present): Computers owned by the team.
      - `full_name` (string, always present): Team name qualified by its organization.
      - `id` (string, always present): Team ID.
      - `member_access` (string, always present): Access team members receive to Computers the team owns.
      - `members` (object[] | null, always present): Team's members and their team roles.
        - `items` (object): A person's membership in an organization team.
          - `email` (string | null, always present): Their email address, or null without one.
          - `name` (string): Their display name, when set. May be omitted.
          - `picture` (string): Their profile picture URL. May be omitted.
          - `role` (string, always present): Their role within this team.
          - `user_id` (string, always present): Person's user ID.
      - `name` (string, always present): Team's name within its organization.
      - `pools` (object[] | null, always present): Pools shared with the team by other accounts.
        - `items` (object): A pool another account shares with the team.
          - `account` (string, always present): Account providing the pool.
          - `commands` (string[]): Additional commands the share grants. May be omitted.
          - `pool` (string, always present): Shared pool's name.
          - `pool_id` (string, always present): Shared pool's ID.
          - `role` (string, always present): Pool share's role.
      - `shares` (object[] | null, always present): Computer access granted to the team.
        - `items` (object): Access to a Computer shared with a team.
          - `commands` (string[]): Additional commands granted to the team. May be omitted.
          - `computer` (string, always present): Shared Computer's name.
          - `role` (string, always present): Share's access role.
  - `alternative-2` (object): An organization team, its members, owned Computers and shared access.
    - `computers` (string[] | null, always present): Computers owned by the team.
    - `full_name` (string, always present): Team name qualified by its organization.
    - `id` (string, always present): Team ID.
    - `member_access` (string, always present): Access team members receive to Computers the team owns.
    - `members` (object[] | null, always present): Team's members and their team roles.
      - `items` (object): A person's membership in an organization team.
        - `email` (string | null, always present): Their email address, or null without one.
        - `name` (string): Their display name, when set. May be omitted.
        - `picture` (string): Their profile picture URL. May be omitted.
        - `role` (string, always present): Their role within this team.
        - `user_id` (string, always present): Person's user ID.
    - `name` (string, always present): Team's name within its organization.
    - `pools` (object[] | null, always present): Pools shared with the team by other accounts.
      - `items` (object): A pool another account shares with the team.
        - `account` (string, always present): Account providing the pool.
        - `commands` (string[]): Additional commands the share grants. May be omitted.
        - `pool` (string, always present): Shared pool's name.
        - `pool_id` (string, always present): Shared pool's ID.
        - `role` (string, always present): Pool share's role.
    - `shares` (object[] | null, always present): Computer access granted to the team.
      - `items` (object): Access to a Computer shared with a team.
        - `commands` (string[]): Additional commands granted to the team. May be omitted.
        - `computer` (string, always present): Shared Computer's name.
        - `role` (string, always present): Share's access role.

## Errors

Each code is explained in full at https://heaven.dev/docs/reference/errors.

| Code | Status | What happened |
|---|---:|---|
| `invalid` | 400 | An input is missing or invalid. |
| `unauthenticated` | 401 | The credential is missing, invalid, expired or revoked. |
| `denied` | 403 | The caller lacks permission for this action. |
| `not_found` | 404 | The resource is absent or inaccessible to this caller. |
| `conflict` | 409 | The request conflicts with the current resource state or an earlier request. |
| `over_capacity` | 409 | The request exceeds a resource or credential allowance. |
| `access_list_full` | 409 | The change would exceed the access-list allowance. |
| `rate_limited` | 429 | The caller's request rate exceeds its limit. |
| `busy` | 429 | Too much work is in progress to accept this request. |
| `unknown` | 503 | The outcome is unconfirmed; a change may have happened. |
| `unavailable` | 503 | The service or requested feature is unavailable. |

## Notes

- API key permission: `organization team view`.

## Examples

```sh tab="heaven CLI"
heaven organization team view [TEAM]
  [--organization ORGANIZATION]
```

```sh tab="SSH"
ssh cli@heaven.dev organization team view [TEAM]
  [--organization ORGANIZATION]
```

```sh tab="cURL"
curl https://heaven.dev/v1/organization/team/ \
  -H "Authorization: Bearer $HEAVEN_API_KEY"
```

```json tab="MCP"
{ "tool": "organization_team_view",
  "arguments": {  } }
```

Response:

```json title="Response excerpt"
{
  "version": 1,
  "data": []
}
```
