> 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/001__create_c2c_connection_request.md).

# Create C2C Connection Request

GraphQL endpoint: `/user`

Creates a connection request to another user with the given connection type (FRIEND, FAMILY, PROFESSIONAL or OTHER). The request stays PENDING until the invited user responds.

## Query

```graphql
mutation (
  $invitedUserId: ID!
  $connectionType: C2cConnectionType!
) {
  createC2cConnectionRequest (
    invitedUserId: $invitedUserId
    connectionType: $connectionType
  ) {
    id
    status
    type
    insertedAt
    respondedAt
    updatedAt
    user {
      id
    }
    invitedUser {
      id
    }
  }
}

```

## Variables

```json
{
  "connectionType": "PROFESSIONAL",
  "invitedUserId": "00000000-0000-4000-8000-000000000002"
}
```

## Response

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