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

# Team

> List teammate and team ids, then assign a Live Chat conversation to a person or a team.

## Team

Team tools return the ids `assign_conversation` needs. A person uses `assigneeType` `user`. A team uses `assigneeType` `team`. A bot id still comes from [AI bots](https://docs.greentick.ai/mcp/ai-bots.md).

| Tool | What it does |
| - | - |
| `list_teammates` | Lists people, including the account owner. Pass `teammates[].id` with `assigneeType` `user`. The owner id is an email. A member id is that person's user id. The owner does not take a plan seat, so this list can be one person longer than `get_plan` `resourceUsage.seats.used`. The same call also includes `teams[].id`. |
| `list_teams` | Lists teams only. Pass `teams[].id` with `assigneeType` `team`. |
| `assign_conversation` | Assigns one conversation. `assigneeType` is `unassigned`, `user`, `bot`, or `team`. `unassigned` does not need an id. |

`phoneNumberRef` is optional when the account has one number. Use the ref from `list_phone_numbers` when it has more than one.

`assign_conversation` checks the id before it saves. A person who is not in `list_teammates` returns `TEAMMATE_NOT_FOUND` and the chat stays where it was. A team that is not in `list_teams` returns `TEAM_NOT_FOUND`. A successful person assignment sets `assigneeLabel` to that person's name, such as Tech Twos, not the raw id or email.

An invalid `assigneeType` returns those four values. `assigneeType` in the tool schema is `unassigned`, `user`, `bot`, or `team`. Do not invent a person id or a team id. Call the list tool first.

How to assign a thread is [Assign a live chat](https://docs.greentick.ai/mcp/use-cases/assign-live-chat.md). The rest of Live Chat is [Inbox](https://docs.greentick.ai/mcp/inbox.md).


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