> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clustr-ai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List client companies

> Your client companies, one entry per company

Returns your [client companies](https://docs.clustr-ai.com/client-companies.md), ordered by name.

**One item per company.** A company can be on your list more than once: added
manually, imported from a CSV and marked in your CRM. Those entries are grouped
into one item, and each one appears in its `sources`. Entries are grouped by the
Clustr company they matched, else by LinkedIn numeric id, else by LinkedIn slug.

**Companies marked "Not a client" are included**, with `excluded: true` and the
`exclusionId` you need to [undo it](https://docs.clustr-ai.com/api-reference/undo-not-a-client.md). They count
toward `total` here, but not in the [summary](https://docs.clustr-ai.com/api-reference/get-client-companies-summary.md).

```bash cURL theme={null}
curl "https://api.clustr-ai.com/api/public/client-companies?source=crm&limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```python Python theme={null}
import requests

items, cursor = [], ""
while True:
    page = requests.get(
        "https://api.clustr-ai.com/api/public/client-companies",
        headers={"Authorization": "Bearer YOUR_API_KEY"},
        params={"limit": 200, "cursor": cursor},
    ).json()["data"]
    items += page["items"]
    cursor = page["nextCursor"]
    if not cursor:
        break
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "items": [
      {
        "clustrAccountId": "acc_tpm6jrg43va39d16q86kr4wqb0",
        "clustrExclusionId": null,
        "key": "c:5b1f7c2e-8d0a-4c47-9d3e-2f6a1b9c0e11",
        "name": "Acme Corp",
        "linkedinUrl": "https://www.linkedin.com/company/acme-corp",
        "domain": "acme.com",
        "companyId": "5b1f7c2e-8d0a-4c47-9d3e-2f6a1b9c0e11",
        "inNetwork": true,
        "excluded": false,
        "exclusionId": "",
        "sources": [
          {
            "clustrClientCompanyId": "cco_e8dhedwjkbptsqpcfy5scfmm9v",
            "id": "0e7d6a52-...",
            "source": "manual",
            "crmProvider": "",
            "crmCompanyId": ""
          },
          {
            "clustrClientCompanyId": "cco_5k6h3h6exn7n4rzp40eydnc2f2",
            "id": "a3c9f1b4-...",
            "source": "crm",
            "crmProvider": "hubspot",
            "crmCompanyId": "18823401776"
          }
        ]
      }
    ],
    "nextCursor": "50",
    "total": 128
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": { "message": "source must be manual, csv or crm", "code": "BAD_REQUEST" }
}
```

```json 401 theme={null}
{
  "success": false,
  "error": { "message": "Invalid or missing API key", "code": "UNAUTHORIZED" }
}
```


## OpenAPI

````yaml GET /client-companies
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /client-companies:
    get:
      tags:
        - Client Companies
      summary: List client companies
      description: >
        Your client companies, one item per company, ordered by name. Entries
        from

        a manual add, a CSV import and a CRM that point at the same company are

        grouped into one item. Companies marked "Not a client" are included,
        with

        `excluded: true`.
      operationId: listClientCompanies
      parameters:
        - name: source
          in: query
          schema:
            type: string
            enum:
              - manual
              - csv
              - crm
          description: >-
            `manual`, `csv` or `crm`: keeps the companies with at least one
            entry from

            that source. Each item still lists all of its sources.
        - name: q
          in: query
          schema:
            type: string
          description: >-
            Case-insensitive search on the company name, LinkedIn slug or
            domain.
        - name: cursor
          in: query
          schema:
            type: string
          description: >-
            The `nextCursor` from the previous page. Leave it out for the first
            page.
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
          description: Companies per page, from 1 to 200. Larger values are treated as 200.
      responses:
        '200':
          description: One page of client companies
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/ClientCompanyPage'
        '400':
          description: Invalid `source`, `limit` or `cursor`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid or missing API key
components:
  schemas:
    ClientCompanyPage:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ClientCompanyItem'
        nextCursor:
          type: string
          description: >-
            Pass as `cursor` for the next page. An empty string means this is
            the last page.
          example: '50'
        total:
          type: integer
          description: >-
            How many companies match the `source` and `q` filters across all
            pages, including companies marked "Not a client".
          example: 128
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            message:
              type: string
              example: Invalid request body
            code:
              type: string
              example: BAD_REQUEST
    ClientCompanyItem:
      type: object
      description: >-
        One client company. Every source row that points at the same company is
        grouped into one item, so a company added manually and also marked in
        your CRM appears once, with two entries in `sources`.
      properties:
        clustrAccountId:
          type: string
          description: >-
            The Clustr ID of the account the rows matched, for example
            `acc_b25ga5mhfqavwbwaash1hkz9bk`.

            Empty until they match one.
          example: acc_b25ga5mhfqavwbwaash1hkz9bk
        clustrExclusionId:
          type: string
          description: >-
            The Clustr ID of the exclusion to delete to undo "Not a client", for
            example

            `ccx_pjcx76ma2x5sd982m2a1neg379`. Empty when `excluded` is false.
          example: ccx_pjcx76ma2x5sd982m2a1neg379
        key:
          type: string
          description: >-
            Identifies the grouping, and stays the same across reads as long as
            its rows stay the same. `c:<companyId>` when the rows matched a
            Clustr company, else `n:<LinkedIn numeric id>`, else `v:<LinkedIn
            slug>`, else `r:<row id>`.
          example: c:5b1f7c2e-8d0a-4c47-9d3e-2f6a1b9c0e11
        name:
          type: string
          description: The name from the oldest manual or csv row, else from a CRM row.
          example: Acme Corp
        linkedinUrl:
          type: string
          description: >-
            The LinkedIn company URL as it was entered. Empty when no row has
            one.
          example: https://www.linkedin.com/company/acme-corp
        domain:
          type: string
          description: >-
            The registrable domain, such as `acme.co.uk`. Empty when no row has
            one.
          example: acme.com
        companyId:
          type: string
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustrAccountId`.
        inNetwork:
          type: boolean
          description: At least one person in your network currently works at this company.
        excluded:
          type: boolean
          description: >-
            True when the company is marked "Not a client". Clustr then treats
            it as a non-client.
        exclusionId:
          type: string
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustrExclusionId`.
        sources:
          type: array
          description: One entry per row behind the company.
          items:
            $ref: '#/components/schemas/ClientCompanySource'
        pathCount:
          type: integer
          description: >-
            How many warm intro paths run through a connector who currently
            works at this company, counted with the same visibility rules as the
            Warm intros page.
          example: 12
    ClientCompanySource:
      type: object
      description: One source row behind a client company.
      properties:
        clustrClientCompanyId:
          type: string
          description: >-
            The row's Clustr ID, for example `cco_stmvs9zqkgfy2tjar9tddrjajt`.
            Use it to

            [remove](/api-reference/remove-client-company) a manual or csv row,
            or to [mark the company not

            a client](/api-reference/mark-not-a-client).
          example: cco_stmvs9zqkgfy2tjar9tddrjajt
        id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustrClientCompanyId`.
        source:
          type: string
          description: 'Where the row came from: `manual`, `csv` or `crm`.'
          enum:
            - manual
            - csv
            - crm
        crmProvider:
          type: string
          description: >-
            The CRM this row came from, such as `hubspot`. Empty for manual and
            csv rows.
          example: hubspot
        crmCompanyId:
          type: string
          description: For a CRM row, the company's record id in that CRM. Otherwise empty.
          example: '18823401776'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.