---
title: "Prospects API reference"
url: "https://coldagentai.com/docs/api/prospects.md"
canonical_url: "https://coldagentai.com/docs/api/prospects"
last_updated: "2026-10-22"
type: "reference"
summary: "Source prospects that match an ideal customer profile and save or list profiles through the ColdAgentAI API, with the credits each call spends."
related: ["https://coldagentai.com/docs/api.md", "https://coldagentai.com/docs/authentication.md", "https://coldagentai.com/docs/errors.md", "https://coldagentai.com/docs/api/credits.md", "https://coldagentai.com/docs/capabilities.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Prospects API reference

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Source prospects that match an ideal customer profile and save or list profiles through the ColdAgentAI API, with the credits each call spends.

Source prospects that match an ideal customer profile, and save or list profiles. 3 operations.

## Operations

Authenticate as described in [Authentication](https://coldagentai.com/docs/authentication.md). Every operation below is generated from the [OpenAPI document](https://coldagentai.com/docs/openapi.md).

| Method and path | Scope | What it does |
| --- | --- | --- |
| `POST /v1/prospects/source` | write | Find and reveal prospects |
| `POST /v1/icps` | write | Save an ideal customer profile |
| `GET /v1/icps` | read | List saved ideal customer profiles |

## POST /v1/prospects/source

Searches the licensed contact-data provider for an ideal customer profile (free) and reveals up to 500 contacts (default 50) as leads, at 1 credit per contact delivered. People on your suppression list and contacts you already hold are dropped and not charged; a partial answer is charged only for what was delivered. Give an `icp` or the id of a saved one. Returns 503 provider_unavailable (blocker vendor_contract) with zero credits charged when no licensed provider is configured. Send an Idempotency-Key header to make a retry free. Blocked while the kill switch is on.

Scope: `write`. A read key gets 403 forbidden. Success: HTTP 200.

### Request body

Send JSON with `Content-Type: application/json`. The body is required.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `icp` | object | no | The profile to search. Give this or icp_id. |
| `icp.titles` | array of string | no | 0 to 20 items, default []. |
| `icp.seniorities` | array of string | no | 0 to 10 items, default []. |
| `icp.industries` | array of string | no | 0 to 20 items, default []. |
| `icp.locations` | array of string | no | 0 to 20 items, default []. |
| `icp.employee_count_min` | integer or null | no | 1 to 10000000, default undefined. |
| `icp.employee_count_max` | integer or null | no | 1 to 10000000, default undefined. |
| `icp.keywords` | array of string | no | 0 to 20 items, default []. |
| `icp_id` | string | no | A profile saved with POST /v1/icps. 0 to 100 characters. |
| `count` | integer | no | 1 to 500, default 50. |
| `campaign_id` | string | no | Add the revealed leads to this campaign. 0 to 100 characters. |
| `list_id` | string | no | Add the revealed leads to this lead list. 0 to 100 characters. |

Request example:

```
{
  "icp": {
    "titles": [
      "abc123"
    ],
    "seniorities": [
      "abc123"
    ],
    "industries": [
      "abc123"
    ]
  },
  "icp_id": "id_8f3a2c1d",
  "count": 50
}
```

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `provider` | string | yes | No further constraints. |
| `delivered` | array of object | yes | No further constraints. |
| `delivered[].ref` | string | yes | No further constraints. |
| `delivered[].lead_id` | string | yes | No further constraints. |
| `delivered[].email` | string | yes | No further constraints. |
| `skipped` | array of object | yes | Contacts that cost nothing, with why. |
| `skipped[].ref` | string | yes | No further constraints. |
| `skipped[].reason` | string | yes | No further constraints. |
| `credits_charged` | integer | yes | No further constraints. |
| `candidates_found` | integer | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "provider": "abc123",
  "delivered": [
    {
      "ref": "abc123",
      "lead_id": "id_8f3a2c1d",
      "email": "maya@example.com"
    }
  ],
  "skipped": [
    {
      "ref": "abc123",
      "reason": "abc123"
    }
  ],
  "credits_charged": 1,
  "candidates_found": 1
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`trial_allowance_exhausted`](https://coldagentai.com/docs/errors.md#trial_allowance_exhausted), [`forbidden`](https://coldagentai.com/docs/errors.md#forbidden), [`unknown_product`](https://coldagentai.com/docs/errors.md#unknown_product), [`payload_too_large`](https://coldagentai.com/docs/errors.md#payload_too_large), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error), [`provider_unavailable`](https://coldagentai.com/docs/errors.md#provider_unavailable). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per key: 200 requests per 10 seconds. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl -X POST "https://api.coldagentai.com/v1/prospects/source" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "icp": {
    "titles": [
      "abc123"
    ],
    "seniorities": [
      "abc123"
    ],
    "industries": [
      "abc123"
    ]
  },
  "icp_id": "id_8f3a2c1d",
  "count": 50
}'
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/prospects/source`, {
  method: 'POST',
  body: JSON.stringify({
    "icp": {
      "titles": [
        "abc123"
      ],
      "seniorities": [
        "abc123"
      ],
      "industries": [
        "abc123"
      ]
    },
    "icp_id": "id_8f3a2c1d",
    "count": 50
  }),
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}`, 'Content-Type': 'application/json' },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## POST /v1/icps

Stores a named profile (titles, seniorities, industries, locations, company size, keywords) to reuse with POST /v1/prospects/source. Free.

