# Invite people

Create a team account to share projects, then invite people to the whole account or to one project.

## Before you start

You need a Veryfront account. [Sign in](/sign-in) or create one.

## Create a team account

**Studio**

1. Open the account menu at the top of the sidebar.
2. Click **Create account**.
3. Enter `Northwind Studio` as the **Name**.
4. Click **Create account**.
5. Open **Settings** > **Members**. You should now see yourself listed as **Owner**.

**API**

1. Create the account with your [API key](/docs/authentication/api-keys.md):

```bash
curl -X POST https://api.veryfront.com/accounts \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Northwind Studio"}'
```

2. Set `ACCOUNT_ID` to the `id` in the response: `export ACCOUNT_ID=<id>`.
3. List its members. You should now see yourself listed as `owner`:

```bash
curl https://api.veryfront.com/accounts/$ACCOUNT_ID/members \
  -H "Authorization: Bearer $VERYFRONT_API_KEY"
```

## Invite someone to the account

**Studio**

1. In **Members**, click **Invite member**.
2. Enter `maya@example.com` as the **Email**.
3. Pick **Member** as the **Role**.
4. Click **Invite**.
5. Maya opens the emailed link.
6. Maya clicks **Accept**.
7. Open **Members**. You should now see Maya listed as **Member**.

### Troubleshooting

**If Studio says "You have used up all your seats. Upgrade to continue."**, the Free plan has one seat. Click **Upgrade plan**.

**API**

1. Set `ACCOUNT_ID` to your account's id, the part after `/accounts/` in its Studio settings address: `export ACCOUNT_ID=<id>`.
2. Invite a `member` or an `admin`:

```bash
curl -X POST https://api.veryfront.com/accounts/$ACCOUNT_ID/invitations \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "maya@example.com", "role": "member"}'
```

3. List the invitations. You should now see the person as `pending`:

```bash
curl https://api.veryfront.com/accounts/$ACCOUNT_ID/invitations \
  -H "Authorization: Bearer $VERYFRONT_API_KEY"
```

## Invite someone to a project

**Studio**

1. In your project, click **Invite** in the top bar.
2. Enter `maya@example.com` as the **Email address**.
3. Pick **Editor** as the **Role**.
4. Click **Send**. You should now see "Invitation sent" and Maya listed as Invited.

## With MCP

1. Call `veryfront__create_account` with `{ "name": "Northwind Studio" }`.
2. Call `veryfront__create_account_invitation` with `{ "account_id": "<the returned id>", "email": "maya@example.com", "role": "member" }`.
3. Call `veryfront__list_account_invitations` with the same `account_id`.
4. Call `veryfront__create_project_invitation` with `{ "project_reference": "my-project", "email": "maya@example.com", "role": "editor" }`. On the Free plan it answers "Collaboration requires pro tier or higher": the account needs a paid plan and a seat.
5. Call `veryfront__list_account_members` with the same `account_id`. It worked when you are listed as `owner` and step 3 shows Maya as `pending`.

## Next steps

* [Set roles](/docs/account/roles.md)
* [Set spend limits](/docs/account/spend-limits.md)
