> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/005_c2c_-user_to_user-_connections/011__create_c2c_invite.md).

# Create C2C Invite

GraphQL endpoint: `/user`

Invites a person who is not on the platform yet: creates a new user account from the given info and sends them a connection request. Set sendInviteEmail to false to skip the invitation email.

## Query

```graphql
mutation (
  $user: InviteUserInput!
  $connectionType: C2cConnectionType!
) {
  createC2cInvite (
    user: $user
    connectionType: $connectionType
  ) {
    id
    status
    type
    insertedAt
    respondedAt
    updatedAt
    user {
      id
    }
    invitedUser {
      id
      username
    }
  }
}

```

## Variables

```json
{
  "connectionType": "PROFESSIONAL",
  "user": {
    "email": "test1@email.com",
    "firstName": "1john",
    "lastName": "2doe",
    "metadata": {
      "test": "value"
    },
    "sendInviteEmail": true,
    "telephoneNumber": "2"
  }
}
```

## Response

```json
{
  "data": {
    "createC2cInvite": {
      "id": "00000000-0000-4000-8000-000000000001",
      "insertedAt": "2026-01-15T09:00:00",
      "invitedUser": {
        "id": "00000000-0000-4000-8000-000000000002",
        "username": "1john-2doe-d5ou"
      },
      "respondedAt": null,
      "status": "PENDING",
      "type": "PROFESSIONAL",
      "updatedAt": "2026-01-15T09:00:00",
      "user": {
        "id": "00000000-0000-4000-8000-000000000003"
      }
    }
  }
}
```
