# Revoke an account invitation

Revoke a pending invitation to your account, and its link stops working.

## Before you start

You need a pending invitation. See [Invite someone to the account](/docs/account/team.md).

## Revoke an account invitation

**Studio**

1. Open **Account settings** > **Members**.

2. Open the **⋯** menu on the invitation.

3. Click **Revoke invitation**.

   ![The Revoke invitation? dialog over Maya's pending invitation](/docs-assets/platform/guides/authentication/revoke-invitation.png "docs-screenshot:512x236")

4. Click **Revoke invitation** in the dialog. You should now see "Invitation revoked" and **No pending invitations**.

**REST**

1. Set `ACCOUNT_ID` to your account's id, the part after `/accounts/` in its Studio settings address: `export ACCOUNT_ID=<id>`.
2. List the account's invitations:

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

3. Set `INVITATION_ID` to the `id` of the invitation, found by its `email`: `export INVITATION_ID=<id>`.
4. Delete the invitation:

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

5. List the invitations again. You should now see the invitation gone from `data`:

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

## With MCP

1. Call `veryfront__list_account_invitations` with `{ "account_id": "<the account id>" }`, and take the `id` of Maya's invitation.
2. Call `veryfront__delete_account_invitation` with `{ "account_id": "<the account id>", "invitation_id": "<the id>", "confirm": true }`.
3. Call `veryfront__list_account_invitations` with the same `account_id`. It worked when Maya's invitation is no longer `pending`.

## Next steps

* [Remove an account member](/docs/authentication/remove-member.md)
* [Set roles](/docs/account/roles.md)
