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

# Import Connectors

> Import LinkedIn connectors for referral opportunity discovery

Import [connectors](https://docs.clustr-ai.com/api-reference/list-connectors.md) by LinkedIn URL. Connectors are the people whose
connections Clustr analyzes to find referral opportunities. Processing is **asynchronous**. Results come
via [webhook](https://docs.clustr-ai.com/webhook.md) or email.

> [!NOTE]
>
> If your workspace already has imports in progress, a new job may be queued and will start
> automatically once capacity frees up. Poll [Get Job Status](https://docs.clustr-ai.com/api-reference/get-job-status.md) or
> [List Jobs](https://docs.clustr-ai.com/api-reference/list-jobs.md) and look for `QUEUED`.

> [!NOTE]
>
> A person listed twice in one request is processed and charged once. The extra copies are counted
> in `stats.duplicates`, listed in `discarded_urls` with reason `duplicate`, and left out of
> `stats.valid_processed`.

> [!NOTE]
>
> The companies are added once the import finishes, typically 10 to 15 minutes after the call. A
> company already on your client list is not added twice, and one you marked **Not a client** stays
> that way. The companies show on the list with the **CSV** source, like any other bulk import.

```bash cURL theme={null}
curl -X POST https://api.clustr-ai.com/api/public/network/import/connectors \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "connectors": [
      {
        "linkedin_url": "https://www.linkedin.com/in/john-doe",
        "record_id": "CRM_12345",
        "owner_email": "alice@company.com"
      }
    ],
    "webhook_url": "https://your-webhook.com/endpoint"
  }'
```

```bash cURL (clients) theme={null}
curl -X POST https://api.clustr-ai.com/api/public/network/import/connectors \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "linkedin_urls": ["https://www.linkedin.com/in/john-doe"],
    "mark_companies_as_clients": true
  }'
```

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

requests.post(
    "https://api.clustr-ai.com/api/public/network/import/connectors",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "connectors": [{"linkedin_url": "https://www.linkedin.com/in/john-doe"}],
        "webhook_url": "https://your-webhook.com/endpoint",
    },
)
```

```javascript JavaScript theme={null}
await fetch("https://api.clustr-ai.com/api/public/network/import/connectors", {
  method: "POST",
  headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({
    connectors: [{ linkedin_url: "https://www.linkedin.com/in/john-doe" }],
    webhook_url: "https://your-webhook.com/endpoint",
  }),
});
```

```json Request Body theme={null}
{
  "connectors": [
    {
      "linkedin_url": "https://www.linkedin.com/in/john-doe",
      "record_id": "CRM_12345",
      "owner_email": "alice@company.com",
      "connector_tag": "Friend"
    }
  ],
  "webhook_url": "https://your-webhook.com/endpoint",
  "max_opportunities": 50,
  "full_history": true,
  "custom": {
    "your_field": "value"
  },
  "filters": {
    "confidence_score_ranges": ["75-100", "50-75"],
    "seniority_levels": ["high", "mid"]
  }
}
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "clustr_job_id": "job_f2ex7r7fdbt7r11e7pyba58qse",
    "message": "Successfully queued prospects for processing (webhook registered)",
    "job_id": "988f0602-1ddd-49ec-aef6-e0a6d680b5a5",
    "stats": {
      "total_submitted": 1,
      "valid_processed": 1,
      "invalid_urls": 0
    }
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": {
    "message": "Invalid request body",
    "code": "BAD_REQUEST"
  }
}
```

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


## OpenAPI

````yaml POST /network/import/connectors
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:
  /network/import/connectors:
    post:
      tags:
        - Import
      summary: Import Connectors
      description: >
        Import LinkedIn connectors for referral opportunity discovery.
        Connectors are the people whose

        connections Clustr analyzes; they are what [List
        Connectors](/api-reference/list-connectors) returns.

        Processing is asynchronous; results are delivered via webhook or email.


        If your workspace already has imports in progress, a new job may be
        queued and will start

        automatically once capacity frees up. Check [Get Job
        Status](/api-reference/get-job-status) for

        the `QUEUED` status.


        Provide connectors using the `connectors` array with LinkedIn URLs and
        optional CRM metadata.


        When you have only profile URLs, send them in `linkedin_urls` instead of
        `connectors`.
      operationId: importConnectors
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportConnectorsRequest'
            examples:
              with_metadata:
                summary: Connectors with CRM metadata
                value:
                  connectors:
                    - linkedin_url: https://www.linkedin.com/in/john-doe
                      record_id: CRM_12345
                      owner_email: alice@company.com
                      connector_tag: Friend
                    - linkedin_url: https://www.linkedin.com/in/jane-smith
                      record_id: CRM_67890
                      owner_email: bob@company.com
                      connector_tag: Employee
                  webhook_url: https://your-webhook.com/endpoint
                  completion_email: notify@example.com
                  max_opportunities: 50
                  custom:
                    your_field: value
                  filters:
                    confidence_score_ranges:
                      - 75-100
                      - 50-75
                    seniority_levels:
                      - high
                      - mid
      responses:
        '200':
          description: Connectors queued for processing
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/ImportContactsResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid or missing API key
components:
  schemas:
    ImportConnectorsRequest:
      type: object
      description: Request body for importing connectors
      required:
        - webhook_url
      properties:
        email_address:
          type: string
          format: email
          deprecated: true
          description: >-
            The same as `completion_email`. `completion_email` is the name to
            use.
        connectors:
          type: array
          description: >-
            The connectors to import, 1 to 50 per request. Send either this or
            `linkedin_urls`.
          minItems: 1
          maxItems: 50
          items:
            $ref: '#/components/schemas/ConnectorInput'
        linkedin_urls:
          type: array
          description: >-
            The shorter way to import: 1 to 50 LinkedIn profile URLs with no CRM
            metadata. Send this or `connectors`, one of the two.
          minItems: 1
          maxItems: 50
          items:
            type: string
            format: uri
          example:
            - https://www.linkedin.com/in/john-doe
            - https://www.linkedin.com/in/jane-smith
        contacts:
          type: array
          description: >-
            The same list as `connectors`, under another name. Send only one of
            the two.
          minItems: 1
          maxItems: 50
          items:
            $ref: '#/components/schemas/ConnectorInput'
        webhook_url:
          type: string
          format: uri
          description: URL to receive results when processing completes
          example: https://your-webhook.com/endpoint
        completion_email:
          type: string
          format: email
          description: >-
            An email address to notify when the job completes.

            <Warning>Clustr sends a notification email to this address. Use your
            own address

            here, rather than the connector's.</Warning>
          example: notify@example.com
        max_opportunities:
          type: integer
          minimum: 0
          description: Maximum number of opportunities to return per connector
          example: 50
        full_history:
          type: boolean
          description: Include each path's full engagement history in the webhook payload.
          default: false
        mark_companies_as_clients:
          type: boolean
          description: >-
            Set `true` when the people you import are clients. Once the import
            finishes, each connector's

            current company is added to your [client list](/client-companies),
            so warm intros into those

            companies are hidden wherever client companies are excluded. It
            applies to every connector in the

            request.


            Leave it off when you import people to reach their own company
            (account expansion): their

            employer then stays a target.
          default: false
        custom:
          type: object
          additionalProperties: true
          description: >-
            Any JSON object of your own. It is returned unchanged in the webhook
            payload.
          example:
            your_field: value
        filters:
          $ref: '#/components/schemas/ImportFilters'
    ImportContactsResponse:
      type: object
      required:
        - message
        - job_id
        - stats
      properties:
        clustr_job_id:
          type: string
          description: >-
            The job's Clustr ID, for example `job_jctzmfh41nr4v8hvs87eakgs48`.
            Follow the job with [Get Job

            Status](/api-reference/get-job-status).
          example: job_jctzmfh41nr4v8hvs87eakgs48
        message:
          type: string
          example: Successfully queued 2 contacts for processing
        job_id:
          type: string
          example: 87de0cc4-f258-4090-ab79-3f278bd7578e
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_job_id`.
        stats:
          type: object
          required:
            - total_submitted
            - valid_processed
            - invalid_urls
          properties:
            total_submitted:
              type: integer
              example: 2
            valid_processed:
              type: integer
              example: 2
            invalid_urls:
              type: integer
              example: 0
            limit_exceeded:
              type: integer
              example: 0
            credit_capped:
              type: integer
              example: 0
            duplicates:
              type: integer
              description: >-
                How many URLs name a person that an earlier URL in the same
                request already names. Each person is processed and charged
                once; the extra copies are listed in `discarded_urls` with
                reason `duplicate` and left out of `valid_processed`.
              example: 0
        discarded_urls:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              reason:
                type: string
        warnings:
          type: array
          items:
            type: string
    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
    ConnectorInput:
      type: object
      description: A connector to import
      required:
        - linkedin_url
      properties:
        linkedin_url:
          type: string
          description: >-
            The connector's LinkedIn profile URL. It must use the public
            `/in/<slug>` form rather than a member-id URL such as
            `/in/ACwAAA...`.
          example: https://www.linkedin.com/in/john-doe
        record_id:
          type: string
          description: >-
            Your CRM record id for this connector. It is returned unchanged in
            the webhook payload.
          maxLength: 255
          example: CRM_12345
        owner_email:
          type: string
          format: email
          description: >-
            Who owns this connector. They own everything it produces: the
            opportunities this import

            finds, and the ones later imports find too. Must already be in your
            owner directory, or be

            added with [Create Owner](/api-reference/create-owner) first. To
            change it later without

            reimporting, use [Set Connector
            Owner](/api-reference/set-connector-owner).
          example: alice@company.com
        connector_tag:
          type: string
          description: A tag for this connector, such as "Employee" or "Friend".
          example: Employee
    ImportFilters:
      type: object
      description: Filters applied to the opportunities this import finds.
      properties:
        confidence_score_ranges:
          type: array
          items:
            type: string
          description: >-
            The confidence score ranges to keep: `"75-100"`, `"50-75"`,
            `"25-50"` or `"0-25"`.
          example:
            - 75-100
            - 50-75
        seniority_levels:
          type: array
          description: 'The prospect seniority levels to keep: `"high"`, `"mid"` or `"low"`.'
          items:
            type: string
          example:
            - high
            - mid
        employee_ranges:
          type: array
          description: >-
            The company headcount ranges to keep: `"1-10"`, `"11-50"`,
            `"51-200"`, `"201-500"`, `"501-1000"`, `"1001-5000"`, `"5001-10000"`
            or `"10001+"`.
          items:
            type: string
          example:
            - 51-200
            - 501-1000
        revenue_ranges:
          type: array
          items:
            type: string
          example:
            - 100m-200m
            - over-1b
        prospect_job_titles:
          type: array
          items:
            type: string
          example:
            - CEO
            - CTO
            - VP
        industries:
          type: array
          description: The industries to keep, as LinkedIn industry names.
          items:
            type: string
          example:
            - Technology
            - Finance
        countries:
          type: array
          description: The countries to keep, by country name.
          items:
            type: string
          example:
            - France
            - United States
  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.