# list_invites

> The AirBuild MCP tool that lists a Team's invite links that still work, with how often each was used. Owner only.

Source: https://air.build/docs/mcp-tools/list_invites/

`list_invites` lists the Team's invite links that still work, newest first, with how many people used each. Links that expired, were used up or were revoked are left out. It changes nothing; to stop a link, use [revoke_invite](https://air.build/docs/mcp-tools/revoke_invite/). Only the Team's owner can list invite links; for a member the call fails.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| Yes | No | Yes |

## Inputs

| Input | Type | Required | Default | What it does |
| --- | --- | --- | --- | --- |
| `teamId` | string (UUID) | Yes | — | The Team, from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |

## Result

| Field | What |
| --- | --- |
| `invites` | The links that still work, newest first |
| `invites[].inviteId` | The invite's id, for [revoke_invite](https://air.build/docs/mcp-tools/revoke_invite/) |
| `invites[].link` | The link: `https://<site>/join/<code>` |
| `invites[].expiresAt` | When it stops working (ISO 8601) |
| `invites[].maxUses` | How many people can join with it, or `null` for no limit |
| `invites[].useCount` | How many people have joined with it |
| `invites[].revoked` | `false`: revoked links are not listed |

```json
{
  "invites": [
    {
      "inviteId": "00000000-0000-0000-0000-000000000000",
      "link": "https://<site>/join/<code>",
      "expiresAt": "2026-11-27T09:30:00Z",
      "maxUses": 5,
      "useCount": 2,
      "revoked": false
    }
  ]
}
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| Only the Team's owner can see invite links. | You are a member of this Team, not its owner | Ask the owner |
| Team not found. | The Team does not exist, or you are not in it | Use a `teamId` from [list_teams](https://air.build/docs/mcp-tools/list_teams/) |

The errors every tool can return are on [Server and sign-in](https://air.build/docs/mcp-tools/server/#errors).

## Example

```json
{"name": "list_invites", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000"}}
```
