> 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/008_c2b_connections/001__create_c2b_connection_request.md).

# Create C2B Connection Request

GraphQL endpoint: `/user`

Sends a connection request from the authenticated user to a company (C2B - Consumer to Business) with the given connection type. The request stays PENDING until the company accepts or rejects it.

## Query

```graphql
mutation (
  $invitedCompanyId: ID!
  $connectionType: B2cConnectionType!
) {
  createC2bConnectionRequest (
    invitedCompanyId: $invitedCompanyId
    connectionType: $connectionType
  ) {
    id
    status
    type
    insertedAt
    respondedAt
    updatedAt
    user {
      id
    }
    invitedCompany {
      id
    }
    respondedByUser {
      id
    }
  }
}

```

## Variables

```json
{
  "connectionType": "CUSTOMER",
  "invitedCompanyId": "00000000-0000-4000-8000-000000000002"
}
```

## Response

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