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 pathScopeWhat it does
POST /v1/prospects/sourcewriteFind and reveal prospects
POST /v1/icpswriteSave an ideal customer profile
GET /v1/icpsreadList 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.

FieldTypeRequiredDescription
icpobjectnoThe profile to search. Give this or icp_id.
icp.titlesarray of stringno0 to 20 items, default [].
icp.senioritiesarray of stringno0 to 10 items, default [].
icp.industriesarray of stringno0 to 20 items, default [].
icp.locationsarray of stringno0 to 20 items, default [].
icp.employee_count_mininteger or nullno1 to 10000000, default undefined.
icp.employee_count_maxinteger or nullno1 to 10000000, default undefined.
icp.keywordsarray of stringno0 to 20 items, default [].
icp_idstringnoA profile saved with POST /v1/icps. 0 to 100 characters.
countintegerno1 to 500, default 50.
campaign_idstringnoAdd the revealed leads to this campaign. 0 to 100 characters.
list_idstringnoAdd 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

FieldTypeRequiredDescription
providerstringyesNo further constraints.
deliveredarray of objectyesNo further constraints.
delivered[].refstringyesNo further constraints.
delivered[].lead_idstringyesNo further constraints.
delivered[].emailstringyesNo further constraints.
skippedarray of objectyesContacts that cost nothing, with why.
skipped[].refstringyesNo further constraints.
skipped[].reasonstringyesNo further constraints.
credits_chargedintegeryesNo further constraints.
candidates_foundintegeryesNo 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, 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
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.

FieldTypeRequiredDescription
titlesarray of stringno0 to 20 items, default [].
senioritiesarray of stringno0 to 10 items, default [].
industriesarray of stringno0 to 20 items, default [].
locationsarray of stringno0 to 20 items, default [].
employee_count_mininteger or nullno1 to 10000000, default undefined.
employee_count_maxinteger or nullno1 to 10000000, default undefined.
keywordsarray of stringno0 to 20 items, default [].
namestringyes1 to 120 characters.
Request example
{
  "name": "Example"
}

Response

FieldTypeRequiredDescription
titlesarray of stringyes0 to 20 items, default [].
senioritiesarray of stringyes0 to 10 items, default [].
industriesarray of stringyes0 to 20 items, default [].
locationsarray of stringyes0 to 20 items, default [].
employee_count_mininteger or nullyes1 to 10000000, default undefined.
employee_count_maxinteger or nullyes1 to 10000000, default undefined.
keywordsarray of stringyes0 to 20 items, default [].
idstringyesNo further constraints.
namestringyesNo further constraints.
created_atstringyesNo 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, 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
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

FieldTypeRequiredDescription
limitintegernoItems per page, 1 to 100 (default 20). 1 to 100
cursorstringnonext_cursor from the previous page. 0 to 500 characters

Response

FieldTypeRequiredDescription
itemsarray of objectyesNo further constraints.
items[].titlesarray of stringyes0 to 20 items, default [].
items[].senioritiesarray of stringyes0 to 10 items, default [].
items[].industriesarray of stringyes0 to 20 items, default [].
items[].locationsarray of stringyes0 to 20 items, default [].
items[].employee_count_mininteger or nullyes1 to 10000000, default undefined.
items[].employee_count_maxinteger or nullyes1 to 10000000, default undefined.
items[].keywordsarray of stringyes0 to 20 items, default [].
items[].idstringyesNo further constraints.
items[].namestringyesNo further constraints.
items[].created_atstringyesNo further constraints.
next_cursorstring or nullyesNo 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, 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
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();
Prospects