# revoke_invite

> The AirBuild MCP tool that stops an invite link from working. Owner only.

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

`revoke_invite` stops an invite link from working: nobody else can join the Team with it. People who already joined with it stay on the Team; to take someone off, use [remove_person](https://air.build/docs/mcp-tools/remove_person/). A revoked link cannot be turned back on: create a new one with [create_invite](https://air.build/docs/mcp-tools/create_invite/). Revoking a link that is already revoked changes nothing. Only the Team's owner can revoke invite links; for a member the call fails.

| Read-only | Destructive | Idempotent |
| --- | --- | --- |
| No | Yes | 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/) |
| `inviteId` | string (UUID) | Yes | — | The invite, from [list_invites](https://air.build/docs/mcp-tools/list_invites/) or [create_invite](https://air.build/docs/mcp-tools/create_invite/) |

## Result

| Field | What |
| --- | --- |
| `revoked` | `true` |

```json
{ "revoked": true }
```

## Errors

| Message | When | What to do |
| --- | --- | --- |
| Only the Team's owner can revoke invite links. | You are a member of this Team, not its owner | Ask the owner |
| Invite not found. | No invite of this Team has this id | Take the id from [list_invites](https://air.build/docs/mcp-tools/list_invites/) |
| 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": "revoke_invite", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "inviteId": "00000000-0000-0000-0000-000000000000"}}
```
