> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createInvites

> Invite people to a Space, the Network, or a Payment Plan by email or by
existing member. Only Network hosts may invite to a Payment Plan. On the
public API, attributing the invite to another member or inviting as host or
moderator additionally requires the `host:write:network_members` OAuth scope,
and a Promo Code or waived Plan gates requires `host:write:network_plans`.

**Required scopes:** `write:invites`, `host:write:network_members` (any one)



**mutation** `createInvites(input: CreateInvitesInput!): CreateInvitesPayload`

## Arguments

**`input`**: `CreateInvitesInput!` (required)

Parameters for CreateInvites

## Returns

`CreateInvitesPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`count`**: `Int!`

Number of recipients accepted for invite creation.

---

**`errors`**: `[String!]!`

---

**`ignoredRecipients`**: `[String!]!`

Recipients skipped because they are already members or already have a pending invite, as email addresses or member names.

---

**`invites`**: `[Invite!]!`

The invites created by this request, each carrying the url to share. Populated
only when deliver is false; a delivered batch creates its rows in the
background, where Network.invites reads them.

---

**`mode`**: `String`

How the invites were created: 'sync' when created immediately, 'async' when
enqueued for background delivery. Null when the request was rejected.

## Examples

```graphql Mutation
mutation CreateInvites($input: CreateInvitesInput!) {
  createInvites(input: $input) {
    clientMutationId
    count
    errors
    ignoredRecipients
    invites {
      channel
      convertedAt
      createdAt
      expiresAt
      id
      message
    }
    mode
  }
}
```

```json Variables
{
  "input": {}
}
```

```json Response
{
  "data": {
    "createInvites": {
      "clientMutationId": "string",
      "count": 1,
      "errors": [
        "string"
      ],
      "ignoredRecipients": [
        "string"
      ],
      "invites": [
        {
          "channel": "string",
          "convertedAt": "value",
          "createdAt": "value",
          "expiresAt": "value",
          "id": "id",
          "message": "string"
        }
      ],
      "mode": "string"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.