> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beaconrevenue.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Teams

> The Teams table in the Beacon Data API: one row per team or group of teams, every column it carries, and how to join it.

One row is one team, or one umbrella that groups teams, as entered in Beacon's Team capacity: where it sits, the role that heads it, and who holds that role.

> [!NOTE]
>
> **Served.** `head_role_id`, `head_role_name` and `head_person_id` are refused where no head role is set; `head_person_id` also where no one, or more than one person, is in the head role. `head_name` is shown to a company admin only.

> [!NOTE]
>
> **Preview.** This table may still change, always with notice before the change, and becomes stable once it settles. See [Versions](https://docs.beaconrevenue.io/api/versions.md#stable-and-preview).

## How to read it

| | |
| - | - |
| Address | `GET https://api.beaconrevenue.io/data/v1/teams` |
| Key | An [app key](https://docs.beaconrevenue.io/app-keys.md), sent as `Authorization: Bearer <your key>` |
| Who may read it | Teams belong to the whole company, and the Team capacity page decides. A key whose person sees only their own or their team's records does not receive them |
| Paging | `page` takes the cursor from `page.next` in the previous response. See [Paging](https://docs.beaconrevenue.io/api/paging.md) |
| Narrowing | `entity_scope` narrows the read to one entity inside your access, and can only narrow. See [Entity scope](https://docs.beaconrevenue.io/api/entity-scope.md) |

The response carries the rows in `data`, the cursor in `page`, and two timestamps for the page: `as_of` and `computed_at`. Every row carries `copy_night`: the night Beacon copied it from your Beacon data into your company's own database. Every value on the row is as it stood that night, so `changed_since` lists every row again after each night's copy. A team is what was entered in Beacon, not a figure Beacon works out, so each row's own `as_of` and `computed_at` are `null`. The page's `as_of` and `computed_at` are both the start of the copy night (UTC). A value Beacon doesn't hold is never a blank or a zero; a refusal stands in its place. See [Refusals](https://docs.beaconrevenue.io/api-reference.md#refusals).

## Columns

9 columns, named exactly as the API sends them.

| Column | What it means | Unit |
| - | - | - |
| `team_id` | Beacon's ID for the team. Stable: one team keeps one ID. Joins to People | Text identifier (Beacon team ID) |
| `team_name` | The team's name, as your company calls it | Text label |
| `kind` | Whether this is a team, which holds roles, or an umbrella, which groups teams and holds none | Text label |
| `parent_team_id` | The team or umbrella this one sits under. Joins to this same collection | Text identifier (Beacon team ID) |
| `head_role_id` | Beacon's ID for the role that heads this team. A team is headed by a role, not by a person. Joins to People's role\_id | Text identifier (Beacon role ID) |
| `head_role_name` | The name of the role that heads this team | Text label |
| `head_person_id` | Beacon's ID for the person in the head role on the copy night. Joins to People's person\_id | Text identifier (Beacon person ID) |
| `head_name` | The name of the person in the head role on the copy night. Shown to a company admin only, as on the Team capacity page; anyone else gets "outside your access" in its place | Text |
| `copy_night` | The night Beacon copied this row from your Beacon data into your company's own database. Every value on the row is as it stood that night | Date (YYYY-MM-DD) |

## Reading it right

* Teams form a tree: follow `parent_team_id` up to the top, where it is `null`.
* A team is headed by a role. The head person is whoever is in that role on the copy night; Beacon never picks one when two are.

## Joining it to other data

| To join to | Use |
| - | - |
| [People](https://docs.beaconrevenue.io/api/people.md) | `team_id`; the head with `head_role_id` → `role_id` or `head_person_id` → `person_id` |
| Teams itself | `parent_team_id` → `team_id` |

## Example

Example data, not a real company. Shown as a company admin sees it. For anyone else, `head_name` carries the "outside your access" refusal.

```json theme={null}
{
  "as_of": "2026-11-16T00:00:00Z",
  "computed_at": "2026-11-16T00:00:00Z",
  "data": [
    {
      "team_id": "wt_99596a0ea6a9",
      "team_name": "Sales",
      "kind": "team",
      "parent_team_id": "wt_60db76c6501b",
      "head_role_id": "wr_4d5e6f",
      "head_role_name": "Head of sales",
      "head_person_id": "wp_1e5ff165d9f0",
      "head_name": "Sam Example",
      "copy_night": "2026-11-16",
      "as_of": null,
      "computed_at": null
    }
  ],
  "page": {}
}
```

## Related

> [card] [People](https://docs.beaconrevenue.io/api/people.md)
>
> Who is in each team.

> [card] [API reference](https://docs.beaconrevenue.io/api-reference.md)
>
> The collections and the rules they share.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.