Prospects API reference
Source prospects that match an ideal customer profile, and save or list profiles. 3 operations.
For AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.
#Operations
Authenticate as described in Authentication. Every operation below is generated from the OpenAPI document.
| 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. |
{
"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. |
{
"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, unauthorized, trial_allowance_exhausted, forbidden, unknown_product, payload_too_large, rate_limited, internal_error, provider_unavailable. Every error uses the single 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.
Examples
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
}'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. |
{
"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. |
{
"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, unauthorized, forbidden, payload_too_large, rate_limited, internal_error. Every error uses the single 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.
Examples
curl -X POST "https://api.coldagentai.com/v1/icps" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Example"
}'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. |
{
"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, unauthorized, rate_limited, internal_error. Every error uses the single 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.
Examples
curl "https://api.coldagentai.com/v1/icps" \
-H "Authorization: Bearer $COLDAGENTAI_API_KEY"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();