# List teams

```http
GET https://trydimmi.com/api/v1/teams
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `members:read`.

## Query parameters

- `include` (string): members adds who is in each team.
- `limit` (string): How many items to return in one page, such as 25.
- `cursor` (string): Leave out for the first page. To read the next page, pass the next_cursor the previous page returned.
- `q` (string): Words to search for, such as refund.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `conversation_counts` (object)
    - `closed` (integer, required): How many of the team's conversations are closed.
    - `open` (integer, required): How many of the team's conversations are open.
    - `snoozed` (integer, required): How many of the team's conversations are snoozed.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `member_count` (integer, required): How many members the team has.
  - `members` (object[]): The team's members. Only present when the request asked to include them.
    - `access_team_ids` (string[] | null, required): Ids of the teams the member's conversation access names, such as team_...; used by the teams and all_except_teams modes. Empty otherwise.
    - `assign_on_reply` (string, required): The member's own rule for taking a conversation by replying to it: inherit (follow the workspace), always or never.
    - `availability` (string, required): What the member shows teammates and customers: online or away.
    - `away_reassign` (boolean, required): True when customers' answers go back to the pool while the member is away.
    - `away_since` (string | null, required): Since when the member has been away. Null while they are online.
    - `capacity_by_channel` (object, required): The most open conversations the member holds per channel type, such as {"email": 10, "widget": 5}. A channel left out has no limit of its own.
    - `conversation_access` (string, required): Which conversations the member sees: all, assigned (only their own), teams (their own plus the listed teams') or all_except_teams.
    - `conversation_access_unassigned` (boolean, required): True when a narrowed access mode also shows the member conversations nobody is assigned to.
    - `conversation_capacity` (integer | null, required): The most open conversations the member holds overall. Null for no limit.
    - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
    - `custom_role` (object, required)
      - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
      - `name` (string, required): Name of the custom role the member holds; may be empty when the response did not fill it in.
      - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `deactivated_at` (string | null, required): When the member was deactivated. Null while they are active.
    - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
    - `joined_via` (string | null, required): How the member arrived in the workspace, such as created, cli or an invitation. Null when not recorded.
    - `last_active_at` (string | null, required): When the member last used the workspace. Null when never, and for callers who do not manage members.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `role` (string, required): The member's role in the workspace: owner, admin or member.
    - `sign_in_locked` (boolean | null, required): True when failed sign-in guesses locked the member's account. Null for callers who do not manage members.
    - `status` (string, required): Whether the member can work in the workspace: active or deactivated.
    - `teams` (object[]): The teams the member belongs to. Present only when the request asked for members' teams.
      - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
      - `name` (string, required): The team's name.
      - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `two_factor_enabled` (boolean | null, required): True when the member's account has a second sign-in factor. Null for callers who do not manage members.
    - `user` (object, required)
      - `avatar_url` (string | null, required): Address of the teammate's picture; null when they have none.
      - `email` (string, required): The teammate's email address.
      - `email_verified` (boolean, required): True when the teammate has confirmed their email address.
      - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
      - `name` (string, required): The teammate's name.
      - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `name` (string, required): The team's name.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
- `links` (object): Addresses of related pages by name, such as next; left out when there are none.
- `meta` (object, required)
  - `next_cursor` (string | null, required): Send it as cursor to read the next page; null on the last page.
  - `per_page` (integer, required): How many items a page holds at most, such as 25.
  - `prev_cursor` (string | null, required): Send it as cursor to read the page before; null on the first page.
  - `total` (integer): How many items match in all; left out when the list does not count them.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/teams' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "conversation_counts": {
        "closed": 123,
        "open": 123,
        "snoozed": 123
      },
      "created_at": "2026-11-01T09:30:00Z",
      "id": "<string>",
      "member_count": 123,
      "members": [
        {
          "access_team_ids": [],
          "assign_on_reply": "<string>",
          "availability": "<string>",
          "away_reassign": true,
          "away_since": "2026-11-01T09:30:00Z",
          "capacity_by_channel": {},
          "conversation_access": "<string>",
          "conversation_access_unassigned": true,
          "conversation_capacity": 123,
          "created_at": "2026-11-01T09:30:00Z",
          "custom_role": {},
          "deactivated_at": "2026-11-01T09:30:00Z",
          "id": "<string>",
          "joined_via": "<string>",
          "last_active_at": "2026-11-01T09:30:00Z",
          "object": "<string>",
          "role": "<string>",
          "sign_in_locked": true,
          "status": "<string>",
          "teams": [],
          "two_factor_enabled": true,
          "user": {}
        }
      ],
      "name": "<string>",
      "object": "<string>",
      "updated_at": "2026-11-01T09:30:00Z"
    }
  ],
  "links": {
    "<key>": "<string>"
  },
  "meta": {
    "next_cursor": "<string>",
    "per_page": 123,
    "prev_cursor": "<string>",
    "total": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
