> 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/002_company/005_b2b_connections/002__list_b2b_connections.md).

# List B2B Connections

GraphQL endpoint: `/company`

Lists all B2B connections for the current company. You can filter by connection type (included or excluded) and limit the results. Returns connections where you are either the initiating or receiving company.

## Query

```graphql
query (
  $includedType: B2bConnectionType
  $excludedType: B2bConnectionType
  $limit: Int
) {
  b2bConnections (
    includedType: $includedType
    excludedType: $excludedType
    limit: $limit
  ) {
    id
    type
    createdAt
    updatedAt
    startedAt
    company {
      id
      legalName
    }
    connectedCompany {
      id
      legalName
    }
  }
}

```

## Variables

```json
{}
```

## Response

```json
{
  "data": {
    "b2bConnections": [
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000002",
          "legalName": "2legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000003",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000004",
          "legalName": "3legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000005",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000006",
          "legalName": "4legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000007",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000008",
          "legalName": "5legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000009",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000010",
          "legalName": "6legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000011",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000012",
          "legalName": "7legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000013",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000014",
          "legalName": "8legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000015",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000016",
          "legalName": "9legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000017",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000018",
          "legalName": "10legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000019",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      },
      {
        "company": {
          "id": "00000000-0000-4000-8000-000000000020",
          "legalName": "11legal-name"
        },
        "connectedCompany": {
          "id": "00000000-0000-4000-8000-000000000001",
          "legalName": "1legal-name"
        },
        "createdAt": null,
        "id": "00000000-0000-4000-8000-000000000021",
        "startedAt": null,
        "type": "OTHER",
        "updatedAt": "2026-01-15T09:00:00"
      }
    ]
  }
}
```
