> ## 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 Target Accounts

> List or search target accounts

Returns all target accounts, or search by ID, name, or LinkedIn URL.

## Response fields

Alongside the name and URL, each row carries:

| Field | Meaning |
| - | - |
| `tier` | The tier this account is filed under, named the way your workspace names it. Empty means untiered |
| `tier_id` | That tier's id, for writing it back exactly |
| `company_id` | The company this account matched. **Empty means it matched none**, which is why such an account cannot be tiered yet, and the fix is to add or correct its LinkedIn URL |
| `linkedin_lookup` | `not_found` when the LinkedIn company page given for this account could not be found after two lookups, a week apart. It may be a wrong or outdated URL: check it. Meanwhile the account is matched by its name when exactly one company carries that name. Omitted otherwise, and gone as soon as the URL is changed |

> [!NOTE]
>
> An account whose LinkedIn page Clustr does not know yet is looked up for you
> in the background: at most twice per page, a week apart. A page found then is
> matched without anything to do on your side.

> [!NOTE]
>
> A tier belongs to the company behind the account, so the same tier appears on
> the Accounts and People tables in the app. There is one tier per account, not
> one per surface.

```bash cURL theme={null}
curl "https://api.clustr-ai.com/api/public/target-accounts" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

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

requests.get(
    "https://api.clustr-ai.com/api/public/target-accounts",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
)
```

```javascript JavaScript theme={null}
await fetch("https://api.clustr-ai.com/api/public/target-accounts", {
  headers: { Authorization: "Bearer YOUR_API_KEY" },
});
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "target_accounts": [
      {
        "clustr_target_account_id": "tacc_jybe005qdjmzf6wfzat2qwfr4m",
        "clustr_tier_id": "tier_e0zk0smsdyw6sb6qnvm93enef4",
        "clustr_account_id": "acc_jebpt1d3egm3196vqqm8c5s1fb",
        "id": "a1b2c3d4-...",
        "account_name": "Acme Corp",
        "account_linkedin_url": "https://www.linkedin.com/company/acme-corp",
        "tier": "Tier 1",
        "tier_id": "7f3e1a22-...",
        "company_id": "9c4d5e6f-..."
      }
    ],
    "count": 1
  }
}
```

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

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


## OpenAPI

````yaml GET /target-accounts
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:
  /target-accounts:
    get:
      tags:
        - Target Accounts
      summary: List Target Accounts
      description: |
        List all target accounts, or search by ID, name, or LinkedIn URL.

        Send `page` or `page_size` to page the list (ordered by name); the
        response then also carries `total`, `page`, `page_size` and `has_more`.
        Send neither for the whole list in one response.
      operationId: listTargetAccounts
      parameters:
        - name: id
          in: query
          schema:
            type: string
          description: >-
            The target account's Clustr ID (`tacc_…`). The response then holds
            that one account. The id from

            earlier responses also works.
          example: tacc_bmqj0gt15q4p57cpmyb1gp1b05
        - name: search
          in: query
          schema:
            type: string
          description: Keep the accounts whose name contains this text.
        - name: linkedin_url
          in: query
          schema:
            type: string
          description: Find the account with this LinkedIn URL.
        - name: page
          in: query
          schema:
            type: integer
            default: 1
            minimum: 1
          description: The page to return. Sending `page` or `page_size` pages the list.
        - name: page_size
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 25
          description: Accounts per page. Defaults to 25, up to 500.
      responses:
        '200':
          description: Target accounts list
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      target_accounts:
                        type: array
                        items:
                          $ref: '#/components/schemas/TargetAccount'
                      count:
                        type: integer
                        description: >-
                          The number of accounts in this response (the current
                          page, when the list is paged).
                        example: 5
                      total:
                        type: integer
                        description: >-
                          The number of accounts in the whole list. Returned on
                          paged requests only.
                      page:
                        type: integer
                        description: >-
                          The current page number. Returned on paged requests
                          only.
                      page_size:
                        type: integer
                        description: Accounts per page. Returned on paged requests only.
                      has_more:
                        type: boolean
                        description: >-
                          True when another page exists. Returned on paged
                          requests only.
        '401':
          description: Invalid or missing API key
        '404':
          description: Target account not found (when searching by ID)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TargetAccount:
      type: object
      properties:
        clustr_target_account_id:
          type: string
          description: >-
            The target account's Clustr ID, for example
            `tacc_nwc2xe6jxb0jph5j9g7ef7vsx4`. Use it to refer

            to this target account.
          example: tacc_nwc2xe6jxb0jph5j9g7ef7vsx4
        clustr_tier_id:
          type: string
          description: >-
            The tier's Clustr ID, for example `tier_bk86g6d2aftqr9e7m804xywg9z`.
            Send it back to set exactly

            this tier.
          example: tier_bk86g6d2aftqr9e7m804xywg9z
        clustr_account_id:
          type: string
          description: >-
            The Clustr ID of the account this target account matched, for
            example

            `acc_kbmpcwq22xqwksy3zv3jd27px3`. It is left out when the target
            account matched no account,

            which you can fix by adding or correcting its LinkedIn URL.
          example: acc_kbmpcwq22xqwksy3zv3jd27px3
        id:
          type: string
          example: f7c7031d-350e-4b7b-a78e-bc54dba3281e
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_target_account_id`.
        account_name:
          type: string
          example: Acme Corp
        account_linkedin_url:
          type: string
          example: https://www.linkedin.com/company/acme-corp
        tier:
          type: string
          description: |
            The tier this account is filed under, spelled the way your
            workspace spells it. Empty means untiered. See GET /tenant-tiers.
          example: Tier 1
        tier_id:
          type: string
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_tier_id`.
        company_id:
          type: string
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_account_id`.
        linkedin_lookup:
          type: string
          enum:
            - not_found
          description: >-
            `not_found` when the LinkedIn company page given for this account
            could not be found after two lookups: the URL may be wrong or
            outdated, so check it. The account is then matched by its name when
            exactly one company has that name. Omitted otherwise.
    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.