# Create account invitation

Tool: `veryfront__create_account_invitation`

Create account invitation. Requires account.invitations.manage.

## Arguments

| Name         | Type                            | Required | Description                                                                                                                                                                                                                                              |
| ------------ | ------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `email`      | string · email · max length 254 | Yes      | Invitation recipient email. Only one pending invitation is allowed per email; another creation returns 409 until it is revoked or expires. Creation does not send email or reserve a seat; tier and seat capacity are checked when a new member accepts. |
| `role`       | string · default admin          |          | Invited administrator or member role. Defaults to administrator for existing clients. One of `admin`, `member`.                                                                                                                                          |
| `account_id` | string · uuid                   | Yes      | Provide the account id.                                                                                                                                                                                                                                  |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_account_invitation",
    "arguments": {
      "email": "user@example.com",
      "account_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"account_id\":\"00000000-0000-0000-0000-000000000000\",\"email\":\"string\",\"role\":\"owner\",\"status\":\"pending\",\"expires_at\":\"string\",\"invited_by_user_id\":\"00000000-0000-0000-0000-000000000000\",\"accepted_by_user_id\":\"00000000-0000-0000-0000-000000000000\",\"resolved_at\":\"string\",\"created_at\":\"string\",\"token\":\"string\"}"
      }
    ],
    "structuredContent": {
      "id": "00000000-0000-0000-0000-000000000000",
      "account_id": "00000000-0000-0000-0000-000000000000",
      "email": "string",
      "role": "owner",
      "status": "pending",
      "expires_at": "string",
      "invited_by_user_id": "00000000-0000-0000-0000-000000000000",
      "accepted_by_user_id": "00000000-0000-0000-0000-000000000000",
      "resolved_at": "string",
      "created_at": "string",
      "token": "string"
    }
  }
}
```
