> ## 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.

# createInviteRequest

> Request to join a private Space or the Network. Hosts and Moderators are
notified and must approve before the requester joins.



**mutation** `createInviteRequest(input: CreateInviteRequestInput!): CreateInviteRequestPayload`

## Arguments

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

Parameters for CreateInviteRequest

## Returns

`CreateInviteRequestPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`inviteRequest`**: `InviteRequest`

## Examples

```graphql Mutation
mutation CreateInviteRequest($input: CreateInviteRequestInput!) {
  createInviteRequest(input: $input) {
    clientMutationId
    errors
    inviteRequest {
      approver {
        ambassadorLevel
        ambassadorLevelId
        avatarUrl
        badges {
          __typename
        }
        communityRole
        conversations {
          __typename
        }
      }
      avatarUrl
      converted
      createdAt
      email
      firstName
    }
  }
}
```

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

```json Response
{
  "data": {
    "createInviteRequest": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "inviteRequest": {
        "approver": {
          "ambassadorLevel": "string",
          "ambassadorLevelId": 1,
          "avatarUrl": "string",
          "badges": [
            {
              "__typename": "Badge"
            }
          ],
          "communityRole": "CONTRIBUTOR",
          "conversations": {
            "__typename": "PublicConversationConnection"
          }
        },
        "avatarUrl": "string",
        "converted": true,
        "createdAt": "value",
        "email": "string",
        "firstName": "string"
      }
    }
  }
}
```


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