> 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/003__list_paginated_b2b_connections.md).

# List B2B Connections (Paginated)

GraphQL endpoint: `/company`

Lists the company's B2B connections, matched on either side of the connection. Results are cursor-paginated: pass `paginationInfo.nextCursor` back as `cursor` to fetch the next page. Optionally filters by connection types (any-of) and by a fuzzy match on the other party's legal name.

## Query

```graphql
query (
  $includedTypes: [B2bConnectionType!]
  $legalName: String
  $limit: Int
  $cursor: String
) {
  paginatedB2bConnections (
    includedTypes: $includedTypes
    legalName: $legalName
    limit: $limit
    cursor: $cursor
  ) {
    paginationInfo {
      limit
      nextCursor
    }
    records {
      id
      type
      company {
        id
      }
      connectedCompany {
        id
      }
    }
  }
}

```

## Variables

```json
{}
```

## Response

```json
{
  "data": {
    "paginatedB2bConnections": {
      "paginationInfo": {
        "limit": 20,
        "nextCursor": null
      },
      "records": [
        {
          "company": {
            "id": "00000000-0000-4000-8000-000000000001"
          },
          "connectedCompany": {
            "id": "00000000-0000-4000-8000-000000000002"
          },
          "id": "00000000-0000-4000-8000-000000000003",
          "type": "OTHER"
        },
        {
          "company": {
            "id": "00000000-0000-4000-8000-000000000004"
          },
          "connectedCompany": {
            "id": "00000000-0000-4000-8000-000000000001"
          },
          "id": "00000000-0000-4000-8000-000000000005",
          "type": "OTHER"
        },
        {
          "company": {
            "id": "00000000-0000-4000-8000-000000000001"
          },
          "connectedCompany": {
            "id": "00000000-0000-4000-8000-000000000006"
          },
          "id": "00000000-0000-4000-8000-000000000007",
          "type": "OTHER"
        },
        {
          "company": {
            "id": "00000000-0000-4000-8000-000000000008"
          },
          "connectedCompany": {
            "id": "00000000-0000-4000-8000-000000000001"
          },
          "id": "00000000-0000-4000-8000-000000000009",
          "type": "OTHER"
        }
      ]
    }
  }
}
```
