Developer docs menu
Agent API reference
Every REST endpoint, with parameters, example requests and example responses. Examples use made-up data.
Conventions
- Base URL:
https://production.crmcopilot.ai/api/agent/v1. The version is in the path;v1is the only version. - Auth: every call needs
Authorization: Bearer cpk_…. See Authentication for keys and scopes. - Format: JSON in, JSON out. Send
Content-Type: application/jsonon POST and PATCH. A body that isn't a JSON object is treated as empty. - IDs are returned as strings, except a few integer ids in
/exportsrows. Use them exactly as returned. - Your data only: every call is scoped to the account that owns the key. An id from another account returns
404 not_found. - Success is always HTTP 200, including proposals waiting for approval and newly created sequences.
- Ignore fields you don't recognize. We add fields to responses without a version change. We don't remove or rename them within
v1. - Lead refs: search results identify people by a
reflikeld_…instead of an email. Refs work for 30 days for unlocking, CRM pushes and sequence enrollment.
Every REST endpoint below is also available as an MCP tool for AI assistants. The MCP server page maps tools to endpoints.
Account
Get your account, plan and credits
account:readReturns who the key belongs to, the plan's features and limits, credit balances and the key's own scopes. A good first call to test a key.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/me" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"account": {
"id": "1042",
"name": "Dana Reyes",
"email": "[email protected]",
"timezone": "America/Chicago"
},
"plan": {
"name": "Gold",
"features": [
"agent_api",
"autopilot",
"decision_makers",
"…"
],
"agents": 5,
"seats": 3,
"monthly_email_credits": 2500,
"monthly_phone_credits": 150
},
"credits": {
"available": 1830.5,
"used": 669.5,
"phone_available": 120.0,
"purchased_unspent": 0.0
},
"key": {
"name": "Claude Desktop",
"prefix": "cpk_Ab3dE5fG",
"scopes": [
"account:read",
"agents:read",
"…"
],
"expires_at": null
}
}key.scopes lists the scopes stored on the key. Older read keys automatically gain newer read scopes, so a key can do slightly more than this list shows.
AutoPilots
AutoPilots find new leads on a schedule and send them to your CRM or a sequence.
List AutoPilots
autopilots:readEvery AutoPilot with its schedule and last run.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/autopilots" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"autopilots": [
{
"id": "311",
"name": "HVAC owners NJ",
"active": true,
"paused_reason": null,
"paused_at": null,
"crm": "zoho",
"sequence": "HVAC intro",
"meet_alfred_campaign": null,
"schedule": {
"days": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"start": "09:00",
"end": "23:59",
"timezone": "America/New_York",
"runs_per_day": 1,
"leads_per_run": 10
},
"last_run": {
"date": "2026-12-04",
"time": "09:00",
"status": "completed",
"message": "10 leads added",
"leads_added": 10,
"duplicates_skipped": 2,
"failed": 0,
"crm": "zoho",
"credits_used": {
"email": 10
},
"credits_refunded": {}
}
}
],
"count": 1,
"active": 1
}The keys inside credits_used and credits_refunded depend on what the run spent, for example email or phone.
List an AutoPilot's runs
autopilots:read| Parameter | Type | Description |
|---|---|---|
days | integer | Look-back window in days. 1–90, default 7. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/autopilots/311/runs?days=7" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"autopilot": {
"id": "311",
"name": "HVAC owners NJ",
"active": true,
"paused_reason": null,
"crm": "zoho"
},
"days": 7,
"runs": [
{
"date": "2026-12-04",
"time": "09:00",
"status": "completed",
"message": "10 leads added",
"leads_added": 10,
"duplicates_skipped": 2,
"failed": 0,
"crm": "zoho",
"credits_used": {
"email": 10
},
"credits_refunded": {}
}
],
"totals": {
"runs": 5,
"leads_added": 48,
"duplicates_skipped": 7,
"failed": 0,
"credits_used": {
"email": 48
}
}
}Preview an AutoPilot's next run
autopilots:readA dry run: shows who the next run would send, without unlocking, charging or sending anything. Returns up to 50 candidates. Returns 409 already_running if a preview is already running.
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/autopilots/311/preview" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"autopilot": {
"id": "311",
"name": "HVAC owners NJ",
"active": true,
"crm": "zoho"
},
"next_run_would_send": 10,
"candidates": [
{
"name": "Sam Ortiz",
"title": "Owner",
"company": "Ortiz Heating",
"location": "Newark, NJ",
"linkedin_url": "https://www.linkedin.com/in/example"
}
],
"warnings": [],
"would_skip": null,
"filtered_out": "…",
"note": "A dry run: nothing was unlocked, charged or sent to the CRM."
}Candidates only include fields that have a value. filtered_out summarizes who was left out and why; its shape can vary.
Pause an AutoPilot
workspace:writeTurns the AutoPilot off right away, with no approval step. Turning it back on is done in the app, or through the MCP update_autopilot tool, which needs approval.
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/autopilots/311/pause" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"autopilot": {
"id": "311",
"name": "HVAC owners NJ"
},
"active": false,
"changed": true,
"note": "Paused. Turn it back on in CRM CoPilot (AutoPilot page) when you're ready."
}CRM and exports
List connected CRMs
crm:readCRM ids are zoho, salesforce, hubspot, gohighlevel and pipedrive. Use these ids wherever an endpoint takes crm.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/crm/connections" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"connections": [
{
"crm": "zoho",
"name": "Zoho",
"primary": true
},
{
"crm": "hubspot",
"name": "HubSpot",
"primary": false
}
],
"primary": "zoho"
}List leads sent to your CRM with a buying signal
exports:readOne row per CRM person record that received a Sales signal (CRM CoPilot) note: who it was, which record, and the signals behind it. Use it to reconcile what reached your CRM.
| Parameter | Type | Description |
|---|---|---|
since | ISO date or datetime | Only rows exported since then. Default 30 days ago. |
crm | string | Only this CRM, e.g. hubspot. |
autopilot_id | string | Only leads from this AutoPilot. |
agent_id | integer | Only leads from this agent. |
limit | integer | 1–500, default 200. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/exports?since=2026-11-01&crm=hubspot" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"since": "2026-11-01T00:00:00+00:00",
"count": 1,
"exports": [
{
"finding_id": 9012,
"autopilot_id": null,
"agent_id": 77,
"run_id": null,
"person": "Priya Natarajan",
"email": "[email protected]",
"company": "Acme Example",
"domain": "acme-example.com",
"crm": "hubspot",
"crm_record_module": "contacts",
"crm_record_id": "551203",
"note_id": "88123",
"note_status": "done",
"why_now": "Raised a Series B last week",
"signals": [
{
"type": "funding",
"label": "Series B",
"detail": "$30M round",
"url": "https://news.example.com/acme",
"date": "2026-11-28"
}
],
"exported_at": "2026-11-29T14:02:11+00:00",
"note_updated_at": "2026-11-29T14:02:40+00:00"
}
],
"note": "…"
}note_status is done (note is on the record), pending (on its way), needs_scope (reconnect the CRM) or failed. Team webhooks can push the same rows to you as lead.exported events.
Analytics, replies and hot leads
Get outreach stats
analytics:read| Parameter | Type | Description |
|---|---|---|
days | integer | 7, 30 or 90. Default 30. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/analytics/outreach?days=30" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"days": 30,
"timezone": "America/Chicago",
"tracking_since": "2026-06-01",
"totals": {
"emails_sent": 412,
"emails_opened": 233,
"open_rate": 56.6,
"emails_clicked": 31,
"click_rate": 7.5,
"videos_sent": 88,
"videos_played": 61,
"play_rate": 69.3,
"videos_finished": 35,
"finish_rate": 39.8,
"booking_clicks": 9,
"emails_with_video": 88,
"email_booking_clicks": 6,
"booking_click_rate": 2.2,
"meetings_booked": 7,
"meetings_booked_crm": 5,
"meetings_booked_manual": 2,
"meeting_rate": 1.7
},
"video_emails": {
"sent": 88,
"share_of_emails": 21.4,
"viewed": 61,
"view_rate": 69.3,
"not_viewed": 27,
"finished": 35,
"finish_rate": 39.8,
"booking_clicks": 6,
"avg_watch_percent": 64,
"open_rate_with_video": 71.6,
"open_rate_without_video": 52.5
},
"daily": [
{
"date": "2026-12-04",
"sent": 18,
"opened": 11,
"with_video": 4,
"video_viewed": 3
}
]
}Rates are percentages with one decimal, or null when there's nothing to divide by.
Get monthly goals
analytics:readProgress on this month's goals (conversations, meetings, opportunities). Goals are still being rolled out: until they're switched on for an account, this returns {"available": false, "message": "Goals aren't switched on for this account yet."}, so check available first.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/analytics/goals" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"available": true,
"month": "December 2026",
"day": 5,
"days_in_month": 31,
"has_goals": true,
"focus": "…",
"goals": [
{
"key": "meetings",
"label": "Meetings booked",
"target": 12,
"actual": 3,
"pace": 2,
"status": "on_track",
"last_month": 9
}
]
}key is conversations, meetings or opportunities. status is done, on_track, behind or none.
List replies
replies:readReplies to your emails and LinkedIn messages (through Meet Alfred), sorted by AI into intents.
| Parameter | Type | Description |
|---|---|---|
days | integer | Look-back window in days. 1–90, default 14. |
limit | integer | 1–100, default 25. |
intent | string | One of interested, meeting, referral, question, not_now, not_interested, wrong_person, unsubscribe, out_of_office, networking, recruiting, admin, other. |
status | string | new, waiting, sent, dismissed or done. |
channel | string | email or linkedin. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/replies?days=7&intent=interested" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"days": 7,
"total": 2,
"by_intent": {
"interested": 1,
"question": 1
},
"by_channel": {
"email": 1,
"linkedin": 1
},
"replies": [
{
"id": "e5531",
"channel": "email",
"received_at": "2026-12-04T15:20:00+00:00",
"from": {
"name": "Lee Park",
"email": "[email protected]",
"company": "Example Org"
},
"subject": "Re: quick question",
"intent": "interested",
"reason": "Asked for pricing",
"status": "new",
"follow_up_on": null,
"what_copilot_did": null,
"text": "Thanks, can you send pricing?",
"in_reply_to": "Quick question"
},
{
"id": "a88",
"channel": "linkedin",
"via": "Meet Alfred",
"received_at": "2026-12-03T10:00:00+00:00",
"from": {
"name": "Ana Silva",
"email": null,
"company": "Silva Co",
"title": "COO",
"linkedin_url": "https://www.linkedin.com/in/example2"
},
"campaign": "COO outreach",
"intent": "question",
"reason": "…",
"status": "new",
"next_step": "…",
"text": "What does it integrate with?",
"conversation_url": "https://…"
}
]
}text is cut at 500 characters. Email reply ids start with e, Meet Alfred ids with a.
List hot leads
analytics:readPeople who just showed interest: replied, opened several times, watched your video, or clicked your booking link.
| Parameter | Type | Description |
|---|---|---|
days | integer | Look-back window in days. 1–90, default 7. |
limit | integer | 1–100, default 25. |
kind | string | reply, opens, video_long, video_completed, video_rewatch, booking_click or alfred_reply. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/hot-leads?days=3" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"days": 3,
"total": 1,
"hot_leads": [
{
"id": "7720",
"occurred_at": "2026-12-04T18:11:00+00:00",
"kind": "video_completed",
"what_they_did": "Watched your video to the end",
"name": "Chris Doe",
"title": "VP Sales",
"company": "Doe Corp",
"email": "[email protected]",
"linkedin_url": null,
"source": "…",
"seen": false,
"scores": {
"engagement": 72,
"intent": 40,
"fit": 65,
"priority": 58,
"queue": "…",
"next_action": "…",
"…": "…"
}
}
]
}scores is null when the lead hasn't been scored yet. Its fields can change as scoring improves, so read the ones you need and ignore the rest.
Sequences
Email sequences send a series of emails from the user's connected mailbox.
List sequences
sequences:read| Parameter | Type | Description |
|---|---|---|
days | integer | Period for emails_sent. 1–90, default 30. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/sequences" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"days": 30,
"sequences": [
{
"id": "58",
"name": "HVAC intro",
"active": true,
"steps": 3,
"people": 40,
"by_status": {
"active": 25,
"replied": 4,
"completed": 11
},
"emails_sent": 96,
"replied": 4
}
]
}Create a sequence
workspace:writeCreates a sequence from emails you've written. It sends nothing: to email people, propose a sequence enrollment, which the user approves. Repeat calls are safe: the same external_id with the same content returns the existing sequence (created: false). The same external_id with different content returns 409 conflict, so give each new version of the wording a new external_id.
| Parameter | Type | Description |
|---|---|---|
namerequired | string | Up to 200 characters, no < or >. |
external_idrequired | string | Your id for this version of the wording. Up to 120 characters. |
stepsrequired | array | 1–5 steps. Each has only subject, body and wait_days; other keys are refused. |
steps[].subjectrequired | string | Up to 300 characters. |
steps[].bodyrequired | string (HTML) | Up to 20,000 characters. Merge fields like {{first_name}} and {{company}} work, plus {{page_title}}, {{page_url}} and {{note}} for per-person context at enrollment. |
steps[].wait_days | integer | 0–60 days after the previous step. The first step must be 0. Default 0. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/sequences" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "AEO follow-up v2", "external_id": "aeo-2026-12-v2", "steps": [{"subject": "Quick idea for {{company}}", "body": "<p>Hi {{first_name}}, …</p>"}, {"subject": "Following up", "body": "<p>…</p>", "wait_days": 3}]}'Response{
"created": true,
"sequence": {
"id": "61",
"name": "AEO follow-up v2",
"active": true,
"external_id": "aeo-2026-12-v2",
"step_count": 2,
"digest": "9f1c…e2",
"steps": [
{
"subject": "Quick idea for {{company}}",
"body": "<p>Hi {{first_name}}, …</p>",
"wait_days": 0,
"kind": "email"
},
{
"subject": "Following up",
"body": "<p>…</p>",
"wait_days": 3,
"kind": "email"
}
],
"readiness": {
"ready": false,
"problems": [
{
"step": 0,
"kind": "…",
"message": "…"
}
],
"notices": []
}
}
}readiness lists anything that would stop the sequence from sending, such as no connected mailbox. You can create at most 50 sequences per account in 24 hours through the API (429 daily_quota_exceeded).
Get a sequence
sequences:readsteps (with subjects and bodies) is only included for sequences created through the API.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/sequences/61" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"sequence": {
"id": "61",
"name": "AEO follow-up v2",
"active": true,
"external_id": "aeo-2026-12-v2",
"step_count": 2,
"digest": "9f1c…e2",
"steps": [
{
"subject": "Quick idea for {{company}}",
"body": "<p>Hi {{first_name}}, …</p>",
"wait_days": 0,
"kind": "email"
},
{
"subject": "Following up",
"body": "<p>…</p>",
"wait_days": 3,
"kind": "email"
}
]
}
}Search and unlock
Search returns people without emails. Unlock the ones you want to get verified emails; that is the step that costs credits. Search calls (people, companies, decision makers and saved-search runs) share a limit of 200 per account per UTC day.
Search people
leads:searchDescribe who you want in plain words. Free. Returns 10 people per page and up to 10 pages.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Who to find, up to 500 characters. For example VP Sales at fintechs in Texas with 50-200 employees. |
page | integer | 1–10, default 1. |
rank_by_fit | boolean | Score each person against your business profile and sort by fit. Default false. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/leads/search" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "VP Sales at fintechs in Texas with 50-200 employees", "rank_by_fit": true}'Response{
"query": "VP Sales at fintechs in Texas with 50-200 employees",
"understood_as": {
"summary": "VP Sales in fintech located in Texas",
"notes": []
},
"page": 1,
"total_matches": 340,
"total_pages": 10,
"next_page": 2,
"people": [
{
"ref": "ld_q2V9x1Kc8mPa3bZr",
"name": "Jordan Lee",
"title": "VP of Sales",
"company": "Ledgerly",
"company_domain": "ledgerly.example",
"location": "Austin, Texas, United States",
"linkedin_url": "https://www.linkedin.com/in/example",
"email_available": true,
"already_unlocked": false,
"fit": {
"score": 81,
"reason": "Fintech sales leader in your target size band",
"product": "…"
}
}
],
"note": "Emails aren't included. …"
}understood_as shows how the query was read, so you can rephrase if it's off. fit only appears with rank_by_fit. Returns 503 upstream_unavailable if the company database is busy; retry shortly.
Search companies
leads:searchspends creditsFind companies by type, place, size, technology or signal. Costs 1 credit per page (refunded if the search fails), so it needs a key that may spend credits. Up to 25 companies per page.
| Parameter | Type | Description |
|---|---|---|
queryrequired | string | Up to 500 characters. Must include at least one company filter, such as industry, place, size, technology or signal. |
page | integer | 1–10, default 1. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/companies/search" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "SaaS companies in Austin with 50-200 employees hiring SDRs"}'Response{
"query": "SaaS companies in Austin with 50-200 employees hiring SDRs",
"understood_as": {
"summary": "…",
"notes": []
},
"notes": [],
"page": 1,
"total_matches": 120,
"total_pages": 5,
"next_page": 2,
"credits_used": 1,
"companies": [
{
"name": "Ledgerly",
"domain": "ledgerly.example",
"industry": "Financial Services",
"employees": 140,
"revenue": null,
"location": "Austin, Texas, United States",
"founded": 2017,
"funding_stage": "Series B",
"headcount_growth_12m": 0.18,
"description": "…",
"linkedin_url": "https://www.linkedin.com/company/example"
}
],
"note": "Use find_decision_makers with a company's domain to get its people."
}Find decision makers at a company
leads:searchspends creditsPeople at one company with decision-making titles. Costs 1 credit per company when people are found; more pages of the same company are free for 30 days. Needs a key that may spend credits and a plan that includes decision makers. If nobody matches the titles, it widens to anyone at the company and returns "titles": "anyone".
| Parameter | Type | Description |
|---|---|---|
domain | string | The company's website domain. Most reliable. Send domain or company. |
company | string | The company's name. |
titles | array of strings | Up to 10 titles. Default CEO, CTO, Vice President, Founder, Owner. |
page | integer | 1–10, default 1. |
rank_by_fit | boolean | Sort by fit with your business profile. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/companies/decision-makers" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "acme-example.com", "titles": ["CEO", "VP Sales"]}'Response{
"company": "Acme Example",
"domain": "acme-example.com",
"titles": [
"CEO",
"VP Sales"
],
"page": 1,
"total_matches": 7,
"total_pages": 1,
"next_page": null,
"credits_used": 1,
"people": [
{
"ref": "ld_q2V9x1Kc8mPa3bZr",
"name": "Morgan Hale",
"title": "CEO",
"company": "Acme Example",
"company_domain": "acme-example.com",
"location": "Austin, Texas, United States",
"linkedin_url": "https://www.linkedin.com/in/example",
"email_available": true,
"already_unlocked": false
}
],
"note": "…"
}If no company matches the name, you get "people": [], "credits_used": 0 and a note suggesting the domain.
Unlock emails
leads:unlockspends creditsGets verified emails for up to 10 people by ref. Costs 1 credit per email found plus 0.1 for the verification check. Nothing is charged when no email is found, and people you already unlocked are free. max_credits is a hard cap you set: if the worst case (1.1 × people not yet unlocked) is above it, the call is refused with 402 and nothing is spent.
| Parameter | Type | Description |
|---|---|---|
refsrequired | array of strings | 1–10 refs from search, decision makers or findings. |
max_creditsrequired | number | The most this call may spend. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/leads/unlock" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"refs": ["ld_q2V9x1Kc8mPa3bZr", "ld_x7Hk2mQ9pL4sVb1n"], "max_credits": 2.2}'Response{
"results": [
{
"ref": "ld_q2V9x1Kc8mPa3bZr",
"name": "Jordan Lee",
"email": "[email protected]",
"email_check": "verified",
"status": "unlocked"
},
{
"ref": "ld_x7Hk2mQ9pL4sVb1n",
"name": "Kim Roe",
"status": "no_email_found"
}
],
"credits_used": 1.1,
"unlocked": 1,
"note": "email_check: verified = safe to email; catch_all/risky = may bounce; invalid = don't email."
}| Field | Values |
|---|---|
status | unlocked, already_unlocked, no_email_found, no_credits, not_found (ref unknown or expired) |
email_check | verified (safe to email), catch_all or risky (may bounce), invalid (don't email), unchecked |
Saved and signal searches
Saved searches are the people searches users save in the app. Signal searches find companies showing buying signals, such as hiring, funding or a new leader, and the right people there; an AutoPilot can run one every day.
List saved searches
leads:searchUp to 100, newest first. kind is people or signal. filters is a human-readable summary whose keys vary.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/saved-searches" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"saved_searches": [
{
"id": "204",
"title": "HVAC owners NJ",
"version": 3,
"updated_at": "2026-11-30T12:00:00",
"kind": "people",
"filters": {
"Titles": "Owner"
}
},
{
"id": "219",
"title": "Hiring Salesforce admins near NYC",
"version": 1,
"updated_at": "2026-12-01T09:30:00",
"kind": "signal",
"definition": {
"signals": [
{
"type": "hiring_intent",
"keywords": [
"Salesforce admin"
]
}
],
"within_days": 30
},
"filters": {
"…": "…"
}
}
]
}Run a saved search
leads:searchFree; counts toward the daily search limit. A people search returns the same shape as Search people plus saved_search. A signal search returns the preview shape. Returns 422 if the saved search has no usable filters.
| Parameter | Type | Description |
|---|---|---|
page | integer | 1–10, default 1. |
rank_by_fit | boolean | Sort by fit. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/saved-searches/204/run" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"page": 1}'Response{
"saved_search": {
"id": "204",
"title": "HVAC owners NJ",
"filters": {
"Titles": "Owner"
}
},
"page": 1,
"total_matches": 88,
"total_pages": 9,
"next_page": 2,
"people": [
{
"ref": "ld_q2V9x1Kc8mPa3bZr",
"name": "Sam Ortiz",
"title": "Owner",
"company": "Ortiz Heating",
"company_domain": "ledgerly.example",
"location": "Austin, Texas, United States",
"linkedin_url": "https://www.linkedin.com/in/example",
"email_available": true,
"already_unlocked": false
}
],
"note": "…"
}Create a signal search
workspace:writeSaves a signal search right away (free; nothing runs until an AutoPilot uses it). Send plain words in query, or a structured definition.
| Parameter | Type | Description |
|---|---|---|
query | string | What to look for in plain words. Send this or definition. |
definition | object | Structured definition, see below. Invalid definitions return 422. |
title | string | Name shown in the app. |
definition shape{
"signals": [
{"type": "hiring_intent", "keywords": ["Salesforce admin"], "titles": ["…"], "tech": ["…"], "with_hiring_sales": true}
],
"within_days": 30,
"companies": {
"places": ["New York, NY"], "near": {"zip": "10001", "miles": 50},
"employees": [20, 500], "revenue": [1000000, 50000000],
"industries": ["…"], "exclude_industries": ["…"], "exclude_domains": ["…"],
"exclude_customers": true, "min_fit": 60, "offering_id": "…"
},
"people": {"titles": ["IT Director"], "max_per_company": 2, "skip_domain_mismatch": true},
"cooldown_days": 90
}Signal type is one of hiring_intent, funding, leadership_change, new_in_role, growth_ma, tech_used, not_using, news, new_business, job_change. All fields other than signals are optional.
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/signal-searches" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Companies near NYC hiring a Salesforce admin", "title": "Hiring Salesforce admins near NYC"}'Response{
"status": "created",
"signal_search": {
"id": "219",
"title": "Hiring Salesforce admins near NYC",
"kind": "signal",
"version": 1,
"definition": {
"…": "…"
},
"describe": {
"…": "…"
},
"app_url": "/signal-searches?id=219"
},
"next": "Call preview_signal_search to see matching companies, then propose_autopilot with signal_search_id to run it every day."
}Update a signal search
workspace:writeSaves a new version with a new title and/or definition. POST to the same path works too. Returns {"status": "updated", "signal_search": {…}}.
Requestcurl -X PATCH "https://production.crmcopilot.ai/api/agent/v1/signal-searches/219" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"definition": {"signals": [{"type": "hiring_intent", "keywords": ["Salesforce admin"]}], "within_days": 14}}'Preview a signal search
leads:searchCompanies the signal search currently finds, with the people it would pick. Free.
| Parameter | Type | Description |
|---|---|---|
limit | integer | 1–25 companies, default 10. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/signal-searches/219/preview?limit=5" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"id": "219",
"title": "Hiring Salesforce admins near NYC",
"kind": "signal",
"definition": {
"…": "…"
},
"describe": {
"…": "…"
},
"count": 4,
"people": 6,
"engines": [
{
"kind": "hiring_signal",
"active": true,
"last_run_at": "2026-12-04T08:00:00",
"last_status": "ok",
"last_message": "…"
}
],
"never_ran": false,
"companies": [
{
"company": "Hudson Freight",
"domain": "hudsonfreight.example",
"employees": 85,
"signals": [
"…"
],
"fit": null,
"rank": 0.82,
"people": [
{
"name": "Rae Kim",
"title": "IT Director",
"linkedin_url": "https://www.linkedin.com/in/example4",
"why": "…",
"flag": null
}
]
}
]
}Agents, findings and signals
Prospecting agents watch for buying signals and new prospects and save what they find as findings. Finding leads is free; credits are only spent when you unlock emails or send people somewhere.
List agents
agents:readRequestcurl "https://production.crmcopilot.ai/api/agent/v1/agents" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"agents": [
{
"id": "77",
"name": "Funding watch",
"kind": "signal_scout",
"type": "Signal Scout",
"active": true,
"paused_reason": null,
"frequency": "daily",
"last_run_at": "2026-12-05T13:00:00+00:00",
"next_run_at": "2026-12-06T13:00:00+00:00",
"last_status": "ok",
"last_message": "…",
"new_findings": 6,
"found_30d": 41,
"exported_30d": 12,
"delivers_to": {
"crm": "zoho",
"sequence_id": null,
"meet_alfred_campaign": null
}
}
],
"count": 1,
"active": 1,
"new_findings": 6
}List an agent's runs
agents:read| Parameter | Type | Description |
|---|---|---|
days | integer | Look-back window in days. 1–90, default 14. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/agents/77/runs" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"agent": {
"id": "77",
"name": "Funding watch",
"type": "Signal Scout",
"active": true
},
"days": 14,
"runs": [
{
"started_at": "2026-12-05T13:00:00+00:00",
"finished_at": "2026-12-05T13:02:10+00:00",
"status": "ok",
"found": 6,
"exported": 2,
"error": null
}
],
"totals": {
"runs": 14,
"found": 41,
"exported": 12,
"failed": 0
}
}List agent types
agents:readThe kinds of agent you can create, with their default settings and whether the plan allows them. Use kind with Propose an agent. settings differs per kind.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/agent-types" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"agent_types": [
{
"kind": "signal_scout",
"name": "Signal Scout",
"description": "…",
"settings": {
"…": "…"
},
"frequency": "daily",
"allowed_on_plan": true
}
],
"note": "…"
}List findings
agents:readSorted by score, then newest. Page with offset and next_offset.
| Parameter | Type | Description |
|---|---|---|
agent_id | string | Only this agent's findings. |
status | string | new (default), dismissed, exported, suppressed or all. |
min_score | integer | 0–100. |
days | integer | Look-back window in days. 1–365, default 30. |
limit | integer | 1–50, default 20. |
offset | integer | 0–10000, default 0. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/findings?status=new&min_score=70" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"status": "new",
"days": 30,
"total": 23,
"offset": 0,
"next_offset": 20,
"findings": [
{
"id": "9012",
"agent": "Funding watch",
"agent_id": "77",
"kind": "…",
"title": "Acme Example",
"why_now": "Raised a Series B last week",
"score": 88,
"fit": {
"score": 74,
"reason": "…",
"product": "…"
},
"company": {
"name": "Acme Example",
"domain": "acme-example.com"
},
"people_count": 3,
"signals": [
"Series B"
],
"status": "new",
"found_at": "2026-12-01T09:00:00+00:00",
"lead_scores": null
}
],
"note": "…"
}Get a finding
agents:readThe full why-now, signals (up to 10) and people (up to 25) with fresh refs. Unlike search results, email is included when it's already known.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/findings/9012" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"id": "9012",
"agent": {
"id": "77",
"name": "Funding watch",
"type": "Signal Scout"
},
"kind": "…",
"title": "Acme Example",
"why_now": "…",
"score": 88,
"fit": {
"score": 74,
"reason": "…",
"product": "…"
},
"company": {
"name": "Acme Example",
"domain": "acme-example.com"
},
"signals": [
{
"type": "funding",
"label": "Series B",
"detail": "…",
"url": "https://news.example.com/acme"
}
],
"people": [
{
"ref": "ld_Pq8…",
"name": "Alex Moreno",
"title": "CFO",
"company": "Acme Example",
"location": "…",
"linkedin_url": "https://www.linkedin.com/in/example5",
"email": "[email protected]",
"email_available": true
}
],
"status": "new",
"found_at": "2026-12-01T09:00:00+00:00",
"note": "…"
}Dismiss or restore findings
workspace:writeRuns right away. Dismissed people are skipped by AutoPilots. Exported findings can't be restored.
| Parameter | Type | Description |
|---|---|---|
finding_idsrequired | array | Up to 100 finding ids. |
restore | boolean | false (default) dismisses; true moves them back to new. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/findings/status" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"finding_ids": ["9012", "9013", "9999"]}'Response{
"status": "dismissed",
"changed": 2,
"unchanged": 0,
"not_found": [
"9999"
]
}List buying signals
agents:readRecent buying signals such as funding, hiring and leadership changes. Free.
| Parameter | Type | Description |
|---|---|---|
types | string | Comma-separated, e.g. funding,hiring_intent,leadership_change,growth_ma,new_in_role,job_change,news,new_business. |
days | integer | Look-back window in days. 1–180, default 14. |
company | string | Company name or domain. |
min_confidence | number | 0–1. |
limit | integer | 1–100, default 25. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/signals?types=funding,leadership_change&days=7" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"days": 7,
"count": 1,
"types_in_results": {
"funding": "Funding"
},
"signals": [
{
"type": "funding",
"label": "Series B",
"company": "Acme Example",
"domain": "acme-example.com",
"what": "Raised $30M …",
"source_url": "https://news.example.com/acme",
"confidence": 0.9,
"date": "2026-11-28",
"found_by_your_agent": true
}
]
}Proposed actions
These endpoints don't act on their own. Each one creates a proposal that the user approves or rejects in CRM CoPilot. No credits are spent until it's approved. Proposals expire after 24 hours. Read Approvals for the full flow.
Every proposal returns the same shape:
Response (all proposals){
"status": "pending_approval",
"action_id": "act_Zk3mN8pQ2rS5tU7vW9xY1a2b",
"approval_url": "https://production.crmcopilot.ai/approvals?action=act_Zk3mN8pQ2rS5tU7vW9xY1a2b",
"expires_at": "2026-12-06T15:00:00+00:00",
"what_happens": {
"what": "Send 12 people to Zoho",
"lines": [
"…"
],
"people": [
"Jordan Lee · VP of Sales · Ledgerly"
],
"credits": "Up to 12 credits (1 per email unlocked; duplicates and failures are refunded)",
"where": "Zoho",
"source": "…"
},
"note": "Nothing happens until the user approves this in CRM CoPilot. Give them the approval_url, then check the outcome with get_action."
}
Propose sending people to your CRM
workspace:writeneeds approvalWhen approved, emails are unlocked (1 credit each; duplicates and failures refunded), and people already in the CRM or on your do-not-contact list are skipped. Refs or findings that weren't found are listed in skipped_refs.
| Parameter | Type | Description |
|---|---|---|
refs | array of strings | Up to 50 refs. Send refs, finding_ids or both. |
finding_ids | array | Up to 25 findings; their people are sent. |
crm | string | CRM id. Default: your primary CRM. Must be connected (422 crm_not_connected). |
tags | array of strings | Up to 10 tags, 50 characters each. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/actions/crm-push" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"refs": ["ld_q2V9x1Kc8mPa3bZr"], "crm": "zoho", "tags": ["fintech-tx"]}'Propose enrolling people in a sequence
workspace:writeneeds approvalNeeds a connected Gmail or Outlook mailbox (422 mailbox_not_connected) and a sequence that's ready to send (422 sequence_not_ready). Cost: up to 1 credit per email that still needs unlocking, then 1 credit per email sent.
| Parameter | Type | Description |
|---|---|---|
sequence_idrequired | string | An active sequence with steps. |
refs | array of strings | Up to 50 refs. |
finding_ids | array | Up to 25 findings. |
context | object | Per-person details for the email, keyed by ref: {"ld_…": {"page_title": …, "page_url": …, "note": …}}. Up to 50 entries, plain text, page_title ≤ 200, page_url ≤ 1000, note ≤ 500 characters. |
With context, every step must be written (not AI-generated) and at least one step must use {{page_title}}, {{page_url}} or {{note}}. The approval card then shows the rendered emails for the first 10 people, and if the sequence's wording changes before approval nothing is enrolled. Errors: context_needs_template_steps, context_not_used, message_not_ready (all 422).
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/actions/sequence-enroll" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"sequence_id": "61", "refs": ["ld_q2V9x1Kc8mPa3bZr"], "context": {"ld_q2V9x1Kc8mPa3bZr": {"page_title": "Pricing", "page_url": "https://yoursite.example/pricing", "note": "Read the pricing page twice"}}}'Propose a new AutoPilot
workspace:writeneeds approvalNeeds a plan that includes AutoPilot. The approval card estimates about 1.1 credits a day per lead. To run a signal search on a schedule, use the MCP propose_autopilot tool, which also takes signal_search_id.
| Parameter | Type | Description |
|---|---|---|
query | string | Who to find. Required unless you send search_id. |
search_id | string | A saved people search to run instead. |
name | string | Default: the query or saved search title. |
days | array of strings | Weekday names. Default Monday–Friday. |
leads_per_run | integer | 1–25, default 10. |
runs_per_day | integer | 1–5, default 1. |
start_time | string | HH:MM, default 09:00. |
timezone | string | IANA name such as America/New_York. Default: the user's time zone. |
crm | string | Where leads go. Default: primary CRM. |
sequence_id | string | Also enroll new leads in this sequence. Needs Gmail connected. |
turn_on | boolean | Default true. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/actions/autopilot" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Owners of HVAC companies in New Jersey", "leads_per_run": 10, "days": ["Monday", "Wednesday", "Friday"], "crm": "zoho"}'Propose a new agent
workspace:writeneeds approvalAn account can have up to 10 agents (409 when full).
| Parameter | Type | Description |
|---|---|---|
kindrequired | string | From List agent types. |
name | string | Up to 120 characters. |
settings | object | Overrides the type's default settings. |
frequency | string | daily or weekly. Default: the type's. |
run_hour | integer | 0–23, default 8. |
weekday | integer | 0 (Monday) – 6, for weekly agents. |
turn_on | boolean | Default true. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/actions/agent" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"kind": "signal_scout", "name": "Funding watch", "frequency": "daily"}'Propose running an agent now
workspace:writeneeds approvalReturns 409 already_running if the agent ran in the last 2 minutes, outreach is paused, or the plan blocks it.
| Parameter | Type | Description |
|---|---|---|
agent_idrequired | string | The agent to run. |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/actions/agent-run" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"agent_id": "77"}'Check a proposal
account:readPoll this after giving the user the approval_url. status moves pending → running → done or failed, or ends as rejected or expired. result appears once it has run; its fields depend on the kind of action.
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/actions/act_Zk3mN8pQ2rS5tU7vW9xY1a2b" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"action_id": "act_Zk3mN8pQ2rS5tU7vW9xY1a2b",
"kind": "crm_push",
"title": "Send 12 people to Zoho",
"status": "done",
"what_happens": {
"what": "…",
"lines": [
"…"
],
"people": [
"…"
],
"credits": "…",
"where": "Zoho",
"source": "…"
},
"created_at": "2026-12-05T15:00:00+00:00",
"expires_at": "2026-12-06T15:00:00+00:00",
"decided_at": "2026-12-05T15:04:10+00:00",
"result": {
"status": "ok",
"message": "Queued for the CRM. …",
"parts": [
{
"findings": 2,
"status": "queued",
"queued": 3,
"crm_task_finished": true,
"people_outcomes": [
{
"finding_id": 9012,
"name": "…",
"company": "…",
"email": "…",
"outcome": "created",
"why": "created in the CRM",
"crm_record_id": "551203"
}
]
}
]
}
}Business profile suggestions
For tools that research a business (for example AEO tools). They suggest additions to the user's business profile, and nothing changes until the owner accepts them in the app. These endpoints need a key made with the Key for AEO option, which has the profile:suggest scope.
Suggest profile additions
profile:suggest1–25 suggestions per call. An account can have at most 60 open suggestions. Sending the same id again doesn't create a duplicate.
| Parameter | Type | Description |
|---|---|---|
suggestions[].idrequired | string | Your id, 1–100 characters of A-Z a-z 0-9 . _ : -. |
suggestions[].fieldrequired | string | competitors (≤ 100 characters), disqualifiers, buying_triggers or problems_solved (≤ 250). |
suggestions[].textrequired | string | The suggested entry. |
suggestions[].confidence | string | high, medium (default) or low. |
suggestions[].inferred | boolean | True if you inferred it rather than found it stated. |
suggestions[].evidence | array | Up to 3 {text, url} (text ≤ 300, https URL ≤ 500). |
Requestcurl -X POST "https://production.crmcopilot.ai/api/agent/v1/profile/suggestions" \
-H "Authorization: Bearer $CRMCOPILOT_KEY" \
-H "Content-Type: application/json" \
-d '{"suggestions": [{"id": "aeo-1", "field": "competitors", "text": "Northwind CRM", "confidence": "high", "evidence": [{"text": "Compared on their pricing page", "url": "https://example.com/compare"}]}]}'Response{
"results": [
{
"id": "aeo-1",
"status": "created"
},
{
"id": "aeo-2",
"status": "exists",
"state": "open"
},
{
"id": "x",
"status": "rejected",
"reason": "…"
}
]
}Check your suggestions
profile:suggest| Parameter | Type | Description |
|---|---|---|
ids | string | Comma-separated suggestion ids. Up to 200. |
Requestcurl "https://production.crmcopilot.ai/api/agent/v1/profile/suggestions?ids=aeo-1,aeo-2" \
-H "Authorization: Bearer $CRMCOPILOT_KEY"Response{
"suggestions": [
{
"id": "aeo-1",
"field": "competitors",
"text": "Northwind CRM",
"status": "accepted",
"decided_at": "2026-12-05T16:00:00+00:00"
}
]
}Last checked against the live code on 5 December 2026.