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

# Start Account Research

> Start account research on a target company and get a shareable report link immediately

Start account research on a target company and receive a magic link immediately. Account research finds the buyers at that company and the warm paths into them through your network.

The link points to a live report page. While the research runs (typically 2 to 5 minutes) it shows a "processing" state and auto-refreshes every 30 seconds. Once complete, the same URL renders the full report. No polling or second request needed.

If your workspace already has research in progress, a new run may take a little longer to start; it
begins automatically once capacity frees up, and the report page keeps showing "processing" until then.
In that case the response `status` is `QUEUED` instead of `PROCESSING`; the magic link works the same way.

A run can still fail after it starts, most often because the LinkedIn URL is not the company's own
page. The magic link then says the research failed and why, instead of "processing", and stops
refreshing. [Get Job Status](https://docs.clustr-ai.com/api-reference/get-job-status.md#when-a-job-fails) with the returned `job_id`
reads `FAILED` with `failure_reason` and `reason_code` (for example `company_not_found`). If a run
cannot be started at all, the error message says why.

The magic link is **stable**: repeated calls with the same workspace and LinkedIn URL return the same link. Re-running research updates the existing report in place.

```bash cURL theme={null}
curl -X POST https://api.clustr-ai.com/api/public/account-research \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "company_name": "Acme Corp",
    "company_linkedin_url": "https://www.linkedin.com/company/acme-corp/",
    "countries": ["United States"],
    "completion_email": "notify@example.com"
  }'
```

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

requests.post(
    "https://api.clustr-ai.com/api/public/account-research",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "company_name": "Acme Corp",
        "company_linkedin_url": "https://www.linkedin.com/company/acme-corp/",
    },
)
```

```javascript JavaScript theme={null}
await fetch("https://api.clustr-ai.com/api/public/account-research", {
  method: "POST",
  headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({
    company_name: "Acme Corp",
    company_linkedin_url: "https://www.linkedin.com/company/acme-corp/",
  }),
});
```

```json 201 theme={null}
{
  "success": true,
  "data": {
    "clustr_job_id": "job_f2ex7r7fdbt7r11e7pyba58qse",
    "job_id": "988f0602-1ddd-49ec-aef6-e0a6d680b5a5",
    "status": "PROCESSING",
    "company_name": "Acme Corp",
    "magic_link": "https://app.clustr-ai.com/shared/a1b2c3d4-..."
  }
}
```

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

```json 402 theme={null}
{
  "success": false,
  "error": {
    "message": "Insufficient account research credits",
    "code": "PAYMENT_REQUIRED"
  }
}
```


## OpenAPI

````yaml POST /account-research
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:
  /account-research:
    post:
      tags:
        - Import
      summary: Start Account Research
      description: >
        Start account research on a target company and receive a magic link
        immediately.


        The link points to a live report page. While the research runs
        (typically 2–5 minutes) it shows

        a "processing" state and refreshes itself every 30 seconds. Once
        complete, the same URL renders

        the full report, so one request is all you need.


        The magic link is **stable**: repeated calls with the same workspace and
        LinkedIn URL

        return the same link. Re-running a search updates the existing report in
        place.


        If your workspace already has research in progress, a new run may take a
        little longer to

        start; it begins automatically once capacity frees up, and the report
        page keeps showing

        "processing" until then.
      operationId: startAccountResearch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartAccountResearchRequest'
            examples:
              basic:
                summary: Minimal request
                value:
                  company_name: Acme Corp
                  company_linkedin_url: https://www.linkedin.com/company/acme-corp/
              with_filters:
                summary: With country filter and notification email
                value:
                  company_name: Acme Corp
                  company_linkedin_url: https://www.linkedin.com/company/acme-corp/
                  countries:
                    - United States
                    - United Kingdom
                  completion_email: notify@example.com
      responses:
        '201':
          description: Account research started; magic link available immediately
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/StartAccountResearchResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid or missing API key
        '402':
          description: Insufficient account research credits
components:
  schemas:
    StartAccountResearchRequest:
      type: object
      required:
        - company_name
        - company_linkedin_url
      properties:
        employee_urls:
          type: array
          items:
            type: string
          description: LinkedIn profile URLs of the employees to research at the company.
        company_name:
          type: string
          description: Name of the target company.
          example: Acme Corp
        company_linkedin_url:
          type: string
          format: uri
          description: The company's LinkedIn page URL. It must contain `/company/`.
          example: https://www.linkedin.com/company/acme-corp/
        countries:
          type: array
          items:
            type: string
          description: >-
            Keep only buyers in these countries, for example `["United States",
            "United Kingdom"]`.
          example:
            - United States
        completion_email:
          type: string
          format: email
          description: Email to notify when the report is ready.
          example: notify@example.com
    StartAccountResearchResponse:
      type: object
      required:
        - job_id
        - status
        - company_name
        - magic_link
      properties:
        clustr_job_id:
          type: string
          description: >-
            The job's Clustr ID, for example `job_f2ex7r7fdbt7r11e7pyba58qse`.
            Follow the job with [Get Job

            Status](/api-reference/get-job-status).
          example: job_f2ex7r7fdbt7r11e7pyba58qse
        job_id:
          type: string
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_job_id`.
          example: 988f0602-1ddd-49ec-aef6-e0a6d680b5a5
        status:
          type: string
          description: >-
            `PROCESSING` when the research has started. `QUEUED` when research
            is already in progress for your workspace; the run starts
            automatically once capacity frees up and the magic link works either
            way.
          enum:
            - QUEUED
            - PROCESSING
          example: PROCESSING
        company_name:
          type: string
          description: The target company's name, as you sent it.
          example: Acme Corp
        magic_link:
          type: string
          format: uri
          description: >-
            A shareable link to the account research report, available
            immediately. It shows a "processing" page until the report is ready,
            then refreshes itself to show the full report. The same workspace
            and company always get the same link.
          example: https://app.clustr-ai.com/shared/a1b2c3d4-...
    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.