> ## 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.

# Mark not a client

> Stop a company counting as a client, whatever its sources

Marks the company behind one source row "Not a client". Use it when a company is
on your list by mistake, most often because a CRM property says it is a client
when it is not.

**It overrides every source.** Clustr copies the row's matched company, LinkedIn
numeric id, LinkedIn slug and domain. Any row sharing one of them stops counting
as a client: manual, csv and CRM rows alike, including rows your CRM brings in on
later syncs. The company stays on the list with `excluded: true`, and is left out
of the [summary](https://docs.clustr-ai.com/api-reference/get-client-companies-summary.md) counts and of
[exclude client companies](https://docs.clustr-ai.com/client-companies.md#exclude-client-companies).

**Marking twice is safe.** If the company is already marked, the existing
exclusion's id is returned and nothing new is created.

To undo it, pass the id to [Undo not a client](https://docs.clustr-ai.com/api-reference/undo-not-a-client.md).

## Errors

| Status | Code | When |
| - | - | - |
| 400 | `BAD_REQUEST` | The body is not valid JSON, or `sourceRowId` is not a uuid |
| 404 | `NOT_FOUND` | No such row in this workspace |
| 422 | `no_match_key` | The row has no LinkedIn page, no domain and no matched company, so there is nothing to match on. This happens with a CRM record that has neither a LinkedIn URL nor a domain |

```bash cURL theme={null}
curl -X POST https://api.clustr-ai.com/api/public/client-companies/exclusions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sourceRowId": "a3c9f1b4-..."}'
```

```json 201 theme={null}
{
  "success": true,
  "data": {
    "clustrClientExclusionId": "ccx_bxafvpaszh0kk965vgg255dhef",
    "id": "c41d8e07-..."
  }
}
```

```json 404 theme={null}
{
  "success": false,
  "error": { "message": "Client company not found", "code": "NOT_FOUND" }
}
```

```json 422 theme={null}
{
  "success": false,
  "error": { "message": "This company has no LinkedIn page or domain to match on yet", "code": "no_match_key" }
}
```


## OpenAPI

````yaml POST /client-companies/exclusions
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/exclusions:
    post:
      tags:
        - Client Companies
      summary: Mark not a client
      description: >
        Mark the company behind one source row "Not a client". Clustr copies
        that

        row's company, LinkedIn id, LinkedIn slug and domain, and any row from
        any

        source sharing one of them stops counting as a client, including rows

        your CRM brings in later. Marking a company that is already marked

        returns the existing exclusion.
      operationId: markNotAClient
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateClientCompanyExclusionRequest'
      responses:
        '201':
          description: The exclusion
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      clustrClientExclusionId:
                        type: string
                        description: >-
                          The exclusion's Clustr ID, for example
                          `ccx_m8v98vyg682axyfvydqhz0tc97`. Use it to undo the

                          exclusion.
                        example: ccx_m8v98vyg682axyfvydqhz0tc97
                      id:
                        type: string
                        format: uuid
                        description: >-
                          Kept for integrations built before Clustr IDs. New
                          integrations should use `clustrClientExclusionId`.
        '400':
          description: Invalid body, or `sourceRowId` is not a uuid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid or missing API key
        '404':
          description: No such source row in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            The row has no LinkedIn page, domain or matched company to match on
            yet (code `no_match_key`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreateClientCompanyExclusionRequest:
      type: object
      required:
        - sourceRowId
      properties:
        sourceRowId:
          type: string
          description: >-
            The Clustr ID (`cco_…`) of any source row from the company's
            `sources` in [List client

            companies](/api-reference/list-client-companies), from any source.
            The id from earlier responses

            also works.
    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
  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.