---
title: "List teams REST API | HitKeep"
description: "Reference for the HitKeep REST API operation List teams, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiuserteams/get/"
---

# List teams REST API

GET

/api/user/teams

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/user/teams';
const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request GET \
  --url http://127.0.0.1:25737/api/user/teams \
  --cookie hk_token=<hk_token>
```

-

Returns all teams for the authenticated user and the current active team.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Responses

### 200

Team list

application/json

object

**active_team_id**

string format: uuid

**recent_team_ids**

Array<string>

**teams**

Array<object>

object

**created_at**

string format: date-time

**entitlements**

object

**allow_custom_branding**

boolean

**allow_external_report_recipients**

Whether scheduled reports may be sent to confirmed addresses outside the team.

boolean

**allow_sso**

boolean

**max_retention_days**

integer

**max_sites_per_team**

integer

**max_team_members**

integer

**id**

string format: uuid

**logo_url**

string

**name**

string

**plan**

object

**code**

string

**name**

string

**support_url**

string

**upgrade_url**

string

**role**

string

**usage**

object

**current_members**

integer

**current_pending_invites**

integer

**current_sites**

integer

##### Examplegenerated

```
{
  "active_team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "recent_team_ids": [
    "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
  ],
  "teams": [
    {
      "created_at": "2026-04-15T12:00:00Z",
      "entitlements": {
        "allow_custom_branding": true,
        "allow_external_report_recipients": true,
        "allow_sso": true,
        "max_retention_days": 1,
        "max_sites_per_team": 1,
        "max_team_members": 1
      },
      "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
      "logo_url": "example",
      "name": "example",
      "plan": {
        "code": "example",
        "name": "example",
        "support_url": "example",
        "upgrade_url": "example"
      },
      "role": "example",
      "usage": {
        "current_members": 1,
        "current_pending_invites": 1,
        "current_sites": 1
      }
    }
  ]
}
```

[Previous Overview](https://hitkeep.com/api/operations/tags/teams/)[Next Create team](https://hitkeep.com/api/operations/apiuserteams/post/)
