> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
