# create_invite

> The AirBuild MCP tool that creates a link people open to join a Team as members, optionally with an expiry and a use limit. Owner only.

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

`create_invite` creates an invite link: anyone signed in to AirBuild who opens it can join the Team as a member. It does not send the link to anyone: give it to the people you mean to invite. A link works until it expires, is used up, or is revoked with [revoke_invite](https://air.build/docs/mcp-tools/revoke_invite/). Only the Team's owner can create invite links; for a member the call fails. Each call creates a new link. See also [Invite people to your Team](https://air.build/docs/team/invite-people/).

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

## 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/) |
| `expiresInSeconds` | integer | No | 7 days (`604800`) | How long the link works. Under 60 is raised to 60; more than 30 days (`2592000`) is cut to 30 days |
| `maxUses` | integer, at least 1 | No | unlimited | How many people can join with the link. Leave it out for no limit: `0` is refused |

## Result

| Field | What |
| --- | --- |
| `inviteId` | The invite's id (a UUID), for [revoke_invite](https://air.build/docs/mcp-tools/revoke_invite/) |
| `link` | The link to give people: `https://<site>/join/<code>` |
| `expiresAt` | When the link stops working (ISO 8601) |
| `maxUses` | How many people can join with it, or `null` for no limit |

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

## Errors

| Message | When | What to do |
| --- | --- | --- |
| Only the Team's owner can invite people. | You are a member of this Team, not its owner | Ask the owner for a link |
| maxUses must be at least 1. | `maxUses` is `0` | Leave `maxUses` out for no limit, or give 1 or more |
| 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": "create_invite", "arguments": {"teamId": "00000000-0000-0000-0000-000000000000", "expiresInSeconds": 86400, "maxUses": 5}}
```
