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

## Query Parameters

<ParamField query="id" type="string">
  Return a single account by ID
</ParamField>

<ParamField query="search" type="string">
  Search by name (partial match)
</ParamField>

<ParamField query="linkedin_url" type="string">
  Search by LinkedIn URL
</ParamField>

<RequestExample>
  ```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" },
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "target_accounts": [
        {
          "id": "a1b2c3d4-...",
          "account_name": "Acme Corp",
          "account_linkedin_url": "https://www.linkedin.com/company/acme-corp"
        }
      ],
      "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"
    }
  }
  ```
</ResponseExample>