Scope: `write`. A read key gets 403 forbidden. Success: HTTP 201.

### Request body

Send JSON with `Content-Type: application/json`. The body is required.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `titles` | array of string | no | 0 to 20 items, default []. |
| `seniorities` | array of string | no | 0 to 10 items, default []. |
| `industries` | array of string | no | 0 to 20 items, default []. |
| `locations` | array of string | no | 0 to 20 items, default []. |
| `employee_count_min` | integer or null | no | 1 to 10000000, default undefined. |
| `employee_count_max` | integer or null | no | 1 to 10000000, default undefined. |
| `keywords` | array of string | no | 0 to 20 items, default []. |
| `name` | string | yes | 1 to 120 characters. |

Request example:

```
{
  "name": "Example"
}
```

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `titles` | array of string | yes | 0 to 20 items, default []. |
| `seniorities` | array of string | yes | 0 to 10 items, default []. |
| `industries` | array of string | yes | 0 to 20 items, default []. |
| `locations` | array of string | yes | 0 to 20 items, default []. |
| `employee_count_min` | integer or null | yes | 1 to 10000000, default undefined. |
| `employee_count_max` | integer or null | yes | 1 to 10000000, default undefined. |
| `keywords` | array of string | yes | 0 to 20 items, default []. |
| `id` | string | yes | No further constraints. |
| `name` | string | yes | No further constraints. |
| `created_at` | string | yes | No further constraints. |

Response example, HTTP 201:

```
{
  "titles": [
    "abc123"
  ],
  "seniorities": [
    "abc123"
  ],
  "industries": [
    "abc123"
  ],
  "locations": [
    "abc123"
  ],
  "employee_count_min": 1,
  "employee_count_max": 1,
  "keywords": [
    "abc123"
  ],
  "id": "id_8f3a2c1d",
  "name": "Example",
  "created_at": "abc123"
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`forbidden`](https://coldagentai.com/docs/errors.md#forbidden), [`payload_too_large`](https://coldagentai.com/docs/errors.md#payload_too_large), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per key: 200 requests per 10 seconds. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl -X POST "https://api.coldagentai.com/v1/icps" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Example"
}'
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/icps`, {
  method: 'POST',
  body: JSON.stringify({
    "name": "Example"
  }),
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}`, 'Content-Type': 'application/json' },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## GET /v1/icps

This account's saved profiles, oldest first, one page at a time.

Scope: `read`. A read key and a write key both work. Success: HTTP 200.

### Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | no | Items per page, 1 to 100 (default 20). 1 to 100 |
| `cursor` | string | no | `next_cursor` from the previous page. 0 to 500 characters |

### Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array of object | yes | No further constraints. |
| `items[].titles` | array of string | yes | 0 to 20 items, default []. |
| `items[].seniorities` | array of string | yes | 0 to 10 items, default []. |
| `items[].industries` | array of string | yes | 0 to 20 items, default []. |
| `items[].locations` | array of string | yes | 0 to 20 items, default []. |
| `items[].employee_count_min` | integer or null | yes | 1 to 10000000, default undefined. |
| `items[].employee_count_max` | integer or null | yes | 1 to 10000000, default undefined. |
| `items[].keywords` | array of string | yes | 0 to 20 items, default []. |
| `items[].id` | string | yes | No further constraints. |
| `items[].name` | string | yes | No further constraints. |
| `items[].created_at` | string | yes | No further constraints. |
| `next_cursor` | string or null | yes | No further constraints. |

Response example, HTTP 200:

```
{
  "items": [
    {
      "titles": [
        "abc123"
      ],
      "seniorities": [
        "abc123"
      ],
      "industries": [
        "abc123"
      ],
      "locations": [
        "abc123"
      ],
      "employee_count_min": 1,
      "employee_count_max": 1,
      "keywords": [
        "abc123"
      ],
      "id": "id_8f3a2c1d",
      "name": "Example",
      "created_at": "abc123"
    }
  ],
  "next_cursor": "abc123"
}
```

### Errors

[`invalid_input`](https://coldagentai.com/docs/errors.md#invalid_input), [`unauthorized`](https://coldagentai.com/docs/errors.md#unauthorized), [`rate_limited`](https://coldagentai.com/docs/errors.md#rate_limited), [`internal_error`](https://coldagentai.com/docs/errors.md#internal_error). Every error uses the [single format](https://coldagentai.com/docs/errors.md#format).

### Rate limits

Counted per key: 200 requests per 10 seconds. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. Over the limit the answer is `429 rate_limited` with `Retry-After`. See [Rate limits](https://coldagentai.com/docs/rate-limits.md).

### Examples

cURL:

```
curl "https://api.coldagentai.com/v1/icps" \
  -H "Authorization: Bearer $COLDAGENTAI_API_KEY"
```

JavaScript (fetch):

```
const res = await fetch(`https://api.coldagentai.com/v1/icps`, {
  headers: { Authorization: `Bearer ${process.env.COLDAGENTAI_API_KEY}` },
});
if (!res.ok) throw new Error(JSON.stringify(await res.json()));
const data = await res.json();
```

## Related

- [API reference](https://coldagentai.com/docs/api.md)
- [API authentication](https://coldagentai.com/docs/authentication.md)
- [API errors](https://coldagentai.com/docs/errors.md)
- [Credits API reference](https://coldagentai.com/docs/api/credits.md)
- [Capabilities](https://coldagentai.com/docs/capabilities.md)
