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

# Intercom: List Teams

> List the teams in an Intercom workspace. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

List the teams in an Intercom workspace.

> [!NOTE]
>
> Tool ID: `intercom_list_teams`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'intercom_list_teams',
  {},
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute intercom_list_teams --input '{}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "type": "team.list",
    "teams": [
      {
        "type": "example",
        "id": "id_123",
        "name": "Example"
      }
    ]
  }
}
```

Use `deepline describe intercom_list_teams --json` for the latest machine-readable contract.

## Input reference

This will return a list of team objects for the App.

This action requires no input fields.

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "This will return a list of team objects for the App.",
    "properties": {},
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | This will return a list of team objects for the App. |
| `result.data.type` | `"team.list"` | No | — | The type of the object Allowed: `team.list`. |
| `result.data.teams` | `array` | No | — | A list of team objects |
| `result.data.teams[].type` | `string` | No | — | Value is always "team" |
| `result.data.teams[].id` | `string` | No | — | The id of the team |
| `result.data.teams[].name` | `string` | No | — | The name of the team |
| `result.data.teams[].admin_ids` | `array` | No | — | The list of admin IDs that are a part of the team. |
| `result.data.teams[].admin_priority_level` | `object \| null` | No | — | Admin priority levels for the team |
| `result.data.teams[].admin_priority_level.primary_admin_ids` | `array \| null` | No | — | The primary admin ids for the team |
| `result.data.teams[].admin_priority_level.secondary_admin_ids` | `array \| null` | No | — | The secondary admin ids for the team |
| `result.data.teams[].assignment_limit` | `integer \| null` | No | — | The assignment limit for the team. This field is only present when the team's distribution type is load balanced. |
| `result.data.teams[].distribution_method` | `string \| null` | No | — | Describes how assignments are distributed among the team members |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "This will return a list of team objects for the App.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the object",
            "enum": [
              "team.list"
            ]
          },
          "teams": {
            "type": "array",
            "description": "A list of team objects",
            "items": {
              "type": "object",
              "description": "Teams are groups of admins in Intercom.",
              "properties": {
                "type": {
                  "type": "string",
                  "description": "Value is always \"team\""
                },
                "id": {
                  "type": "string",
                  "description": "The id of the team"
                },
                "name": {
                  "type": "string",
                  "description": "The name of the team"
                },
                "admin_ids": {
                  "type": "array",
                  "description": "The list of admin IDs that are a part of the team.",
                  "items": {
                    "type": "integer"
                  }
                },
                "admin_priority_level": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "Admin priority levels for the team",
                  "properties": {
                    "primary_admin_ids": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "description": "The primary admin ids for the team",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "secondary_admin_ids": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "description": "The secondary admin ids for the team",
                      "items": {
                        "type": "integer"
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "assignment_limit": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "The assignment limit for the team. This field is only present when the team's distribution type is load balanced."
                },
                "distribution_method": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Describes how assignments are distributed among the team members"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Intercom provider guide](https://deepline.com/docs/providers/intercom/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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