> For the complete documentation index, see [llms.txt](https://helpdocs.conducttr.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdocs.conducttr.com/feature-documentation/api/endpoint-reference/teams/get-teams.md).

# GET teams

<mark style="color:green;">`GET`</mark> `/teams`

This endpoint returns all active teams currently defined within the simulation space. The team id is necessary for publishing with other endpoints

There are THREE team types;

* Session team (S) - this includes everyone in the session
* Moderator team (M) - this includes facilitators and observers
* Participant team (T) - the training audience and role-players

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

| Name   | Type   | Description      |
| ------ | ------ | ---------------- |
| `name` | string | Name of the user |
| `age`  | number | Age of the user  |

**Response**

{% tabs %}
{% tab title="200" %}

```json
[
  {
    "id": 3440932,
    "name": "S - robert@testaccount.com - 2026/02/06 03-32-51"
  },
  {
    "id": 3440935,
    "name": "M - robert@testaccount.com - 2026/02/06 03-32-51"
  },
  {
    "id": 3440938,
    "name": "T - West Ham United Team - 2026/02/06 03-32-51"
  },
  {
    "id": 3440941,
    "name": "T - Manchester City Team - 2026/02/06 03-32-51"
  },
  {
    "id": 3440944,
    "name": "T - Arsenal Team - 2026/02/06 03-32-51"
  },
  {
    "id": 3440947,
    "name": "T - Liverpool Team - 2026/02/06 03-32-51"
  },
  {
    "id": 3440950,
    "name": "T - Tottenham Hotspur Team - 2026/02/06 03-32-51"
  },
  {
    "id": 3440953,
    "name": "T - UNREGISTERED - 2026-02-06 15:33:23"
  }
]

```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

The prefix on the "name" indicates the team type. Date-time string is the date & time when the team was created.

**Code Snippet**

<details>

<summary>extract the team type, name and creation date from the name list item</summary>

```
// Regex to parse: "Type - Name - Date"
const regex = /^([ST])\s*-\s*(.+)\s*-\s*(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})$/;
function parseTeamName(rawName) {
  const match = rawName.match(regex);
  
  if (match) {
    return {
      type: match[1] === 'S' ? 'Session' : (match[1] === 'T' ? 'Player' : 'Unknown'),
      parsedName: match[2].trim(),
      createdAt: match[3]
    };
  }
  
  // Fallback if regex doesn't match
  return {
    type: 'Unknown',
    parsedName: rawName,
    createdAt: ''
  };
}
```

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpdocs.conducttr.com/feature-documentation/api/endpoint-reference/teams/get-teams.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
