API reference

The Cornersight Public REST API. Authenticate every request with the X-API-Key header. Most endpoints are synchronous and answer in one request — the reads, and the writes that create, update or untrack a source. The enrichment and post/engagement endpoints are the asynchronous ones: they return a jobId you poll on GET /api/v1/jobs/{jobId}/status until the job is completed or failed. That status read is itself synchronous: it reports the job's current state and returns. Each operation below says which it is. This page is generated from the OpenAPI spec.

Lead and engager responses and the lead.detected webhook include company name, website URL and domain, LinkedIn company URL, description, industry, headquarters location, and employee size when available. The website URL (companyUrl) is distinct from its hostname (companyDomain) and LinkedIn page (companyLinkedinUrl). companyUrl is the company's own website, from the website field of its company record, and never a LinkedIn URL; companyLinkedinUrl is its LinkedIn company page. Industry is companyIndustry, and employee size is reported as both companyEmployeeCount and companyStaffRange. Company fields come from the company record, which Cornersight resolves once per company and caches for every lead at that company. They cost no enriching credits. companyStaffRange is the LinkedIn size bucket and companyEmployeeCount is the reported total, so the two can disagree. Leads and engagers also carry companyEnrichedAt. companyEnrichedAt is null until the company has been resolved; after that, a null company field means the company record has no value for it. Resolving a company costs one provider lookup, not a Cornersight credit, and each company record is cached for 6 months. companyDescription and companyLocation (headquarters) come from the company record, resolved once per company and cached for 6 months, at no enriching-credit cost.

A keyword search can capture engagers (the default) or matching posts only. Set mode: "posts_only"and creditCap (1 to 2000, also its posts a day; postsPerSync is its older name) on keyword track or update. Confirm the recurring maximum with confirmSpend; without it a new posts-only watch is refused with a 409 quote. Each newly kept post costs one credit, while repeats and rejected posts are free. Read saved text at GET /api/v1/sources/{id}/posts; the kept-posts verdict list does not include text. Both routes carry each keyword post's author (name, url, headline), commentsCount, totalReactionCount, contentType and postedAt as the search reported them when it found the post, so posts can be triaged without buying their engagers; each is null where nothing recorded it.

The one-off posts reads, GET /api/v1/profile/{username}/posts and GET /api/v1/company/{username}/posts, take an optional since: a date (YYYY-MM-DD, midnight UTC) or a full ISO timestamp. Only posts published on or after it are returned and charged, one credit each, for example ?posts=60&since=YYYY-MM-DD&confirmSpend=true (for posts from the last 30 days, use the date 30 days ago). posts is still the cap and the most the call can cost, so the 409 still quotes up to posts and says since may return fewer. The balance check still needs posts credits, even if fewer posts are returned. Posts with no publish date are left out when since is set. On company pages since can occasionally miss a post, because company feeds are only roughly in date order. An old pinned post is skipped. An invalid date, or one more than a day ahead, is a 400. The response echoes since.

In engagers mode, captureEngagers (default true) and capturePostAuthors (default false) choose who is captured: the people who liked or commented, the person who wrote each kept post, or both — at least one must be true, and neither applies to posts-only. An author is charged like an engager, one credit per new person with repeats free; a post written by a company page captures no author and is not charged. Author leads carry engagementType: "Author" on leads, the webhook and CSV, and GET /api/v1/leads?engagementType=Author filters to them. With engagers off no reactions or comments are fetched and a run adds at most one new person per kept post, still up to creditCap a day; turning engagers back on for such a search needs confirmSpend. Each run reports lastRun.postAuthorsCaptured and lastRun.companyAuthorsSkipped.

Syncing a source now. Re-tracking a person, company page or post that has already synced does not re-sync it: the response carries syncId: null and syncNotQueuedReason. To sync one now, send POST /api/v1/sources/{id}/sync with its source id. It is charged like any sync of that source, returns the job already in flight (queued: false) rather than queueing a second, and moves the next scheduled sync at least a day out. Keyword searches run on their own schedule and are refused.

Raw mode. Any tracked source can keep its leads raw: send enrichLeads: false (default true) on POST /api/v1/enrich/profile or /enrich/company with saveTrackedProfile: true, POST /api/v1/post/track, POST /api/v1/keyword/track, or later on the profile, company or keyword PATCH. Its engagers are captured and charged exactly as before — one credit per new person per source, repeats free — but never enriched. Read them with GET /api/v1/leads/raw: each row carries the person's LinkedIn URL, URN (null when unknown) and name (null when capture recorded only an id), the action (Like, Comment or Author), the comment text, the post's URL, URN and date, and detectedAt. Raw leads never appear in GET /api/v1/leads, /engagers, the dashboard, exports, webhooks or integrations. The switch needs no confirmSpend and applies to leads captured after it; on a raw source's sync status, enrichment.completed and progress.leadsEnriched count the leads captured raw.

Switching mode. PATCH /api/v1/profile/{username} and /company/{username} also take mode: posts_only with postsPerSync (1–60) turns a source into a posts-only watch (new posts only, one credit per new post, no leads), and engagers turns it back. Only that second switch can raise the cost, so it is refused 409 spend_confirmation_required and changes nothing until the same request is sent with confirmSpend: true. Like every edit there, it binds from the next sync.

Likes and comments. mode: "activity" on a person (POST /api/v1/enrich/profile with saveTrackedProfile: true; Social Feed Activity in the dashboard) creates a separate source that reads the posts that person likes and comments on, once a day, and captures each post's author as a lead. It sits beside the person's Profile & Post Engagement source rather than replacing it, so the PATCH above cannot switch a source into or out of it (400 activity_mode_switch), and the /profile/{username} routes always address the Profile & Post Engagement source. The lead's engagementType is what the tracked person did on that author's post, and its comment text is their comment. One credit per daily check, plus one credit per new author (the same author again is free). The first check covers the last 7 days of comments and the ~20 latest likes. Every plan can use it; a company page cannot. The /api/v1/social-feed routes (Social Feed Activity, below) address it by the handle and choose what it captures: capture is both, likes or comments.

First sync. With saveTrackedProfile: true, POST /api/v1/enrich/profile and /enrich/company take firstSyncPosts (1–50, the latest N posts) and firstSyncDays (1–90, the posts from the last N days, at most 50) to choose what the new source's first sync collects; null or absent is the default, the latest 15 posts. Later syncs still check the 4 newest posts.

The Engagement Agent. Set its profile with PUT /api/v1/agent, for example { "topics": ["cold email", "AI SDR"], "titles": ["VP Sales"], "countries": ["United Kingdom"], "dailyCredits": 1000 } (a partial update that starts nothing), then start it with POST /api/v1/agent/start. Without confirmSpend: true the start is refused 409 spend_confirmation_required with estimatedDailyMax, the plan split and the one-off discoverCost, and nothing changes. Started, it runs one keyword search per topic every day (up to 20 topics) and watches the people a one-off Discover run finds, which the worker adds when that run finishes. Half the daily limit goes to the topics; the other half watches people at up to 25 credits a day each. Together they never spend more than the daily limit, and they recur until POST /api/v1/agent/stop. POST /api/v1/agent/pause pauses it instead: its own sources stop syncing and spending and it finds no one new, nothing is untracked, and POST /api/v1/agent/resume carries on where it stopped. GET /api/v1/agent/leads lists Agent Leads exactly as the dashboard does: one row per person, ranked by ICP % from 40 to 100 (the job title must match; title 40, country 30, industry 15, company size 15; an unknown part earns half) then signal (Extra Strong for engaging twice or more, Strong for a comment on a post about your topics or a lead-magnet post, at least Strong for a 100% ICP match on a post about your topics, Weak only for a hiring or personal post), with checked (everyone captured, which is what the team pays for) beside total, optional filters and firstRun (not done until the first run finishes, never longer than a day). Every call takes agentId for one of several agents; webhook on the PUT with autoSend sends new leads that pass its filters (the dashboard's Push new leads moving forward), and POST /api/v1/agent/push sends past ones. On a free trial the agent checks 1,000 people a day until it has 2,000 people checked in all, and watches up to 20 people. Drafting a profile from a website stays on the dashboard.

HeyReach. Once HeyReach is connected on the dashboard's Integrations page (the key never goes over the API), GET /api/v1/integrations/heyreach/campaigns lists the campaigns that can take leads and POST /api/v1/integrations/heyreach/send adds up to 1,000 at a time: { "campaignId": "235", "leadIds": ["…"] }, with agentId to carry each Agent Lead's ICP % and signal, or people for influencers found by Discover. Only enriched leads are sent, and a lead with no LinkedIn profile URL is skipped. A person is never sent twice to the same campaign (alreadyInCampaign counts them), and a paused campaign is never resumed. Auto-push is heyreach on PUT /api/v1/agent and PUT /api/v1/sources/{id}/heyreach for any source: { "campaignId", "autoSend", "filters", "pushHistoric" }. It pauses itself when HeyReach rejects the key or the campaign can no longer take leads, and GET /api/v1/integrations/heyreach says which.

PlusVibe. Once PlusVibe is connected on the dashboard's Integrations page with the workspace leads go to (the key never goes over the API), GET /api/v1/integrations/plusvibe/campaigns lists that workspace's campaigns that can take leads and POST /api/v1/integrations/plusvibe/send adds up to 1,000 at a time: { "campaignId": "6acf…", "leadIds": ["…"] }, with agentId to carry each Agent Lead's ICP % and signal. Only enriched leads are sent, and only with an email: a lead with no email is skipped (skippedNoEmail) and marked No email. A person is never sent twice to the same campaign (alreadyInCampaign counts them), and a paused campaign is never resumed. Auto-push is PUT /api/v1/agent/plusvibe and PUT /api/v1/sources/{id}/plusvibe for any source: { "campaignId", "autoSend", "filters", "pushHistoric" }; a lead goes once it has an email. It pauses itself when PlusVibe rejects the key or the campaign can no longer take leads, and GET /api/v1/integrations/plusvibe says which.

Webhook signatures use X-Cornersight-Timestamp as raw Unix epoch seconds (example: 1700000000). Sign the exact header text, a period, and the exact raw request body; reject timestamps more than five minutes from your clock. An offline test fixture and Node verifier are in Webhook security.

Agent

Read the Engagement Agent

GET/api/v1/agent

The team's Engagement Agent: the profile it targets, its daily credit limit and how that is split (`plan`), whether it is running, its one-off people search and whether that search's people have been added, and every source it set up. `{ "agent": null }` when the team has never set one up. Read-only. `agents` lists every agent the team holds; `agentId` picks one.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Create or update the Engagement Agent's profile

PUT/api/v1/agent

A PARTIAL update of the website, the profile's parts and the daily limit: only the fields sent change. Creates the agent as a draft when the team has none. Starts nothing and charges nothing: a running agent keeps its sources and caps until POST /api/v1/agent/start runs again. The body is flat: `topics`, `titles` and the rest sit beside `website` and `dailyCredits`, and come back under `agent.profile`. Drafting a profile from the website is a dashboard-only step, so callers set the parts themselves. Also sets the agent's webhook, and `create: true` adds another agent.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Start the Engagement Agent

POST/api/v1/agent/start

The dashboard's launch, server side. It first STOPS every source the agent set up before (the soft untrack DELETE /api/v1/keyword/{id} and /profile/{username} run, so their leads are kept), then creates one daily keyword search per topic, named `Agent: <topic>`, past week, capturing the people who engage, each capped at `plan.perTopic` (a live search the team already has on a topic is reused and never re-capped), and starts a one-off people search: a Discover run on the first 10 topics for the most engaged people posting about them, capped at `plan.people`. WHEN THAT SEARCH FINISHES, THE WORKER ADDS ITS PEOPLE as watched profiles (25 credits a sync each, a 5-post first sync); `agent.peopleAdded` turns true then. THE AGENT RECURS: every topic search runs daily and every watched person syncs daily until POST /api/v1/agent/stop, so `plan.total` is a standing daily commitment. Billing: one credit per new person any of its sources captures, whether or not they match the profile. Without `"confirmSpend": true` the call is refused 409 `spend_confirmation_required` with the figures, and nothing is stopped or created. Each topic search goes through POST /api/v1/keyword/track's own checks (balance, trial limits); one that is refused is listed in `launch.failed` and the rest start. On a free trial the agent checks 1,000 people a day until it has 2,000 people checked in all, on its own allowance: its topic searches and people never use the trial's own keyword or profile slots.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Stop the Engagement Agent

POST/api/v1/agent/stop

Untracks every active source the agent set up (the same soft untrack the DELETE routes run), so none of them runs or charges again, and sets the agent back to `draft`. The leads they captured are kept and GET /api/v1/agent/leads still serves them. A people search already running finishes, but its people are not added once the agent is stopped. A trial team's own sources cannot be untracked and are listed in `stop.notStopped`. Takes only an optional `agentId`.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Pause the Engagement Agent

POST/api/v1/agent/pause

The dashboard's Pause. Every source the agent created (its topic searches, the people it watches and its people search) that is running is set to `paused`, so none of them syncs or charges, and the agent adds no new people and sends no leads to its webhook or HeyReach until it is resumed. NOTHING IS UNTRACKED OR DELETED: the leads stay and GET /api/v1/agent/leads still serves them. A topic search or person the team already had and the agent reused is the team's own and keeps running. Unlike POST /api/v1/agent/stop the agent stays `active`, with `paused` set. Pausing a paused agent changes nothing (`pause.alreadyPaused`). Takes only an optional `agentId`.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Resume the Engagement Agent

POST/api/v1/agent/resume

The dashboard's Resume. Exactly the sources the pause paused, and still paused, are set back to `active` (a source the team paused itself stays paused), so they sync and spend again within the same daily limit; one that was due syncs on the next pass. The agent finds and adds people and sends new leads to its webhook and HeyReach again, and a people search that finished while it was paused has its people added now. Resuming an agent that is not paused changes nothing (`resume.alreadyRunning`). Takes only an optional `agentId`.

Authenticated with the X-API-Key header.

Loading parameters and examples...

List the Engagement Agent's leads

GET/api/v1/agent/leads

Agent Leads: the people the agent's sources captured, one row per person. Agent Leads is RANKED, one row per person: the job title must match (it gates); everything else lowers the ICP % (title 40, country 30, industry 15, company size 15; a part enrichment could not fill earns half; parts left empty are not counted), from 40 to 100. Each person's signal is extra_strong (engaged twice or more), strong (a comment on a post about the topics, a comment on a lead-magnet post, or a 100% ICP match on a post about the topics), medium (any other engagement) or weak (only an engagement with a hiring post or personal news). Ranked by ICP %, then signal, then newest: exactly the dashboard's Agent Leads table, built by the same code. `checked` is everyone the sources captured, which is what the team paid for; `total` is how many show. `firstRun.done` is false while the first run is still going. `filters` narrows the list as the table's Filters button does. Leads of a source the agent later stopped are kept and listed. Reads the newest 5,000 captured leads.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Send Agent Leads to the agent's webhook

POST/api/v1/agent/push

The dashboard's "Push historic leads": without `leadIds`, every Agent Lead that passes the webhook's own filters; with them, those leads. Each is marked for delivery and sent as one signed POST, retried like the team's other webhooks, from the agent's sources that carry its URL. A lead already sent or on its way is not sent again. New leads go by themselves while the webhook's autoSend is on. Charges no credits.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Integrations

Read the HeyReach connection

GET/api/v1/integrations/heyreach

Whether the team has connected HeyReach, when, whether HeyReach has since rejected the key (`keyRejected`: auto-push waits until the key is reconnected on the dashboard's Integrations page), and every auto-push rule with its state. Connecting a key is dashboard-only, like API keys: the API never takes, returns or logs one. Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

List HeyReach campaigns that can take leads

GET/api/v1/integrations/heyreach/campaigns

The team's HeyReach campaigns that leads can join, read live from HeyReach with the team's stored key: in progress, paused, draft, scheduled or starting (finished, canceled and failed ones are left out). `canTakeLeads` is false for a campaign with no LinkedIn sender yet. Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Send leads to a HeyReach campaign

POST/api/v1/integrations/heyreach/send

Add leads to a HeyReach campaign, where its LinkedIn outreach starts. Send `leadIds` (from GET /api/v1/leads or /api/v1/agent/leads; with `agentId` each Agent Lead also carries its ICP % and signal) or `people` (influencers found by Discover, which have no lead row: their profile URL, name, title, company and country are sent as given), at most 1,000 a call. Only ENRICHED leads are sent; a lead with no LinkedIn profile URL is skipped (`skippedNoLinkedin`); a person is never sent twice to the same campaign (`alreadyInCampaign`); a paused campaign is never resumed, and a finished one is never restarted. HeyReach receives name, job title, company, country, work email (when found), the LinkedIn profile URL and the headline (as `summary`), plus custom fields `icp_percent`, `signal`, `engaged_post_url`, `comment_text` and `source_name` where known. Charges no credits.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read a source's HeyReach auto-push, by source id

GET/api/v1/sources/{id}/heyreach

The HeyReach auto-push of any tracked source (person, company page, tracked post or keyword search): the campaign its new leads go to, whether new leads go automatically, its filter rows and whether the worker has paused it. `heyreach` is null when the source has none. An agent's auto-push is `heyreach` on GET /api/v1/agent. Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Set a source's HeyReach auto-push, by source id

PUT/api/v1/sources/{id}/heyreach

Send a source's new leads to a HeyReach campaign automatically. `autoSend` (default true) sends each new lead that passes `filters` once it is enriched, from the moment it is switched on; `pushHistoric: true` also sends the leads already found that pass the filters, once. The filters are the leads tables' Filters rows; a source's leads have no ICP %, signal or engagement count, so those columns are refused (they are the Engagement Agent's ranking). The campaign must exist and be able to take leads. A body of `null`, or `{ "campaignId": null }`, removes the auto-push and drops leads still queued for it. The worker pauses an auto-push when HeyReach rejects the key (`invalid_key`) or the campaign can no longer take leads (`campaign_closed`); saving a campaign starts it again. Only ENRICHED leads are sent; a lead with no LinkedIn profile URL is skipped (`skippedNoLinkedin`); a person is never sent twice to the same campaign (`alreadyInCampaign`); a paused campaign is never resumed, and a finished one is never restarted.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read the PlusVibe connection

GET/api/v1/integrations/plusvibe

Whether the team has connected PlusVibe, the PlusVibe workspace leads go to, when, whether PlusVibe has since rejected the key (`keyRejected`: auto-push waits until the key is reconnected on the dashboard's Integrations page), and every auto-push rule with its state. Connecting a key and choosing its workspace is dashboard-only, like API keys: the API never takes, returns or logs one. Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

List PlusVibe campaigns that can take leads

GET/api/v1/integrations/plusvibe/campaigns

The connected PlusVibe workspace's campaigns that leads can join, read live from PlusVibe with the team's stored key: active, paused or draft (completed and archived ones, and subsequences, are left out). Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Send leads to a PlusVibe campaign

POST/api/v1/integrations/plusvibe/send

Add leads to a campaign of the connected PlusVibe workspace, where its cold email sequence starts. Send `leadIds` (from GET /api/v1/leads or /api/v1/agent/leads; with `agentId` each Agent Lead also carries its ICP % and signal), at most 1,000 a call. A selected lead with no email of its own goes with the email of another of the same person's leads, when one has it. Only ENRICHED leads are sent; a lead with no email is skipped (`skippedNoEmail`) and marked No email, and auto-push sends it once it has one; a person is never sent twice to the same campaign (`alreadyInCampaign`); a paused campaign is never resumed, and a completed one is never restarted. PlusVibe receives the email, first and last name, company, company website, country, the LinkedIn profile and company page, plus custom variables `job_title`, `headline`, `icp_percent`, `signal`, `engaged_post_url`, `comment_text` and `source_name` where known. PlusVibe's own counts come back as `alreadyInPlusVibe`, `invalidEmail` and `notAdded` (`overPlanLimit` of them over the PlusVibe plan's lead limit). Charges no credits.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read the Engagement Agent's PlusVibe auto-push

GET/api/v1/agent/plusvibe

The campaign new Agent Leads go to, whether new leads go automatically, its filter rows and whether the worker has paused it. `plusvibe` is null when the agent has none. Without `agentId`, the team's agent (its first, as GET /api/v1/agent). Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Set the Engagement Agent's PlusVibe auto-push

PUT/api/v1/agent/plusvibe

Send the agent's new leads to a PlusVibe campaign automatically, each with its ICP % and signal as custom variables. `rule.autoSend` (default true) sends each new Agent Lead that passes `rule.filters` from the moment it is switched on; `rule.pushHistoric: true` also sends the Agent Leads already found that pass the filters, once. `rule: null` removes it and drops leads still queued for it. The worker pauses an auto-push when PlusVibe rejects the key (`invalid_key`) or the campaign can no longer take leads (`campaign_closed`); saving a campaign starts it again. Only ENRICHED leads are sent; a lead with no email is skipped (`skippedNoEmail`) and marked No email, and auto-push sends it once it has one; a person is never sent twice to the same campaign (`alreadyInCampaign`); a paused campaign is never resumed, and a completed one is never restarted.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read a source's PlusVibe auto-push, by source id

GET/api/v1/sources/{id}/plusvibe

The PlusVibe auto-push of any tracked source (person, company page, tracked post or keyword search): the campaign its new leads go to, whether new leads go automatically, its filter rows and whether the worker has paused it. `plusvibe` is null when the source has none. An agent's is GET /api/v1/agent/plusvibe. Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Set a source's PlusVibe auto-push, by source id

PUT/api/v1/sources/{id}/plusvibe

Send a source's new leads to a PlusVibe campaign automatically. `autoSend` (default true) sends each new lead that passes `filters` once it is enriched and has an email (the email waterfall usually finds it after enrichment, and the lead goes then), from the moment it is switched on; `pushHistoric: true` also sends the leads already found that pass the filters, once. The filters are the leads tables' Filters rows; a source's leads have no ICP %, signal or engagement count, so those columns are refused. The campaign must be in the connected workspace and able to take leads. A body of `null`, or `{ "campaignId": null }`, removes the auto-push and drops leads still queued for it. The worker pauses an auto-push when PlusVibe rejects the key (`invalid_key`) or the campaign can no longer take leads (`campaign_closed`); saving a campaign starts it again. Only ENRICHED leads are sent; a lead with no email is skipped (`skippedNoEmail`) and marked No email, and auto-push sends it once it has one; a person is never sent twice to the same campaign (`alreadyInCampaign`); a paused campaign is never resumed, and a completed one is never restarted.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Enrichment

Create a profile enrichment job

POST/api/v1/enrich/profile

Creates an asynchronous job to enrich a personal LinkedIn profile. Each matching lead that is successfully enriched consumes one enrichment credit. Leads already enriched for the tracked profile and failed or empty enrichments are not charged. On completion, the job result includes creditsCharged — the number of enriching credits this call actually consumed (0 when every matching lead was already enriched). When saveTrackedProfile=true, tracking is automatic end to end: Cornersight queues a background sync that fetches the profile's recent posts and captures ALL their engagement (reactions and comments) as leads — no separate posts/reactions/comments calls are needed to collect engagement. The sync is QUEUED, not instant: duration depends on current API load and how many posts and engagements the source has, and leads appear progressively, so an empty lead list shortly after tracking does not mean it failed. The response returns a `syncId` when a sync was queued; poll GET /api/v1/{profile|company}/{username}/sync for its stage and progress. RE-TRACKING A SOURCE THAT HAS ALREADY SYNCED DOES NOT RE-SYNC IT: no sync is queued, the response says so with `syncId: null` and `syncNotQueuedReason`, the settings you sent apply from the next scheduled run (POST /api/v1/sources/{id}/sync syncs it now, charged like any sync), and the job enriches only the profile itself. The same full capture then repeats on the daily sync. The reactions and comments endpoints remain available for immediate, targeted single-page pulls. THE `entityUrn` IN THE RESULT IS A LINKEDIN MEMBER ID (`ACoAA…`), and it is exactly the value `fromPerson` and `mentionsPerson` take on POST /api/v1/keyword/track — pass it bare or wrapped as `urn:li:person:<id>`; both are accepted. ⚠️ DO NOT USE THIS ENDPOINT MERELY TO RESOLVE AN ID: without `saveTrackedProfile` it answers 404 for anyone who is not already one of your leads, and WITH it, it tracks them — a full sync, queued and charged. `GET /api/v1/profile/{username}/urn` resolves any public handle for free instead.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Create a company enrichment job

POST/api/v1/enrich/company

Creates an asynchronous job to enrich a LinkedIn company page. Company enrichment never consumes enriching credits; the completed job result includes creditsCharged: 0. When saveTrackedProfile=true, tracking is automatic end to end: Cornersight queues a background sync that fetches the profile's recent posts and captures ALL their engagement (reactions and comments) as leads — no separate posts/reactions/comments calls are needed to collect engagement. The sync is QUEUED, not instant: duration depends on current API load and how many posts and engagements the source has, and leads appear progressively, so an empty lead list shortly after tracking does not mean it failed. The response returns a `syncId` when a sync was queued; poll GET /api/v1/{profile|company}/{username}/sync for its stage and progress. RE-TRACKING A SOURCE THAT HAS ALREADY SYNCED DOES NOT RE-SYNC IT: no sync is queued, the response says so with `syncId: null` and `syncNotQueuedReason`, the settings you sent apply from the next scheduled run (POST /api/v1/sources/{id}/sync syncs it now, charged like any sync), and the job enriches only the profile itself. The same full capture then repeats on the daily sync. The reactions and comments endpoints remain available for immediate, targeted single-page pulls. On completion the job `result` carries the full firmographic set (industry, employee count and size range, headquarters, description, founded year, follower count, specialties, and a stable company URN) — see the CompanyEnrichmentResult schema. BREAKING (2026-07-18): these fields are now FLAT on `result`, matching profile enrichment; the previous `result.data` envelope and the capital-I `Images` key are gone (`images.logo` now).

Authenticated with the X-API-Key header.

Loading parameters and examples...

Tracked Profiles

Change a tracked person's per-sync credit limit

PATCH/api/v1/profile/{username}

Change a tracked personal profile's PER-SYNC CREDIT LIMIT without re-tracking it. THE EDIT THAT COSTS NOTHING: `creditCapPerSync` otherwise reaches a personal profile only through POST /api/v1/enrich/profile, which also runs an enrichment job — and which, on a source that has already synced, queues NO sync: the setting simply applies from the next scheduled run. This route writes the column and nothing else: no sync is queued, no lead is enriched, nothing is charged. ADDRESSED BY THE SAME USERNAME the DELETE on this path takes, so a caller already holds the identifier. An earlier release put this edit on PATCH /api/v1/sources/{id} instead, keyed by source id; that route is REMOVED in favour of these two, which is a breaking change. AN EDIT BINDS FROM THE NEXT SYNC, NEVER THE ONE ALREADY RUNNING. A run reads the source's limit when it starts and holds it for the whole run, so a cap lowered mid-sweep does not cut that sweep short. Whether the run you are looking at actually ended at the limit is reported by GET /api/v1/profile/{username}/sync as `stoppedBy: "credit_cap"`. NOT A KEYWORD SEARCH'S CAP. `creditCap` is a keyword search's per-RUN limit, it lives on keyword_searches, PATCH /api/v1/keyword/{id} writes it and GET /api/v1/sources reports it as `config.creditCap`. The two fields shared the name `creditCap` until this release; they no longer do, and there is no alias — a body still sending `creditCap` here is a 400 carrying `code: "renamed_field"` rather than a 200 that discarded it. AT LEAST ONE SETTING IS REQUIRED: `creditCapPerSync` (which may be null), `mode`, `captureReplies` or `enrichLeads`. Absent means "leave it alone" everywhere else in this API, and a request that changes nothing cannot honestly be answered 200 — so a body naming none of them is a 400, and `null` is the value that REMOVES a limit. `enrichLeads: false` puts the source in RAW MODE (captured and charged as before, never enriched, read with GET /api/v1/leads/raw); like the cap it is an edit that queues nothing, charges nothing and needs no `confirmSpend`, and it applies to leads captured after it. THE MODE CAN BE CHANGED HERE TOO: `mode: "posts_only"` with `postsPerSync` (1-60) makes the source a posts-only watch (new posts only, one credit per new post, no leads), and `mode: "engagers"` turns it back into the engagers sweep. Switching posts-only to engagers can raise the cost, so it is refused 409 `spend_confirmation_required` until the request is re-sent with `confirmSpend: true`; switching to posts-only never needs it. A `mode` change whose current mode cannot be read is a 502 and changes nothing. UNKNOWN FIELDS ARE REFUSED: any other property is a 400 carrying `code: "unknown_field"` and naming it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Untrack a profile

DELETE/api/v1/profile/{username}

Stop tracking a personal LinkedIn profile. Synchronous. SOFT DELETE, the same contract as untracking a post or a keyword search: the source is DEACTIVATED (`status: "inactive"`), never removed, and nothing it captured is destroyed. It cannot be a row delete — `leads.tracked_profile_id` is `NOT NULL ... ON DELETE CASCADE`, so deleting the source would take every lead it captured with it, which is exactly the data loss this endpoint stopped causing. ACCESS IS A SEPARATE QUESTION FROM STORAGE, and this endpoint answers both differently: nothing is erased, but the leads it captured STOP BEING SERVED — GET /api/v1/leads and GET /api/v1/engagers exclude them from the all-sources view and return `404` for its `profileId`/`username`, exactly as the dashboard, its stat cards and its CSV export do, and the source stops being actionable (POST /api/v1/profile/{username}/push and its `/webhook` and `/icp` routes all `404`). `GET /api/v1/sources?includeInactive=true` enumerates what you used to track; that call lists the source and does not serve its leads. THE LEADS HAVE THEIR OWN OPT-IN: pass the same parameter to the endpoints that serve them — `GET /api/v1/leads?includeInactive=true` and `GET /api/v1/engagers?includeInactive=true` — and the kept leads are returned and this `username`/`profileId` resolves instead of 404ing. It is an API-only opt-in and the default is unchanged, so the dashboard, its stat cards and its CSV export still show nothing for this source. Reactivating does: re-tracking the same username revives the source and its leads are read again. A `404` here means out of scope for that read, never that anything was erased — erasure is a support request, not an API call. Keyword searches are the one kind whose leads stay readable after untracking; see DELETE /api/v1/keyword/{id}. The sweep stops, the source leaves GET /api/v1/sources unless you pass `?includeInactive=true`, and re-tracking the same username REVIVES that source rather than creating a second one. Credits already spent are never refunded. Scoped to the authenticated team; a profile the team does not track returns `404`. Trial profiles cannot be deleted (`403`) — subscribe to a paid plan to manage profiles. WHAT HAPPENS TO WORK THAT IS ALREADY RUNNING — the half this used to leave unsaid, and the half that costs money. A SWEEP ALREADY RUNNING IS STOPPED: the run asks whether its source is still tracked at every checkpoint it passes (before each provider call, before each post is harvested, before each chunk of lead rows) and abandons the run at the first checkpoint after the delete. THAT IS “AT THE NEXT CHECKPOINT”, NOT “INSTANTLY”: a provider call already in flight finishes first, and the check is coalesced behind a short window (one second by default), so expect the stop within moments rather than at the instant the delete returns. If the status read itself fails the run CARRIES ON to the next checkpoint — the control channel fails open on purpose, because abandoning a paying customer's sweep over one timed-out SELECT is the worse error. LEADS ALREADY WRITTEN ARE KEPT, and the run is finalised as `completed` with `stoppedBy: "untracked"` on GET /api/v1/sources/{id}/sync (and the username-keyed /sync routes). ⚠️ THAT VALUE IS NOT IN `lastRun.stoppedBy` on GET /api/v1/sources and never will be: that enum describes how a keyword SWEEP ended and is a closed set. QUEUED ENRICHMENT IS WRITTEN OFF AND NOT CHARGED: enrichment lands minutes to hours after capture, so the backlog is the part of an untracked source that would otherwise go on billing — every lead of this source still `pending` or `processing` is marked `skipped` with the reason `source_untracked` and costs no enriching credits. Re-tracking this source returns exactly those leads to `pending` at the start of its next sync, and returns no other skipped lead with it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Change a tracked company page's per-sync credit limit

PATCH/api/v1/company/{username}

Change a tracked company page's PER-SYNC CREDIT LIMIT without re-tracking it. THE EDIT THAT COSTS NOTHING: `creditCapPerSync` otherwise reaches a company page only through POST /api/v1/enrich/company, which also runs an enrichment job — and which, on a source that has already synced, queues NO sync: the setting simply applies from the next scheduled run. This route writes the column and nothing else: no sync is queued, no lead is enriched, nothing is charged. ADDRESSED BY THE SAME USERNAME the DELETE on this path takes, so a caller already holds the identifier. An earlier release put this edit on PATCH /api/v1/sources/{id} instead, keyed by source id; that route is REMOVED in favour of these two, which is a breaking change. AN EDIT BINDS FROM THE NEXT SYNC, NEVER THE ONE ALREADY RUNNING. A run reads the source's limit when it starts and holds it for the whole run, so a cap lowered mid-sweep does not cut that sweep short. Whether the run you are looking at actually ended at the limit is reported by GET /api/v1/company/{username}/sync as `stoppedBy: "credit_cap"`. NOT A KEYWORD SEARCH'S CAP. `creditCap` is a keyword search's per-RUN limit, it lives on keyword_searches, PATCH /api/v1/keyword/{id} writes it and GET /api/v1/sources reports it as `config.creditCap`. The two fields shared the name `creditCap` until this release; they no longer do, and there is no alias — a body still sending `creditCap` here is a 400 carrying `code: "renamed_field"` rather than a 200 that discarded it. AT LEAST ONE SETTING IS REQUIRED: `creditCapPerSync` (which may be null), `mode`, `captureReplies` or `enrichLeads`. Absent means "leave it alone" everywhere else in this API, and a request that changes nothing cannot honestly be answered 200 — so a body naming none of them is a 400, and `null` is the value that REMOVES a limit. `enrichLeads: false` puts the source in RAW MODE (captured and charged as before, never enriched, read with GET /api/v1/leads/raw); like the cap it is an edit that queues nothing, charges nothing and needs no `confirmSpend`, and it applies to leads captured after it. THE MODE CAN BE CHANGED HERE TOO: `mode: "posts_only"` with `postsPerSync` (1-60) makes the source a posts-only watch (new posts only, one credit per new post, no leads), and `mode: "engagers"` turns it back into the engagers sweep. Switching posts-only to engagers can raise the cost, so it is refused 409 `spend_confirmation_required` until the request is re-sent with `confirmSpend: true`; switching to posts-only never needs it. A `mode` change whose current mode cannot be read is a 502 and changes nothing. UNKNOWN FIELDS ARE REFUSED: any other property is a 400 carrying `code: "unknown_field"` and naming it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Untrack a company page

DELETE/api/v1/company/{username}

Stop tracking a LinkedIn company page. Synchronous. SOFT DELETE, the same contract as untracking a profile, a post or a keyword search: the source is DEACTIVATED (`status: "inactive"`), never removed, and nothing it captured is destroyed — `leads.tracked_profile_id` is `NOT NULL ... ON DELETE CASCADE`, so a row delete would take the captured leads with it. ACCESS IS A SEPARATE QUESTION FROM STORAGE, and this endpoint answers both differently: nothing is erased, but the leads it captured STOP BEING SERVED — GET /api/v1/leads and GET /api/v1/engagers exclude them from the all-sources view and return `404` for its `profileId`/`username`, exactly as the dashboard, its stat cards and its CSV export do, and the source stops being actionable (POST /api/v1/company/{username}/push and its `/webhook` and `/icp` routes all `404`). `GET /api/v1/sources?includeInactive=true` enumerates what you used to track; that call lists the source and does not serve its leads. THE LEADS HAVE THEIR OWN OPT-IN: pass the same parameter to the endpoints that serve them — `GET /api/v1/leads?includeInactive=true` and `GET /api/v1/engagers?includeInactive=true` — and the kept leads are returned and this `username`/`profileId` resolves instead of 404ing. It is an API-only opt-in and the default is unchanged, so the dashboard, its stat cards and its CSV export still show nothing for this source. Reactivating does: re-tracking the same username revives the source and its leads are read again. A `404` here means out of scope for that read, never that anything was erased — erasure is a support request, not an API call. Keyword searches are the one kind whose leads stay readable after untracking; see DELETE /api/v1/keyword/{id}. The sweep stops, the source leaves GET /api/v1/sources unless you pass `?includeInactive=true`, and re-tracking the same username REVIVES it. Credits already spent are never refunded. Scoped to the authenticated team; a company page the team does not track returns `404`. Trial profiles cannot be deleted (`403`) — subscribe to a paid plan to manage profiles. WHAT HAPPENS TO WORK THAT IS ALREADY RUNNING — the half this used to leave unsaid, and the half that costs money. A SWEEP ALREADY RUNNING IS STOPPED: the run asks whether its source is still tracked at every checkpoint it passes (before each provider call, before each post is harvested, before each chunk of lead rows) and abandons the run at the first checkpoint after the delete. THAT IS “AT THE NEXT CHECKPOINT”, NOT “INSTANTLY”: a provider call already in flight finishes first, and the check is coalesced behind a short window (one second by default), so expect the stop within moments rather than at the instant the delete returns. If the status read itself fails the run CARRIES ON to the next checkpoint — the control channel fails open on purpose, because abandoning a paying customer's sweep over one timed-out SELECT is the worse error. LEADS ALREADY WRITTEN ARE KEPT, and the run is finalised as `completed` with `stoppedBy: "untracked"` on GET /api/v1/sources/{id}/sync (and the username-keyed /sync routes). ⚠️ THAT VALUE IS NOT IN `lastRun.stoppedBy` on GET /api/v1/sources and never will be: that enum describes how a keyword SWEEP ended and is a closed set. QUEUED ENRICHMENT IS WRITTEN OFF AND NOT CHARGED: enrichment lands minutes to hours after capture, so the backlog is the part of an untracked source that would otherwise go on billing — every lead of this source still `pending` or `processing` is marked `skipped` with the reason `source_untracked` and costs no enriching credits. Re-tracking this source returns exactly those leads to `pending` at the start of its next sync, and returns no other skipped lead with it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Track a LinkedIn post

POST/api/v1/post/track

Creates a tracked POST source for the authenticated team and queues its first engagement capture. Synchronous, unlike the engagement job endpoints: the permalink is resolved against LinkedIn before anything is stored, so the call returns either a verified source or an error, never a source that cannot capture. Tracked posts have their own trial ceiling, separate from tracked profiles — a trial team may hold both. Re-tracking a post the team already has never creates a second source: an active source keeps its URL and applies any named captureReplies or creditCapPerSync setting without another capture, while an untracked source is reactivated — which queues a fresh capture and therefore charges. The status is `201` either way. A re-track of a post that has ALREADY SYNCED queues nothing and says so — `syncId: null` beside `syncNotQueuedReason` (POST /api/v1/sources/{id}/sync syncs it now) — and otherwise the body does not distinguish a duplicate from a genuine create, so re-read GET /api/v1/sources if you need to know which happened. (POST /api/v1/keyword/track, whose identity is its keywords rather than a URN, answers the same case with `200` and `resumed: true`.) WHAT YOU CAN DO WITH A TRACKED POST FROM THIS API: it is listed by GET /api/v1/sources (filter ?type=post), its engagers are returned by GET /api/v1/leads like any other source's, and it is removed by DELETE /api/v1/post/{urn}. ITS SYNC STATUS, WEBHOOK AND ICP CONFIG ARE AT /api/v1/sources/{id}/sync, /webhook and /icp — addressed by the SOURCE ID this response's source carries and GET /api/v1/sources lists, not by the URN. Use the `syncId` above with GET /api/v1/sources/{id}/sync (the source id, not the syncId) to follow the capture you just queued. The per-kind routes cannot take a post: /api/v1/{profile|company}/{username}/sync, /webhook and /icp are keyed by a LinkedIn username and a post's identifier is an activity URN, which is why these were dashboard-only until the source-id family existed. Nothing about the post source was ever the limitation — it syncs, delivers to a webhook and is ICP-filtered exactly like any other source. Capture depth follows how far LinkedIn pages a post's reactions. GET /api/v1/sources/{id}/sync reports `capture.coverage` with the declared and captured counts side by side, and `capture.stoppedBy` (the same at the top level) is `exhausted` when everything served was captured or `provider_limit` when the provider stopped serving with a page or more still declared. `400` means the URL can never work and the message says what to paste instead. `503` with code `post_resolve_failed` means the post could not be verified right now and the request is worth retrying; no source is created in either case.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Untrack a LinkedIn post

DELETE/api/v1/post/{urn}

Stop tracking a post and stop capturing its engagement. The delete half of the pair with POST /api/v1/post/track. Synchronous. SOFT DELETE, like untracking a profile: the source is deactivated, never removed, because leads reference it and a row delete would cascade the captured leads away with it. The post stops syncing and leaves the tracked-source list. Its captured leads are RETAINED in your account but stop being SERVED: GET /api/v1/leads excludes an untracked post's leads from the all-sources view and returns 404 for its id BY DEFAULT, which is what the dashboard shows too. `GET /api/v1/sources?includeInactive=true` still lists the post, with `status: "inactive"` — and `GET /api/v1/leads?includeInactive=true` / `GET /api/v1/engagers?includeInactive=true` read the kept leads back and make that id resolve. That opt-in exists on the API only; the dashboard has no equivalent switch, so its own view is unchanged. Keyword searches are the one kind whose leads stay readable after untracking — see DELETE /api/v1/keyword/{id}. Untracking a post that is already untracked returns `404`. Identify the post by the URN that GET /api/v1/sources returns for it (`urn:li:activity:…` or `urn:li:ugcPost:…`) — the same value POST /api/v1/post/track echoes back as `postUrn`. The colons are legal in a path segment, so both the raw and percent-encoded forms work. A tracked post's sync status, webhook config and ICP config are reached by its SOURCE ID at /api/v1/sources/{id}/sync, /webhook and /icp — not by this URN; see POST /api/v1/post/track. `403` for a post tracked during a free trial: trial sources cannot be deleted on any surface, the dashboard included, until the team subscribes. WHAT HAPPENS TO WORK THAT IS ALREADY RUNNING — the half this used to leave unsaid, and the half that costs money. A SWEEP ALREADY RUNNING IS STOPPED: the run asks whether its source is still tracked at every checkpoint it passes (before each provider call, before each post is harvested, before each chunk of lead rows) and abandons the run at the first checkpoint after the delete. THAT IS “AT THE NEXT CHECKPOINT”, NOT “INSTANTLY”: a provider call already in flight finishes first, and the check is coalesced behind a short window (one second by default), so expect the stop within moments rather than at the instant the delete returns. If the status read itself fails the run CARRIES ON to the next checkpoint — the control channel fails open on purpose, because abandoning a paying customer's sweep over one timed-out SELECT is the worse error. LEADS ALREADY WRITTEN ARE KEPT, and the run is finalised as `completed` with `stoppedBy: "untracked"` on GET /api/v1/sources/{id}/sync (and the username-keyed /sync routes). ⚠️ THAT VALUE IS NOT IN `lastRun.stoppedBy` on GET /api/v1/sources and never will be: that enum describes how a keyword SWEEP ended and is a closed set. QUEUED ENRICHMENT IS WRITTEN OFF AND NOT CHARGED: enrichment lands minutes to hours after capture, so the backlog is the part of an untracked source that would otherwise go on billing — every lead of this source still `pending` or `processing` is marked `skipped` with the reason `source_untracked` and costs no enriching credits. Re-tracking this source returns exactly those leads to `pending` at the start of its next sync, and returns no other skipped lead with it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Estimate a keyword search (dry run)

POST/api/v1/keyword/estimate

PRICES A KEYWORD SEARCH WITHOUT CREATING IT — the call to make BEFORE POST /api/v1/keyword/track. WHY IT EXISTS. The 409 `spend_confirmation_required` already carries the estimate, and it is a workable way to obtain one — but it makes "show me the cost" AN ERROR PATH. A CLI has to print a refusal in order to answer a question, and an agent written the ordinary way treats every non-2xx as a failure and never reads the body: the MCP layer collapses a failed tool result to `{ statusCode, error }`, so the numbers in that 409 reach no agent at all. This answers 200 with the same object, so they do. The 409 is unchanged and remains the ENFORCEMENT; this is the intended first call. IT CREATES NOTHING, RESUMES NOTHING AND CHARGES NOTHING. No source row, no search row, no status change on a search you already have, no queued sweep, no credit. It performs two reads and returns. THE SAME BODY AS THE CREATE, WITH THE SAME 400s. Every field POST /api/v1/keyword/track accepts is accepted here and validated by the same code in the same order, so a body this endpoint prices is a body that endpoint would accept. An estimate that accepted what the create refuses would be answering a question about a search that cannot exist. THE CONTRACT'S TWO GATES DO NOT APPLY HERE, deliberately. `scope_required` and `spend_confirmation_required` are about authorising a recurring charge, and this endpoint creates none — so the three scope fields are OPTIONAL here even after the cut-over, and `confirmSpend` is accepted (validated for shape, as everywhere) and does nothing. Requiring them would mean choosing the scope in order to be told what the scope costs, which is the question. The caps are still RESOLVED exactly as the create resolves them — sent wins, omitted inherits from the live search, else the create-time default — which is what makes this `estimatedDailyMax` and the subsequent 201's the same number. RESUMED. `resumed: true` means these terms already name a search this team has (ACTIVE or one you DELETED), so the create that follows would return THAT search, apply the settings you named and leave the rest alone — and, if it had been deleted, track it again and queue a charging sweep within seconds. `previous` then carries that search's CURRENT caps beside the requested ones, under the same key and with the same meaning the 409 gives it. THE FORMULA behind `estimatedDailyMax` and `daysToExhaustAtCap` is written out once, on POST /api/v1/keyword/track. Both keys are OMITTED here, never null and never 0, when there is no honest number — test for the KEY.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Track a keyword search

POST/api/v1/keyword/track

Creates a KEYWORD SEARCH: a recurring sweep that finds LinkedIn posts by ONE OR MORE keywords (up to ten), optionally filters them with your own AI model against a criterion you write, and captures the engagers of the survivors as leads — or, with `capturePostAuthors: true`, the person who WROTE each surviving post as an `Author` lead, beside the engagers or (`captureEngagers: false`) instead of them. An author is charged like an engager: one credit per NEW person for the search, repeats free, company-page authors skipped and never charged. It becomes a tracked source like a profile or a post — listed by GET /api/v1/sources with type `keyword`, its leads returned by GET /api/v1/leads. SYNCHRONOUS, and unlike POST /api/v1/post/track there is nothing to verify: a post must be resolved against LinkedIn before it can be stored, but a keyword search performs no provider call at creation — the sweep happens later. This returns the created source, not a jobId. The first sweep is queued immediately; poll its progress with GET /api/v1/{profile|company}/{username}/sync's sibling on the dashboard, or simply read the leads as they arrive. THE AI KEY IS NOT ACCEPTED BY THIS ENDPOINT and cannot be supplied through this API at all. Save it once in the dashboard's AI Post Filter panel, on Keyword Engagement — the same panel that sets the provider and prompt. It is held in an encrypted vault, one key per provider per team, and never returned by any endpoint; the panel lists which providers your team has a key for so you can confirm one is stored. `aiProvider` only names WHICH stored key to use. A search whose provider has no saved key fails at run time with a clear reason rather than at creation. THE AI FILTER RUNS ON YOUR KEY AND IS BILLED BY YOUR PROVIDER, NOT BY CORNERSIGHT, and nothing you set here caps it except the run itself: every post a run scans is sent to your model — up to 2,000 posts in each run, 10 to a call (about 200 calls), or one call per post when the model's batch answer cannot be read — and a post already judged under the same prompt is never sent again. `creditCap` bounds Cornersight credits only. EACH TERM IS ONE PROVIDER CALL per run, merged and deduplicated by post URN. The run's scan — at most 2,000 posts, an internal safety bound and not a setting — is shared across the terms and allocated round-robin, so one high-volume term cannot crowd out the others, and a term that exhausts early yields its share. Keyword searches have their own trial ceiling, separate from profiles and posts. Remove one with DELETE /api/v1/keyword/{id}. ⚠️ THE CUT-OVER IS SCHEDULED FOR 2026-11-01, AND THIS IS THE NOTICE OF IT. UNTIL 2026-11-01 an old-style create — one that omits the three scope fields and `confirmSpend` — still returns 201/200 and carries a `deprecations` entry naming exactly what to add. FROM 2026-11-01 the same request is refused: a missing scope field is `400` `scope_required` naming the field, and a scope that is stated but not confirmed is `409` `spend_confirmation_required` — the same refusal a request pinned to `contractVersion: "2026-11-01"` already gets today, which is how you test the new behaviour before the date. THE EXACT CHANGE IS FOUR KEYS: add "creditCap": 100, "captureMode": "depth", "datePosted": "PAST_WEEK" and "confirmSpend": true to the request body. Those three values are what the dashboard's "Search scope" step pre-fills, offered so you can copy them DELIBERATELY — they are NOT server-side defaults and nothing is chosen for you, so send the caps you actually want, and send `confirmSpend` only once the person has heard the daily figure. THE VERSION STRING AND THE CUT-OVER DATE ARE THE SAME DAY, which they did not have to be: the version is what you PIN, the date is what happens to you if you do not. IT RUNS EVERY DAY, AND CHARGES EVERY DAY. This is not a one-off search: once created, the sweep repeats roughly every 24 hours until you untrack it, and `creditCap` is PER RUN, not a total for the life of the search. The first sweep starts within seconds of creation, not a day later, and the daily cadence runs from there. CREATED, OR THE ONE YOU ALREADY HAVE: a keyword search's identity is its joined terms, so creating one whose keywords match a search this team already has — whether that search is ACTIVE or one you DELETED — returns THAT search instead of making a second one. The response is 200 with `resumed: true` rather than 201, and `seenPosts` says how many posts it has already swept and will therefore SKIP; a genuine create returns 201 with `resumed: false` and `seenPosts: 0`. THE SETTINGS YOU SEND ARE APPLIED TO THAT SEARCH AND THE ONES YOU OMIT ARE LEFT AS THEY ARE, so a bare `{"keywords": [...]}` returns it unchanged rather than resetting its name, its AI filter and its caps to the defaults; send an explicit `null` to clear a field. For the same reason `name` and `aiProvider` in the response are the search's CURRENT values, not an echo of what you sent. RESUMING A DELETED SEARCH ALSO TRACKS IT AGAIN and queues a sweep within seconds, which charges — if you did not mean to bring it back, untrack it again with DELETE /api/v1/keyword/{id}. A `creditCap` of 2000 means up to 2000 enriching credits EVERY DAY, not 2000 once. Set the caps to what one day may cost, and remove the search with DELETE /api/v1/keyword/{id} when you no longer want it running. Each run sweeps only posts it has not captured before — a post captured once is never re-swept, so successive runs return new people rather than re-charging for the same ones. ONE LIMIT: `creditCap`. It is the only limit you set on a search that captures people, and a run ends when it has spent it, when the provider has no new posts, or on the walk's safety bound (20 provider pages per term, and at most 2,000 posts scanned in one run) — never because a post count was reached. A credit is charged per NEW PERSON for this source, not per post or repeat engagement, so one post with 300 distinct new people can cost up to 300 credits. A `posts_only` search captures no people and has one number, `creditCap` (1 to 2000): one credit buys one new kept post, so it is also the most new posts the search keeps in a day (`postsPerSync` is its older name). The retired per-run post limit, `postBudget`, is accepted and IGNORED if you still send it (since 30 September 2026), and the reply lists it in `ignoredFields`. WHAT ONE DAY CAN COST, AS A FORMULA — THE ONE PLACE IT IS WRITTEN DOWN. Every surface that quotes a spend estimate computes it the same way, from one shared function: `estimatedDailyMax = creditCap` for a search that captures people — with or without post authors — and `estimatedDailyMax = min(postsPerSync, creditCap)` for a `posts_only` search, which buys at most `postsPerSync` new posts a day at one credit each. Since 14 November 2026 a `posts_only` search's `postsPerSync` is written from its `creditCap`, so the figure is its `creditCap`. POST /api/v1/keyword/estimate, this endpoint's 201/200 and its 409, and PATCH /api/v1/keyword/{id} all quote that one figure. The fields that look like they belong in it are deliberately not in it. `captureMode` is not, because `depth` and `breadth` only choose how the cap is SPREAD across a run's posts, and both stop at the same cap. `maxEngagementsPerPost` is not, and that is the one that surprises: the per-post ceiling times the posts a run reaches is often what a run actually spends, but it is not a limit we can promise — a post whose engagement counts the provider did not return is allocated the whole remaining cap, so a run with a low per-post ceiling can still spend the full `creditCap`. The estimate is therefore the most a day can cost, never the least: an estimate that came in under what you are charged would be worse than no estimate at all. When `creditCap` is absent, zero, negative or not a whole number there is NO estimate, rather than an estimate of zero. Against your team's remaining enriching-credit balance the same calculation gives `daysToExhaustAtCap = floor(balance / estimatedDailyMax)`: WHOLE days at that rate, so a balance of 250 against a cap of 100 is 2 and not 3, and any balance below the cap is 0 — the very first sweep is the one that gets cut short. With no usable cap there is no rate to divide by, so `daysToExhaustAtCap` is absent too: never zero, never infinite. BOTH FIGURES ARE RETURNED, not merely documented: this endpoint carries `estimatedDailyMax` and `daysToExhaustAtCap` beside the created search on the 201 AND on the 200 resume, computed from the caps that will actually bind the next run, and GET /api/v1/sources carries the same two inside a keyword source's `config`, so a search created on any surface can be read back. Each is OMITTED rather than zeroed whenever it has no honest value — test for the key, not for a number. WHY A RUN STOPPED, AND WHAT IT DID, is reported by GET /api/v1/sources on the source's `lastRun` object, which carries seventeen fields answering four questions. WHEN AND WHY IT ENDED: `at`, `stoppedBy` (the category), `reason` (the sentence behind it — for `ai_error` a sentence Cornersight owns, not the provider's raw response) and `aiErrorCode`, present only on an `ai_error`, which is the stable token to branch on: `model_not_found`, `invalid_key`, `rate_limited`, `out_of_credit` (the provider account behind the key has no credit: add credit with the provider, do not rotate the key) or `provider_error` — and `provider_error` is the provider's own outage, never a reason to tell someone to rotate a working key. WHAT THE PROVIDER RETURNED BUT CORNERSIGHT COULD NOT SAFELY CAPTURE: `providerPageLimitReached` records whether the 20-page safety bound ended a term before exhaustion was proven; `providerRowsDropped` counts provider result rows skipped because they lacked a capturable activity URN; the walk continues past those pages instead of ending early. It is rows across terms/pages, not necessarily unique posts, and is omitted for unmeasured runs. HOW MUCH IT LOOKED AT: `postsScanned` → `postsKept` is the AI filter's before/after, while `postsHarvested` is how far the run actually REACHED, which can be far below `postsKept` when a cap stopped it early. AND `discardedByExpression` — and `postsFilteredOut`, the same number under its older name — is how many harvested posts the run's TEXT FILTER discarded before anything was spent on them: on EVERY keyword search, plain lists included, the posts whose own text mentions none of the search's terms, plus, on a search built from an `expression`, the posts that failed its AND/NOT terms or quoted phrases. The run summary reads searched `postsScanned`, discarded `discardedByExpression`, kept `postsKept`. Both are PRESENT AND 0 when the filter discarded nothing and OMITTED only on a run that stopped before applying it, or that predates them (before 13 October 2026 a plain keyword list had no text filter and the keys were absent), which is the distinction between a search whose terms or expression the posts did not match (`postsHarvested: 0` beside `discardedByExpression: 47`) and a search that simply found nothing (the keys absent). A discarded post IS counted in `postsScanned` and NOT in `postsKept`, and GET /api/v1/sources/{id}/kept-posts?include=swept names each one with the clause it failed. WHAT BECAME OF THE PEOPLE, which is how a run that yielded almost nothing is diagnosed: `engagersSeen` is the denominator, `engagersDropped` counts engagers seen but not turned into leads — since 2026-09-08 that no longer means 'had no public handle', because those are now captured under their member URN; what is left is an engager with no identity at all, plus organisation pages, which were never leads, `engagersDuplicate` includes already-stored rows and free repeat engagements, `repeatEngagements` counts the latter subset, `leadsWritten` is inserted engagement rows, and `creditsSpent` counts newly charged people under the name that says what it cost — one credit is one newly chargeable person per source. The five capture counters are OMITTED, never zeroed, for runs predating them. Each field is documented on GET /api/v1/sources. `lastRun` is `null` for person, company and post sources (they have no sweep of their own) and is ALWAYS an object for a keyword search - with null members until the first run finishes, so "not a keyword source" stays distinguishable from "has not run yet". `stoppedBy` is one of `credits` (reached creditCap - the real spend bound; on a `posts_only` search, the team's remaining credit balance ran out before the search's daily limit), `post_limit` (a `posts_only` search bought its daily limit of posts, its creditCap - for more, raise creditCap with `mode: "posts_only"` and `confirmSpend`), `exhausted` (the provider walk ended without a capture cap; `providerPageLimitReached: true` proves the walk's safety bound fired - 20 pages per term, or 2,000 posts in the run; false only says it did not, because an all-seen RELEVANCE page can also stop before later unseen posts), `error` (the sweep itself failed), `ai_error` (the team's own AI credential failed - the search is otherwise fine) or `capture_empty` (the sweep harvested real posts and every engager fetch answered and returned NOBODY - a CAPTURE failure, never a narrow search; a run that harvested nothing is a clean `exhausted` instead) - and `budget` only on a run from before 30 September 2026, when a per-run post limit existed that has since been retired. The difference that matters most: `credits` and `post_limit` mean a capture cap ended the run; `exhausted` means the provider walk ended without one. `providerPageLimitReached: true` proves the page bound fired; false only says it did not, because an all-seen RELEVANCE page can also stop before later unseen posts. WHEN AN EDIT TAKES EFFECT: FROM THE NEXT RUN, NEVER THE ONE ALREADY RUNNING. A sweep reads the search's configuration ONCE, when it starts, and holds it for the whole run - so settings changed while a sweep is in flight do not re-bind it, and a run that began on the old budgets finishes on them. A change made BEFORE the sweep starts does bind that run, including one made after its job was queued: the worker reads the configuration when it picks the job up, not when the job was created. That is why a run's counts can look like a cap overrun and not be one - read `lastRun.config` on GET /api/v1/sources, which is the snapshot of what THAT run was bound by, against `config`, which is what the search is set to now and what its next run will use. `lastRun.config` is omitted for runs that predate it and is never back-filled from the current settings. ON A TRIAL a team may hold at most 2 keyword searches, and each captures at most 250 leads.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Update a keyword search's settings

PATCH/api/v1/keyword/{id}

Change a live keyword search's settings — its caps, its scope, its AI filter and its provider-side targeting — without re-creating it. WHY IT EXISTS. Until now the only way to re-cap a live search from outside the dashboard was to call POST /api/v1/keyword/track again with the same keywords, which RESUMES the search and applies whatever settings the call carries. That works, but it makes "raise the cap on my live search" and "create a search" the same request. This is the request that says which. Partial update: only the fields present in the body change, an omitted one is left exactly as it is, and an explicit `null` clears it — to null on a nullable column, and to the create-time default on a NOT NULL one (`creditCap` 100, `captureMode` depth, `sort` DATE_POSTED, `datePosted` PAST_WEEK), which is the only coherent reading of "clear" for those. ⚠️ A CHANGE THAT RAISES WHAT ONE DAY CAN COST NEEDS `"confirmSpend": true` — that figure is `estimatedDailyMax`: `creditCap` on a search that captures people, `creditCap` on a `posts_only` search too, where it is also the posts a day (`postsPerSync` is its older name and moves the same number) — and is otherwise a `409` `spend_confirmation_required` whose message names the search and the new daily cap, carrying `previous` (the caps the search holds now), the resulting `creditCap`/`captureMode`/`datePosted`, `raised` (which setting pushed the figure up: `creditCap`), `estimatedDailyMax`, `remainingBalance` and `daysToExhaustAtCap` — the same numbers the dashboard puts above its Confirm button, and the same 409 shape POST /api/v1/keyword/track returns. NOTHING WAS CHANGED; re-send the identical request with `"confirmSpend": true` to authorise it, and do not shrink the cap to get past the refusal. LOWERING a cap, leaving it alone, or changing anything else needs no confirmation, because none of those increases what a day can cost. The rule is NOT tied to the spend contract's cut-over date: it applies today, on this endpoint and on a resume alike. WHEN IT TAKES EFFECT: FROM THE NEXT RUN. A sweep reads its settings once, when it starts, so a run already in flight finishes on the caps it began with — read `lastRun.config` on GET /api/v1/sources for what the last run was actually bound by, and `config` for what the next one will use. An edit made before the sweep starts, including after its job is queued, does bind that run. THE KEYWORDS ARE EDITABLE HERE: send `keywords` (or the deprecated single `keyword`) OR `expression`, never both, with exactly the rules POST /api/v1/keyword/track applies — the same bounds, the same compiler, the same 400s. Omit both to leave the terms alone. Changing them needs no `confirmSpend`: the terms decide WHICH posts a run looks at, never `creditCap`. WHAT AN EDIT DOES TO WHAT THE SEARCH HAS ALREADY SEEN: posts it captured or its AI filter judged stay seen and are never re-processed or re-charged; posts that were seen only because the OLD terms' text filter discarded them (an expression or phrase failure, or a post that mentioned none of the old terms) are forgotten, so the new terms can find them — the reply's `forgottenSeenPosts` says how many. A search whose `name` you never set is renamed to its new terms; one you named keeps its name. NEW TERMS MAY MATCH ANOTHER SEARCH'S: if a search you DELETED holds them, it is moved aside (its leads and settings are kept, and POST /api/v1/keyword/track with those terms then resumes THIS search); if a LIVE or paused search holds them, both keep running, and POST /api/v1/keyword/track with those terms resumes the one that held them first. `username` always reports a search's terms. A `409` `keyword_terms_conflict` means another search changed while this one saved — nothing was changed, re-send it; a `503` `keyword_terms_unavailable` means this deployment cannot edit terms yet, and nothing was changed either. Identify the search by the SOURCE `id` GET /api/v1/sources returns — the same id DELETE /api/v1/keyword/{id} takes and POST /api/v1/keyword/track echoes back — never by its keyword text, which is what `username` shows. Mirrored as the CLI's `keyword-update` and MCP's `update_keyword`. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Untrack a keyword search

DELETE/api/v1/keyword/{id}

Stop a keyword search and stop capturing from it. The delete half of the pair with POST /api/v1/keyword/track. Synchronous. SOFT DELETE, like untracking a profile or a post: the source is deactivated, never removed, because leads reference it and a row delete would cascade the captured leads away. Sweeping stops and the search leaves the tracked-source list; the leads it already captured are kept and stay listed by GET /api/v1/leads. REACH THEM AFTERWARDS with `GET /api/v1/leads?sourceKind=keyword`, which spans stopped searches as well as running ones, or put the search back in the list with `GET /api/v1/sources?includeInactive=true` — its id still works as a `profileId`. Without one of those two the search is no longer enumerable, and its leads are reachable only by an id you recorded before untracking. Untracking one that is already untracked returns `404` with `code: "keyword_delete_already_stopped"` and `error: "That search is already stopped."` — DISTINGUISHABLE from the `404` for a search that never existed, which carries no code. The status is the same for both on purpose (untracking twice behaves as it did when the row was hard-deleted), but for a keyword search the two are not the same fact: an already-stopped search is still listed by `GET /api/v1/sources?includeInactive=true`, its id still resolves on `GET /api/v1/leads` and `GET /api/v1/engagers`, and its leads are still served. BRANCH ON `code`, never on the prose. It is the same value the dashboard has emitted for this case for months. Identify it by the source `id` GET /api/v1/sources returns — the same value POST /api/v1/keyword/track echoes back as `id`. Not by the keyword text. `403` for a search created during a free trial: trial sources cannot be deleted on any surface, the dashboard included, until the team subscribes. Stops the daily sweep and with it the daily charge. Leads already captured are kept. The `id` is the SOURCE id — the `id` field of the object POST /api/v1/keyword/track returned, and the one GET /api/v1/sources lists — not a keyword string. WHAT HAPPENS TO WORK THAT IS ALREADY RUNNING — the half this used to leave unsaid, and the half that costs money. A SWEEP ALREADY RUNNING IS STOPPED: the run asks whether its source is still tracked at every checkpoint it passes (before each provider call, before each post is harvested, before each chunk of lead rows) and abandons the run at the first checkpoint after the delete. THAT IS “AT THE NEXT CHECKPOINT”, NOT “INSTANTLY”: a provider call already in flight finishes first, and the check is coalesced behind a short window (one second by default), so expect the stop within moments rather than at the instant the delete returns. If the status read itself fails the run CARRIES ON to the next checkpoint — the control channel fails open on purpose, because abandoning a paying customer's sweep over one timed-out SELECT is the worse error. LEADS ALREADY WRITTEN ARE KEPT, and the run is finalised as `completed` with `stoppedBy: "untracked"` on GET /api/v1/sources/{id}/sync (and the username-keyed /sync routes). ⚠️ THAT VALUE IS NOT IN `lastRun.stoppedBy` on GET /api/v1/sources and never will be: that enum describes how a keyword SWEEP ended and is a closed set. QUEUED ENRICHMENT IS WRITTEN OFF AND NOT CHARGED: enrichment lands minutes to hours after capture, so the backlog is the part of an untracked source that would otherwise go on billing — every lead of this source still `pending` or `processing` is marked `skipped` with the reason `source_untracked` and costs no enriching credits. Re-tracking this source returns exactly those leads to `pending` at the start of its next sync, and returns no other skipped lead with it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get sync status for a tracked profile

GET/api/v1/profile/{username}/sync

Progress of the background capture sync for a tracked personal LinkedIn profile. Tracking (saveTrackedProfile=true) queues a staged sync — collecting_posts → collecting_engagements → enriching → completed — and the jobId returned by the enrichment endpoints covers ONLY the profile enrichment, not this sync. Poll this to tell queued / in progress / complete-with-0-leads / failed apart, and stop when `isFinal` is true. THE LIFECYCLE INCLUDES ENRICHMENT, AND SO DOES `isFinal`: capture writes the engagement records, then new people for this source are enriched with firmographics for one credit each; their repeat engagement rows are free, and that second half normally runs on well after the capture run itself has ended. `state` therefore stays `enriching` and `isFinal` stays false while leads are still being enriched and billed — read `enrichment` for the pending / completed / failed / skipped breakdown, and `capture` when all you need to know is that collection finished. Duration is not fixed: the sync is queued, and how long it takes depends on current API load and how many posts and engagements the source has. Leads appear progressively while it runs.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get sync status for a tracked company page

GET/api/v1/company/{username}/sync

Progress of the background capture sync for a tracked LinkedIn company page. Tracking (saveTrackedProfile=true) queues a staged sync — collecting_posts → collecting_engagements → enriching → completed — and the jobId returned by the enrichment endpoints covers ONLY the profile enrichment, not this sync. Poll this to tell queued / in progress / complete-with-0-leads / failed apart, and stop when `isFinal` is true. THE LIFECYCLE INCLUDES ENRICHMENT, AND SO DOES `isFinal`: capture writes the engagement records, then new people for this source are enriched with firmographics for one credit each; their repeat engagement rows are free, and that second half normally runs on well after the capture run itself has ended. `state` therefore stays `enriching` and `isFinal` stays false while leads are still being enriched and billed — read `enrichment` for the pending / completed / failed / skipped breakdown, and `capture` when all you need to know is that collection finished. Duration is not fixed: the sync is queued, and how long it takes depends on current API load and how many posts and engagements the source has. Leads appear progressively while it runs.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Check sync status for a tracked keyword search

GET/api/v1/keyword/{id}/sync

Check a tracked KEYWORD SEARCH's background capture sweep: stage, progress counts, and whether it has finished. Addressed by SOURCE ID, not by keyword text: a keyword search's identifier in GET /api/v1/sources is `id`, while its `username` there is the free-text terms it searches for. A keyword sweep writes a sync_jobs row exactly as a profile sync does, so the state, phase, counters and lead totals here mean the same thing for it as for any other source. THE LIFECYCLE INCLUDES ENRICHMENT, AND SO DOES `isFinal`: capture writes the engagement records, then new people for this source are enriched with firmographics for one credit each; their repeat engagement rows are free, and that second half normally runs on well after the capture run itself has ended. `state` therefore stays `enriching` and `isFinal` stays false while leads are still being enriched and billed — read `enrichment` for the pending / completed / failed / skipped breakdown, and `capture` when all you need to know is that collection finished.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Check sync status for any tracked source, by source id

GET/api/v1/sources/{id}/sync

Check ANY tracked source's background capture sync: stage, progress counts, and whether it has finished. ADDRESSED BY SOURCE ID, AND IT WORKS FOR EVERY KIND OF SOURCE — a person, a company page, a TRACKED POST or a KEYWORD SEARCH. The per-kind routes are keyed by whatever identifier that kind happens to have (/api/v1/{profile|company}/{username}/... by LinkedIn handle, /api/v1/keyword/{id}/... by source id), which is why a tracked post — whose identifier is an activity URN — had no route at all. It was never the SETTING that was missing: a tracked post is a tracked_profiles row like any other, its webhook fires through the same path, its leads are scored against the same ICP rules, and POST /api/v1/post/track has always returned a `syncId` from a real sync job. Only the addressing was. THIS IS HOW YOU FOLLOW A TRACKED POST. POST /api/v1/post/track answers with a `syncId` — a real sync_jobs row, queued the same way a profile's first sync is — and until this route existed there was nothing to hand that id to, so "is my post capturing?" was unanswerable from the API. THE BODY IS THE SAME LIFECYCLE OBJECT the per-kind /sync routes return, field for field, because it is the same code: what differs between the routes is how you addressed the source and the identity fields you get back, never what "finished" means. THE LIFECYCLE INCLUDES ENRICHMENT, AND SO DOES `isFinal`: capture writes the engagement records, then new people for this source are enriched with firmographics for one credit each; their repeat engagement rows are free, and that second half normally runs on well after the capture itself has ended. `state` therefore stays `enriching` and `isFinal` stays false while leads are still being enriched and billed — read `enrichment` for the pending / completed / failed / skipped breakdown, and `capture` when all you need to know is that collection finished.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Sync a tracked person, company page or post now, by source id

POST/api/v1/sources/{id}/sync

QUEUE A CAPTURE SYNC OF A TRACKED PERSON, COMPANY PAGE OR TRACKED POST NOW, instead of waiting for its next scheduled sync. RE-TRACKING DOES NOT RE-SYNC: POST /api/v1/enrich/profile or /enrich/company with `saveTrackedProfile: true`, and POST /api/v1/post/track, on a source that has already synced apply the settings sent and queue nothing (`syncId: null` + `syncNotQueuedReason`). This is the sync. **Cost.** Charged like any sync of that source: one enriching credit per NEW person for the source, repeat engagement free, bounded by the source's `creditCapPerSync` when it has one. There is no separate price; a second sync in a day costs what the next day's scheduled sync would. **Never stacked.** When a sync of the source is already queued, running or paused for enriching credits, nothing new is queued: the answer is `200` with `queued: false`, that job's `syncId` and `status`, and a `message`. Otherwise it is `202` with `queued: true` and the new job's `syncId`. Follow either with GET /api/v1/sources/{id}/sync. **Schedule.** The source's next scheduled sync moves to at least 24 hours from now, so the daily sync does not run it again straight after; a `nextSyncAt` already further out is left as it is. **Keyword searches are refused** with `400` and code `keyword_search_not_syncable`: a keyword search runs on its own daily schedule and each run may spend its `creditCap`, so an extra run would spend it twice in one day. There is no run-now route for a keyword search; follow its runs with GET /api/v1/keyword/{id}/sync, change it with PATCH /api/v1/keyword/{id}, and restart a stopped one with POST /api/v1/keyword/track.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Pause a tracked source, by source id

POST/api/v1/sources/{id}/pause

The dashboard's Pause Tracking button on Your Sources and Your Searches. Sets the source's status to `paused`: it does not sync and spends nothing until POST /api/v1/sources/{id}/resume. Works for every kind of source: a person, a company page, a tracked post or a keyword search. **Not an untrack.** The source stays in GET /api/v1/sources with `status: "paused"`, and the leads it captured stay in GET /api/v1/leads, the CSV export and every other view. DELETE untracks; this pauses. **Idempotent.** Pausing a paused source changes nothing and answers `alreadyPaused: true`. Charges nothing. Takes no body. **The Engagement Agent's sources** can be paused here like any other; to pause the whole agent use POST /api/v1/agent/pause. A source you pause yourself stays paused when the agent is resumed.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Resume (start tracking) a paused source, by source id

POST/api/v1/sources/{id}/resume

The dashboard's Start Tracking button on Your Sources and Your Searches. Sets a paused source's status back to `active`, so it syncs and spends again. Works for every kind of source. **When it runs.** From its own schedule, reported as `nextSyncAt`: a source that came due while it was paused syncs on the next pass (within about a minute), and one paused shortly after its daily sync waits for that schedule rather than syncing twice in a day. Each sync charges as it always does; this call itself charges nothing. **A keyword search whose schedule ended** (it ran once, passed its `endAt`, or used its `maxRuns`) is RESTARTED, as Start Tracking restarts it on Your Searches: every bound is lifted (`runOnce: false`, `endAt: null`, `maxRuns: null`), so it runs daily with no end date and no run limit, and it is due now. `restarted: true` says so. Set new bounds afterwards with PATCH /api/v1/keyword/{id}. **Idempotent.** Resuming a running source changes nothing and answers `alreadyRunning: true`. Takes no body. **The Engagement Agent's sources.** While the agent is paused, a source its pause paused is refused with `409 agent_paused`: resume the agent with POST /api/v1/agent/resume, which wakes all of them.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get webhook configuration for any tracked source, by source id

GET/api/v1/sources/{id}/webhook

Read the webhook configuration — delivery URL and flags — of any tracked source. ADDRESSED BY SOURCE ID, AND IT WORKS FOR EVERY KIND OF SOURCE — a person, a company page, a TRACKED POST or a KEYWORD SEARCH. The per-kind routes are keyed by whatever identifier that kind happens to have (/api/v1/{profile|company}/{username}/... by LinkedIn handle, /api/v1/keyword/{id}/... by source id), which is why a tracked post — whose identifier is an activity URN — had no route at all. It was never the SETTING that was missing: a tracked post is a tracked_profiles row like any other, its webhook fires through the same path, its leads are scored against the same ICP rules, and POST /api/v1/post/track has always returned a `syncId` from a real sync job. Only the addressing was. Same column, same delivery path and same four flags for every kind: a tracked post's and a keyword search's `lead.detected` have always fired, and only reading and setting them from outside the dashboard is new. FOR A TRACKED POST, `webhookUrl`, `icpOnly` and `autoSend` apply to its `lead.detected` exactly as for any source (`autoSend: false` holds its leads for POST /api/v1/sources/{id}/push); `syncEvents` does not, because no sync lifecycle event is ever sent for a post, so the PUT refuses `syncEvents: true` on one.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Configure the webhook for any tracked source, by source id

PUT/api/v1/sources/{id}/webhook

Configure how leads are delivered OUT of Cornersight for ANY tracked source. ADDRESSED BY SOURCE ID, AND IT WORKS FOR EVERY KIND OF SOURCE — a person, a company page, a TRACKED POST or a KEYWORD SEARCH. The per-kind routes are keyed by whatever identifier that kind happens to have (/api/v1/{profile|company}/{username}/... by LinkedIn handle, /api/v1/keyword/{id}/... by source id), which is why a tracked post — whose identifier is an activity URN — had no route at all. It was never the SETTING that was missing: a tracked post is a tracked_profiles row like any other, its webhook fires through the same path, its leads are scored against the same ICP rules, and POST /api/v1/post/track has always returned a `syncId` from a real sync job. Only the addressing was. PARTIAL UPDATE: only the fields present in the body change, so a flag can be flipped without restating the URL; a body with none of them is a 400 rather than a silent no-op. EXPLICIT `false` IS A VALUE — `autoSend: false` puts the source into deliver-only-on-explicit-push mode, which is what POST /api/v1/{profile|company}/{username}/push, /api/v1/keyword/{id}/push and, for any kind (the only push a tracked post has), /api/v1/sources/{id}/push then act on. `webhookUrl` of `""` or `null` CLEARS delivery, and turns `syncEvents` off with it because there is nowhere left to deliver — asking for `syncEvents: true` with no URL is a 400 instead. The URL passes the same guard the delivery path applies, so a URL that saves is always one that can fire. FOR A TRACKED POST, `webhookUrl`, `icpOnly` and `autoSend` apply to its `lead.detected` exactly as for any source (`autoSend: false` holds its leads for POST /api/v1/sources/{id}/push), while `syncEvents: true` is a 400 with `code: "not_supported_for_post"`: no sync lifecycle event is ever sent for a post. SAVING A URL DOES NOT DELIVER HISTORY; the push endpoints do that. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get ICP criteria for any tracked source, by source id

GET/api/v1/sources/{id}/icp

Read the ICP (Ideal Customer Profile) criteria — filter rules and match mode — that decide which of this source's leads are `isIcp`, and with a webhook's `icpOnly`, which are delivered. ADDRESSED BY SOURCE ID, AND IT WORKS FOR EVERY KIND OF SOURCE — a person, a company page, a TRACKED POST or a KEYWORD SEARCH. The per-kind routes are keyed by whatever identifier that kind happens to have (/api/v1/{profile|company}/{username}/... by LinkedIn handle, /api/v1/keyword/{id}/... by source id), which is why a tracked post — whose identifier is an activity URN — had no route at all. It was never the SETTING that was missing: a tracked post is a tracked_profiles row like any other, its webhook fires through the same path, its leads are scored against the same ICP rules, and POST /api/v1/post/track has always returned a `syncId` from a real sync job. Only the addressing was. The scoring has always been kind-blind: capture evaluates these rules off the source row without regard for what kind of source it is. `rules: []` means no filter at all, which is not the same as a filter that matches nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Set ICP criteria for any tracked source, by source id

PUT/api/v1/sources/{id}/icp

Set the ICP criteria for any tracked source (rules and/or match mode). ADDRESSED BY SOURCE ID, AND IT WORKS FOR EVERY KIND OF SOURCE — a person, a company page, a TRACKED POST or a KEYWORD SEARCH. The per-kind routes are keyed by whatever identifier that kind happens to have (/api/v1/{profile|company}/{username}/... by LinkedIn handle, /api/v1/keyword/{id}/... by source id), which is why a tracked post — whose identifier is an activity URN — had no route at all. It was never the SETTING that was missing: a tracked post is a tracked_profiles row like any other, its webhook fires through the same path, its leads are scored against the same ICP rules, and POST /api/v1/post/track has always returned a `syncId` from a real sync job. Only the addressing was. Partial update: pass `rules` and/or `matchMode`; a body with neither is a 400. `rules: []` or `null` clears the filter: with no filter set, no lead is an ICP match (`isIcp` false), so ICP-only delivery sends nothing until rules are set again. EXISTING LEADS ARE RE-SCORED IMMEDIATELY, the same retroactive pass the dashboard runs, so `isIcp` filters and `icpOnly` delivery reflect the change now rather than at the next sync. `dryRun: true` ANSWERS “WHAT WOULD THIS SELECT?” WITHOUT APPLYING IT: validate, evaluate against this source's existing leads, and answer 200 with `counts` — `{ matching, notMatching }` over every lead the source has captured — a `sample` of up to ten matching leads by `id` and `name`, the `icp` (`matchMode` and `rules`) that was evaluated, and `dryRun: true`. Nothing is written and nothing fires. Use it before any rule change on a source whose webhook delivers `icpOnly` or whose pushes use `scope: "icp"`, because saving re-scores every existing lead immediately. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get webhook config for a tracked personal LinkedIn profile

GET/api/v1/profile/{username}/webhook

Read the webhook configuration (delivery URL and flags) for a tracked personal LinkedIn profile.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Configure the webhook for a tracked personal LinkedIn profile

PUT/api/v1/profile/{username}/webhook

Configure how leads are delivered OUT of Cornersight for a tracked personal LinkedIn profile — previously a dashboard-only capability. Partial update: only fields present in the body change. webhookUrl must be a public https URL; an empty string or null clears it. syncEvents requires a webhookUrl. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get webhook config for a tracked LinkedIn company page

GET/api/v1/company/{username}/webhook

Read the webhook configuration (delivery URL and flags) for a tracked LinkedIn company page.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Configure the webhook for a tracked LinkedIn company page

PUT/api/v1/company/{username}/webhook

Configure how leads are delivered OUT of Cornersight for a tracked LinkedIn company page — previously a dashboard-only capability. Partial update: only fields present in the body change. webhookUrl must be a public https URL; an empty string or null clears it. syncEvents requires a webhookUrl. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get webhook config for a tracked keyword search

GET/api/v1/keyword/{id}/webhook

Read the webhook configuration (delivery URL and flags) for a tracked KEYWORD SEARCH. Addressed by SOURCE ID, not by keyword text: a keyword search's identifier in GET /api/v1/sources is `id`, while its `username` is the free-text keywords it searches for. Same webhook and same delivery as every other source kind - a keyword search's `lead.detected` has always fired; only reading and setting it was dashboard-only. Its ICP config and sync status are reachable the same way, at /api/v1/keyword/{id}/icp and /api/v1/keyword/{id}/sync.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Configure the webhook for a tracked keyword search

PUT/api/v1/keyword/{id}/webhook

Configure how leads are delivered OUT of Cornersight for a tracked KEYWORD SEARCH - previously a dashboard-only capability. Addressed by SOURCE ID (from GET /api/v1/sources), not by keyword text. Partial update: only fields present in the body change. webhookUrl must be a public https URL; an empty string or null clears it. syncEvents requires a destination. Its ICP config and sync status are reachable the same way, at /api/v1/keyword/{id}/icp and /api/v1/keyword/{id}/sync. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get ICP criteria for a tracked personal LinkedIn profile

GET/api/v1/profile/{username}/icp

Read the ICP (Ideal Customer Profile) criteria — filter rules + match mode — that decide which of this source's leads are isIcp (and, with a webhook's icpOnly, which get delivered). Previously dashboard-only.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Set ICP criteria for a tracked personal LinkedIn profile

PUT/api/v1/profile/{username}/icp

Set the ICP (Ideal Customer Profile) criteria for a tracked personal LinkedIn profile — previously dashboard-only. Partial update: pass rules and/or matchMode. rules of [] or null clears the filter. Existing leads are re-scored immediately so isIcp and icpOnly delivery reflect the change. `dryRun: true` ANSWERS “WHAT WOULD THIS SELECT?” WITHOUT APPLYING IT: validate, evaluate against this source's existing leads, and answer 200 with `counts` — `{ matching, notMatching }` over every lead the source has captured — a `sample` of up to ten matching leads by `id` and `name`, the `icp` (`matchMode` and `rules`) that was evaluated, and `dryRun: true`. Nothing is written and nothing fires. Use it before any rule change on a source whose webhook delivers `icpOnly` or whose pushes use `scope: "icp"`, because saving re-scores every existing lead immediately. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get ICP criteria for a tracked LinkedIn company page

GET/api/v1/company/{username}/icp

Read the ICP (Ideal Customer Profile) criteria — filter rules + match mode — for a tracked LinkedIn company page.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Set ICP criteria for a tracked LinkedIn company page

PUT/api/v1/company/{username}/icp

Set the ICP criteria for a tracked LinkedIn company page. Partial update: pass rules and/or matchMode. rules of [] or null clears the filter. Existing leads are re-scored immediately. `dryRun: true` ANSWERS “WHAT WOULD THIS SELECT?” WITHOUT APPLYING IT: validate, evaluate against this source's existing leads, and answer 200 with `counts` — `{ matching, notMatching }` over every lead the source has captured — a `sample` of up to ten matching leads by `id` and `name`, the `icp` (`matchMode` and `rules`) that was evaluated, and `dryRun: true`. Nothing is written and nothing fires. Use it before any rule change on a source whose webhook delivers `icpOnly` or whose pushes use `scope: "icp"`, because saving re-scores every existing lead immediately. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get ICP criteria for a tracked keyword search

GET/api/v1/keyword/{id}/icp

Read the ICP criteria (filter rules and match mode) for a tracked KEYWORD SEARCH. Addressed by SOURCE ID, not by keyword text: a keyword search's identifier in GET /api/v1/sources is `id`, while its `username` there is the free-text terms it searches for. The rules are the same ones capture evaluates: evaluateIcp reads icp_filter_rules off the source row without regard for source kind, so a keyword search's leads have always been scored against them - only reading and setting them was dashboard-only.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Set ICP criteria for a tracked keyword search

PUT/api/v1/keyword/{id}/icp

Set the ICP criteria for a tracked KEYWORD SEARCH (rules and/or match mode). Re-scores existing leads' isIcp. Addressed by SOURCE ID, not by keyword text: a keyword search's identifier in GET /api/v1/sources is `id`, while its `username` there is the free-text terms it searches for. Pass rules: [] to clear the filter. `dryRun: true` ANSWERS “WHAT WOULD THIS SELECT?” WITHOUT APPLYING IT: validate, evaluate against this source's existing leads, and answer 200 with `counts` — `{ matching, notMatching }` over every lead the source has captured — a `sample` of up to ten matching leads by `id` and `name`, the `icp` (`matchMode` and `rules`) that was evaluated, and `dryRun: true`. Nothing is written and nothing fires. Use it before any rule change on a source whose webhook delivers `icpOnly` or whose pushes use `scope: "icp"`, because saving re-scores every existing lead immediately. UNKNOWN FIELDS ARE REFUSED: a property not listed here is a 400 carrying `code: "unknown_field"` and naming the offending field, rather than a 200 that silently dropped it.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Resolve a public LinkedIn handle to its member id (free)

GET/api/v1/profile/{username}/urn

Resolve any public LinkedIn handle to the member id (`ACoAA…`) the keyword targeting filters take. WHY IT EXISTS: `fromPerson` and `mentionsPerson` accept a member id and never a handle, and nothing else in this API could produce one — POST /api/v1/enrich/profile answers 404 for anyone who is not already one of your leads, and with `saveTrackedProfile` it TRACKS them, which queues a full sync and charges. THIS ENRICHES NOBODY, TRACKS NOBODY AND CHARGES NOTHING: no lead row is written, so no enriching credit is consumed, and the response says so as `creditsCharged: 0`. The only cost is one upstream lookup, which is cached — in flight, for the life of the worker, and by the provider for 24h — so repeating a handle is free. The standard per-team rate limit is the only cap. The handle may be given bare (`jasonlemkin`) or as a profile URL. A `404` with `code: "not_found"` means the provider served no member id for that handle — private, renamed or deleted — and retrying will not change it; a provider outage is a `502` carrying its own code instead.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read a profile's posts and their text, without tracking it (1 credit per post)

GET/api/v1/profile/{username}/posts

⚠ ONE POST IS ONE CREDIT. ⚠ ASK TWO THINGS BEFORE FETCHING ANYTHING: HOW MANY POSTS do you want (1-60, and one post is one credit), and is this a ONE-OFF READ or a DAILY WATCH? A one-off read is this endpoint with `posts` and `confirmSpend`. A daily watch is a posts-only tracked source — POST /api/v1/enrich/{profile,company} with `saveTrackedProfile: true`, `mode: "posts_only"` and `postsPerSync` — which costs up to that many credits EVERY DAY until it is untracked, appears on the profile row in the dashboard, delivers each new post as a `post.detected` webhook and is readable at GET /api/v1/sources/{id}/posts. ⚠ WITHOUT `confirmSpend` THE CALL IS REFUSED 409 `spend_confirmation_required` AND NOTHING IS FETCHED OR CHARGED. That refusal is the useful part: it carries `estimatedCredits` (equal to `posts`), `remainingBalance` and the sentence to read out. Say the cost, wait for a yes, then re-send the identical request with `confirmSpend: true` — the round trip IS the consent. ⚠ YOU ARE CHARGED FOR THE POSTS ACTUALLY RETURNED, which is why the refusal says "up to": a profile holding 12 posts asked for 60 costs 12, and one holding none costs nothing. `creditsCharged` in the body is what was actually billed. ⚠ A BALANCE BELOW THE REQUEST IS A 402 `insufficient_enriching_credits` NAMING BOTH NUMBERS, and nothing is fetched. A partial set is deliberately not offered: serving 9 posts of a confirmed 20 would be a different call from the one that was authorised. ⚠ THERE IS NO PAGING ANY MORE. `limit` and `paginationToken` are REFUSED with a 400 naming `posts`, because "fetch 20" and "fetch 15 then 5 more" must not be two prices for one answer — the 15-per-page walk still happens, internally. An integration written against the free surface is TOLD rather than silently charged. ⚠ THE CHARGE LANDS IN THE ORDINARY CREDIT LEDGER under a new `posts_read` kind keyed by handle, so GET /api/v1/credits/usage shows it in `bySource` and names the handle in `byHandle`. ⚠ IT IS STILL A READ AND IT PERSISTS NOTHING: no tracked source is created, no sync is queued, no post or lead row is written, and NO ENGAGERS ARE COLLECTED — that fan-out is where a sweep's cost and ALL of its leads come from, and it is explicitly not what this does. `captured: false` says so in the body: paying for a read does not make it a capture. It is NOT POST /api/v1/profile/posts (the TRACKED posts job), which answers 404 for an untracked handle because its job UPSERTS every post it walks against a tracked source — that is the whole reason this endpoint exists. ⚠ A RATE LIMIT STILL BOUNDS IT AND IS NOW THE SECONDARY GUARD RATHER THAN THE ONLY ONE: 10 CALLS A MINUTE per team, shared between this endpoint and its sibling, against the 120/min ordinary reads get. A 429 MEANS CALLED-TOO-FAST, NOT OUT-OF-CREDITS — that is the 402, which has its own code. AN EMPTY `posts` ARRAY IS A REAL ANSWER and costs nothing: it is deliberately not a 404, which would be indistinguishable from a mistyped handle. An upstream that would not answer at all is a 502 carrying its own code, and that charges nothing either. OPTIONAL `since` (YYYY-MM-DD or a full ISO timestamp) returns and charges only posts published on or after it, for example ?posts=60&since=YYYY-MM-DD&confirmSpend=true (for posts from the last 30 days, use the date 30 days ago). `posts` stays the cap; the 409 still quotes up to `posts` and says `since` may return fewer; the response echoes `since`. The balance check still needs `posts` credits, even if fewer posts are returned. Posts with no publish date are left out when `since` is set. On company pages `since` can occasionally miss a post, because company feeds are only roughly in date order.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read a company page's posts and their text, without tracking it (1 credit per post)

GET/api/v1/company/{username}/posts

⚠ ONE POST IS ONE CREDIT. ⚠ ASK TWO THINGS BEFORE FETCHING ANYTHING: HOW MANY POSTS do you want (1-60, and one post is one credit), and is this a ONE-OFF READ or a DAILY WATCH? A one-off read is this endpoint with `posts` and `confirmSpend`. A daily watch is a posts-only tracked source — POST /api/v1/enrich/{profile,company} with `saveTrackedProfile: true`, `mode: "posts_only"` and `postsPerSync` — which costs up to that many credits EVERY DAY until it is untracked, appears on the profile row in the dashboard, delivers each new post as a `post.detected` webhook and is readable at GET /api/v1/sources/{id}/posts. ⚠ WITHOUT `confirmSpend` THE CALL IS REFUSED 409 `spend_confirmation_required` AND NOTHING IS FETCHED OR CHARGED. That refusal is the useful part: it carries `estimatedCredits` (equal to `posts`), `remainingBalance` and the sentence to read out. Say the cost, wait for a yes, then re-send the identical request with `confirmSpend: true` — the round trip IS the consent. ⚠ YOU ARE CHARGED FOR THE POSTS ACTUALLY RETURNED, which is why the refusal says "up to": a page holding 12 posts asked for 60 costs 12, and one holding none costs nothing. `creditsCharged` in the body is what was actually billed. ⚠ A BALANCE BELOW THE REQUEST IS A 402 `insufficient_enriching_credits` NAMING BOTH NUMBERS, and nothing is fetched. A partial set is deliberately not offered: serving 9 posts of a confirmed 20 would be a different call from the one that was authorised. ⚠ THERE IS NO PAGING ANY MORE. `limit` and `paginationToken` are REFUSED with a 400 naming `posts`, because "fetch 20" and "fetch 15 then 5 more" must not be two prices for one answer — the 15-per-page walk still happens, internally. An integration written against the free surface is TOLD rather than silently charged. ⚠ THE CHARGE LANDS IN THE ORDINARY CREDIT LEDGER under a new `posts_read` kind keyed by handle, so GET /api/v1/credits/usage shows it in `bySource` and names the handle in `byHandle`. ⚠ IT IS STILL A READ AND IT PERSISTS NOTHING: no tracked source is created, no sync is queued, no post or lead row is written, and NO ENGAGERS ARE COLLECTED — that fan-out is where a sweep's cost and ALL of its leads come from, and it is explicitly not what this does. `captured: false` says so in the body: paying for a read does not make it a capture. It is NOT POST /api/v1/company/posts (the TRACKED posts job), which answers 404 for an untracked handle because its job UPSERTS every post it walks against a tracked source — that is the whole reason this endpoint exists. ⚠ A RATE LIMIT STILL BOUNDS IT AND IS NOW THE SECONDARY GUARD RATHER THAN THE ONLY ONE: 10 CALLS A MINUTE per team, shared between this endpoint and its sibling, against the 120/min ordinary reads get. A 429 MEANS CALLED-TOO-FAST, NOT OUT-OF-CREDITS — that is the 402, which has its own code. AN EMPTY `posts` ARRAY IS A REAL ANSWER and costs nothing: it is deliberately not a 404, which would be indistinguishable from a mistyped handle. An upstream that would not answer at all is a 502 carrying its own code, and that charges nothing either. OPTIONAL `since` (YYYY-MM-DD or a full ISO timestamp) returns and charges only posts published on or after it, for example ?posts=60&since=YYYY-MM-DD&confirmSpend=true (for posts from the last 30 days, use the date 30 days ago). `posts` stays the cap; the 409 still quotes up to `posts` and says `since` may return fewer; the response echoes `since`. The balance check still needs `posts` credits, even if fewer posts are returned. Posts with no publish date are left out when `since` is set. On company pages `since` can occasionally miss a post, because company feeds are only roughly in date order.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read the posts a posts-only watch has seen

GET/api/v1/sources/{id}/posts

WHAT A POSTS-ONLY TRACKED PROFILE OR KEYWORD SEARCH HAS SEEN, newest first by when WE saw it. A posts-only source delivers each new post as a `post.detected` webhook. ⚠ POSTS-ONLY SOURCES ONLY — 404 `not_posts_only` otherwise. An engagers source reports captured people as leads; an engagers-mode keyword search also reports post verdicts at GET /api/v1/sources/{id}/kept-posts, which does not include post text. ⚠ `firstSeenAt` IS WHEN WE SAW IT, NOT WHEN IT WAS POSTED. READING THIS CHARGES NOTHING: the credit was spent only when each new matching post was first recorded. EACH POST CARRIES `postedAt` AND `postedAtTimestamp`, and on a KEYWORD search also what the search said about it when it was found: `author` { `name`, `url`, `headline` }, `commentsCount`, `totalReactionCount` and `contentType`, in the names and types GET /api/v1/profile/{username}/posts uses. A keyword post's `postedAt` is the instant its activity URN encodes — the keyword search result has no time field — and keyword posts recorded before the September 2026 worker release that added them serve all of these as null (not back-filled). On a person or company watch `commentsCount`, `totalReactionCount` and `contentType` are what the watch saw when it FIRST RECORDED the post (never refreshed; null on watch posts recorded before the September 2026 worker release that added them, not back-filled), `postedAt` is the instant the post's activity URN encodes (or, for a post keyed by its ugcPost or share id, the instant that id encodes), and `author` is always null — the watched source is the author. Every key is present on every row; a null is never a zero.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Leads

List tracked sources

GET/api/v1/sources

The LinkedIn people, company pages, individual posts, and keyword searches this team tracks as lead sources. Create a person or company source with the enrich endpoints (saveTrackedProfile:true) and delete one with DELETE /api/v1/profile|/company/{username}. Tracked POSTS are created with POST /api/v1/post/track (or the dashboard); they are listed here, filterable with ?type=post, and their engagers are returned by GET /api/v1/leads like any other source's. Untrack one with DELETE /api/v1/post/{urn}. Their sync status, webhook config and ICP config are reached by SOURCE ID at /api/v1/sources/{id}/sync, /webhook and /icp — the `id` of each entry below. The username-keyed /sync, /webhook and /icp routes cover person and company sources only, so a post's URN 404s there. A keyword search reaches all three by source id twice over: at /api/v1/keyword/{id}/webhook, /icp and /sync, and at the kind-agnostic /api/v1/sources/{id}/... routes, which take the same id. KEYWORD SEARCHES are created with POST /api/v1/keyword/track (or the dashboard); they are listed here, filterable with ?type=keyword, and their engagers are returned by GET /api/v1/leads the same way. Untrack one with DELETE /api/v1/keyword/{id}. Their /sync, /webhook and /icp are reachable by source id, on their own routes and on the kind-agnostic /api/v1/sources/{id}/... ones alike. Their AI key is NOT set through the API — it is stored once per team per provider in the dashboard's AI Post Filter panel, on Keyword Engagement (the same panel that sets the provider and prompt, both when creating a search and when editing one), and the create route rejects a key outright rather than ignoring it. THERE IS NO SEPARATE INTEGRATIONS PAGE — this doc used to point at one, and no such page exists. Each source's `id` is the `profileId` GET /api/v1/leads filters by. By DEFAULT this lists only ACTIVE sources; `?includeInactive=true` adds the untracked ones, each carrying `status: "inactive"`. That flag is how a stopped keyword search is found again — its leads are kept, and without it neither its id nor its lead count is reachable.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Which posts a keyword run swept, kept and harvested

GET/api/v1/sources/{id}/kept-posts

Which posts a keyword search's LAST RUN swept, kept and harvested. `?include=swept` adds a row per post the run considered, with per-post `engagersSeen` and `leadsWritten` that sum to `lastRun`'s counters — the only surface that answers "my run harvested 25 posts and wrote 21 leads; from which of them?" The post URNs the run swept and kept, with their permalinks. lastRun says a run scanned 25 and kept 2; this says WHICH 2, which is what separates "the filter picked quiet posts" from "the capture failed" when engagersSeen is 0. The URN is the activity URN POST /api/v1/post/reactions takes as `postUrn`, so a caller reading `postsKept: 2, engagersSeen: 0` can pull those two posts' reactions and check for themselves — that round trip is what this endpoint is for. A SEPARATE ENDPOINT ON PURPOSE. GET /api/v1/sources returns every source on every call, and an unfiltered run keeps everything it scans — up to 2,000 URNs from one run, tens of KB with the URLs. Putting that on the list response would make every caller pay for a diagnostic; ask for it here instead. `?include=swept` RETURNS EVERY POST THE RUN CONSIDERED, not only the ones it kept, under `sweptPosts` — a DIFFERENT KEY, so a rejected post can never be read out of `keptPosts`. Each row carries `outcome` and its own per-post numbers. `scanned`: the run stopped before a completed AI verdict or has no verdict for this post — an unfiltered run never produces this value, because it keeps everything it scans. `kept`: kept but NEVER REACHED, because a cap stopped the loop or its capture failed — there is no stored post, so /post/reactions answers 404 for it and `url` is null. `harvested`: captured, and the only outcome that can carry non-zero numbers. `discarded`: either the boolean expression rejected it before AI, or a completed AI filter explicitly rejected it. `reason` names the failed expression clause (for example `missing phrase "sales ops"` or `contains recruiter`) or says `AI filter rejected this post`. THE PER-POST NUMBERS SUM TO `lastRun`: rows = `postsScanned`, `kept` + `harvested` rows = `postsKept`, `harvested` rows = `postsHarvested`, `discardedByExpression` counts only expression-discarded rows, not AI rejects, and sum(`engagersSeen`) / sum(`engagersDropped`) / sum(`engagersDuplicate`) / sum(`leadsWritten`) are that run's four counters. That is how `harvested 25, leadsWritten 21` becomes `these five posts wrote all 21, and these twenty wrote none`: read `leadsWritten` per row, then `engagersSeen` on the zero-lead rows to tell a QUIET post (0 seen) from a LOSSY capture (people seen, none usable). On a run-scoped answer the four numbers are ALWAYS present, including 0; on the prompt-scoped fallback they are ABSENT, because nothing measured them — and an absent number is not a zero. ⚠ `?include=swept` HAS NO FALLBACK: a run that recorded no per-post list answers `sweptPosts: null` with `reason` rather than widening to the prompt. `include=kept` is the default and is unchanged. `scope` SAYS WHICH QUESTION WAS ANSWERED, and a caller comparing the list against `postsKept` must read it. "run" is the list that run itself recorded, in the order it walked them. "prompt" is the fallback for a run that recorded none: every post kept under the search's CURRENT prompt, across every run of that prompt — a WIDER set, which will not match `postsKept`, and which is empty for a search with no AI filter. ⚠ `keptPosts` is NULL, never an empty array, when nothing recorded a kept list — with `reason` saying so. That is a `scope: "prompt"` answer: a run with no AI filter decides nothing, and a run from before the verdict fix recorded nothing. Both KEPT posts, so [] would falsely claim they kept none. An EMPTY ARRAY is a different and real answer, and it only ever appears with `scope: "run"`: that run reached its filter and the filter rejected everything, which `postsKept: 0` says too. DISCARDS ARE ROWS, AND A RUN THAT KEPT NOTHING STILL RETURNS THEM. With `?include=swept`, every post the run considered and rejected is its own row: `outcome: "discarded"`, its `urn`, its `url` (the post's LinkedIn permalink as the search returned it — nothing was stored for a discarded post, so /post/reactions still answers 404 for that URN) and a `reason`. For the boolean expression the reason is the first clause the post failed, in the words of the expression: `missing phrase "sales ops"` (a quoted phrase not present as adjacent words), `missing hiring` (a required term absent) or `contains recruiter` (an excluded term present). For the AI filter it is `AI filter rejected this post`, followed by the provider and model whose verdict it was when that was recorded — `AI filter rejected this post (openai, gpt-4o-mini)`; the model answers only keep or reject, so there is no per-post rationale beyond that. `keptPosts` and `sweptPosts` are therefore different answers for such a run: `keptPosts` is [] and `sweptPosts` still carries one row per discard — a run that kept nothing is NEVER an empty swept list if its expression or AI filter rejected anything. The rows reconcile with `lastRun`: on a run with no AI filter, `postsScanned` = `postsKept` + `discardedByExpression`; with one, the other `discarded` rows (the ones whose reason starts `AI filter rejected this post`) are its rejections. ⚠ `unlistedDiscards` appears only when `lastRun.discardedByExpression` counts posts this list has no row for: a run recorded before 2026-09-21 counted its discards but did not list them (and counted only the survivors in `postsScanned`), and a list at its 2000-row bound keeps the posts the run kept first and loses the tail of its discards. Those rows were never stored and are not reconstructed; a run recorded since then lists every discard. A `url` of null means the post was kept but never HARVESTED — a cap stopped the run before it reached that post — so nothing was stored for it and POST /api/v1/post/reactions answers 404 for that URN. It is the per-post spelling of lastRun's postsKept vs postsHarvested. EACH ROW ALSO SAYS WHAT THE POST IS, so a caller can triage posts WITHOUT BUYING THEIR ENGAGERS: `author` { `name`, `url`, `headline` }, `commentsCount`, `totalReactionCount`, `contentType`, `postedAt` and `postedAtTimestamp` — the names and types GET /api/v1/profile/{username}/posts already uses. They are what the keyword search reported when the run found the post (a company page has a name and a URL and no headline); `postedAt` is the instant the post's activity URN encodes, because the search result carries no time. They are present on EVERY row, on every `scope` and `include`, as null where nothing recorded them: on a row the boolean expression discarded (those posts are not recorded, to keep each run's record small), and on every post found before the September 2026 worker release that added them (not back-filled). A null is never a zero: `commentsCount: 0` is a post nobody had commented on, `commentsCount: null` one the search said nothing about.

Authenticated with the X-API-Key header.

Loading parameters and examples...

List captured leads

GET/api/v1/leads

List and filter the engagers already captured and enriched for your tracked profiles — no re-sweep of posts required. Read-only and synchronous, so it draws on the higher read rate limit. Returns enriched leads only, and (unless you scope to one tracked source with profileId/username — the source that captured the leads, not a lead's own profile) only profiles whose first sync has finished — the same set the dashboard and CSV export show. Ordered newest-engagement-first. Page with limit/offset and read `total`/`hasMore`; for incremental pulls, filter on `since`/`until` (both compare against the lead's createdAt). Unknown query parameters are rejected with a 400, so a typo or a removed filter never silently returns an unfiltered page. GRAIN: this endpoint returns one row per ENGAGEMENT (each like or comment is its own row), so a repeat engager appears once per interaction and `total` counts ENGAGEMENTS, NOT unique people. Use GET /api/v1/engagers (one row per PERSON, with engagementCount) when you need a count of people. WHAT A PENDING LEAD IS. Capture and enrichment are two steps: capture records the engager (name, LinkedIn username and URL, avatar), enrichment then adds job title, company and country. This endpoint returns ENRICHED leads only, so a captured-but-unenriched lead is absent from `data` and `total` entirely — it is not returned with blank fields. `pendingEnrichment` counts exactly those absent leads. Enrichment is GATED: it only runs for a team whose subscription is active (or a live trial) and which has enriching credits. A team that is cancelled, blocked or out of credits accumulates pending leads INDEFINITELY — measured in production, one cancelled team holds 54,947 leads that have never been attempted, the oldest waiting 51 days. So a large pendingEnrichment means enrichment is gated for that team, NOT that the queue is stuck. Check GET /api/v1/credits. SCOPING TO A KIND OF SOURCE. `?sourceKind=keyword|post|profile` narrows the all-sources view to the leads captured by one kind of source — the way to answer "how many leads have my keyword searches produced" in a single call. It spans untracked keyword searches, whose leads are deliberately kept, which is why it can return MORE than the sum over GET /api/v1/sources (that lists only active sources). UNTRACKED SOURCES. A source you untracked is out of scope here on BOTH paths: absent from the all-sources view, and a 404 when named with profileId/username — the same rule the dashboard applies, so this endpoint cannot answer with leads the product told you were gone. KEYWORD searches are the deliberate exception: untracking one keeps its leads, and they stay readable both by id and under `sourceKind=keyword`. COMPANY FIELDS: companyName (also `company`), companyUrl (company website URL), companyDomain (website hostname), companyLinkedinUrl (LinkedIn company page), companyDescription, companyIndustry, companyLocation (headquarters), companyEmployeeCount, companyStaffRange and companyEnrichedAt describe the current employer. companyUrl is the company's own website, from the website field of its company record, and never a LinkedIn URL; companyLinkedinUrl is its LinkedIn company page. Company fields come from the company record, which Cornersight resolves once per company and caches for every lead at that company. They cost no enriching credits. companyStaffRange is the LinkedIn size bucket and companyEmployeeCount is the reported total, so the two can disagree. companyEnrichedAt is null until the company has been resolved; after that, a null company field means the company record has no value for it. Resolving a company costs one provider lookup, not a Cornersight credit, and each company record is cached for 6 months. companyDescription and companyLocation (headquarters) come from the company record, resolved once per company and cached for 6 months, at no enriching-credit cost.

Authenticated with the X-API-Key header.

Loading parameters and examples...

List raw (unenriched) leads

GET/api/v1/leads/raw

List the RAW leads of sources in raw mode (`enrichLeads: false`): people captured from engagement exactly as capture recorded them and NEVER enriched. Read-only and synchronous. A raw lead carries who engaged (linkedinUrl, linkedinUrn, name), how (action and commentText), on which post (post.url, post.urn, post.postedAt) and when it was captured (detectedAt) — and no job title, company, country or ICP score, because no enrichment provider is ever called for it. WHERE RAW LEADS COME FROM, AND WHAT THEY COST. `enrichLeads: false` on POST /api/v1/enrich/{profile,company} (with saveTrackedProfile: true), POST /api/v1/post/track, POST /api/v1/keyword/track, PATCH /api/v1/{profile,company}/{username} or PATCH /api/v1/keyword/{id} puts a source in raw mode; GET /api/v1/sources reports it per source as `enrichLeads`. The price is unchanged: ONE CREDIT PER NEW PERSON PER SOURCE, charged when the lead is captured, with repeats free and the same ledger and caps as enrichment. Reading them here charges nothing. Switching the mode needs no `confirmSpend` and applies to leads captured or processed after the switch — leads already enriched stay enriched, raw leads stay raw. ONLY HERE. A raw lead is `enriched = false`, so it never appears in GET /api/v1/leads, GET /api/v1/engagers, the dashboard, CSV exports, webhooks, lead pushes or integrations. This endpoint is how raw leads are delivered. SCOPE AND VISIBILITY ARE GET /api/v1/leads'. With no source named it spans every source the team tracks; a source you UNTRACKED is out of scope (and a 404 when named) unless `includeInactive=true`, except a keyword search, whose leads are kept either way. One source selector at most: `profileId` (also accepted as `trackedProfile` or `source`) or `username`; an unknown source is a 404. There is no readiness gate and no `includeSyncing`: a raw lead is final the moment it is written, so a source's raw leads stay listed while it re-syncs. ORDER AND PAGING. Newest `detectedAt` first, `id` as the tiebreak, so deep offsets are deterministic. `since`/`until` compare against `detectedAt`, so an incremental pull is `since=<the newest detectedAt you already hold>`. Page with limit/offset and follow `hasMore`; `total` is the exact size of the filtered set. Unknown query parameters are a 400, so a typo never returns an unfiltered page. NAMES. Capture stores a person's handle or member id where the provider sent no display name. A raw lead is never enriched, so that fallback would reach you as the name; instead `name` is null whenever the stored value is only an identifier (it matches the handle or the URN, or looks like one: ACoAA… or urn:li:…). An id is never returned as a name — identify the person by `linkedinUrl` / `linkedinUrn`.

Authenticated with the X-API-Key header.

Loading parameters and examples...

List top engagers

GET/api/v1/engagers

Aggregate captured leads to one row per PERSON — the repeat-engagement signal GET /api/v1/leads (one row per engagement) can't answer directly. Sorted by engagementCount desc by default; pass orderBy=lastEngagedAt for most-recent-first, and minEngagements to keep only repeat engagers. Scope and gating mirror GET /api/v1/leads exactly (team-scoped, enriched only, leads_ready sources unless includeSyncing=true). Read-only, returns immediately. Paginated: { data, total, limit, offset, hasMore }. IDENTITY: rows are one per PERSON even when the same person was captured under two LinkedIn spellings. ~3% of leads store a member URN ("ACoAAB...") in linkedinUsername instead of a public handle; aggregation groups on the captured member URN where there is one, so a handle capture and a URN capture of the same person merge into a single row with the combined engagementCount, reported under the handle. linkedinUsername can still be a URN for someone only ever seen that way. UNTRACKED SOURCES. A source you untracked is out of scope here on BOTH paths — absent from the all-sources view, and a 404 when named with profileId/username — the same rule GET /api/v1/leads applies, because these are the same leads grouped. "Scope and gating mirror GET /api/v1/leads exactly" was true of readiness and team scope and NOT of this rule: this endpoint resolved its own source set with no status clause, so a deleted profile kept answering with its engagers while /leads 404'd on the same id. KEYWORD searches are the deliberate exception on both endpoints: untracking one keeps its leads, so its engagers stay readable, by id and in the all-sources view. Untracking never erases anything — the source is deactivated and its rows are retained; what deleting changes is what is SERVED. Use GET /api/v1/sources?includeInactive=true to enumerate what you used to track. COMPANY FIELDS: companyName (also `company`), companyUrl (company website URL), companyDomain (website hostname), companyLinkedinUrl (LinkedIn company page), companyDescription, companyIndustry, companyLocation (headquarters), companyEmployeeCount, companyStaffRange and companyEnrichedAt describe the current employer. companyUrl is the company's own website, from the website field of its company record, and never a LinkedIn URL; companyLinkedinUrl is its LinkedIn company page. Company fields come from the company record, which Cornersight resolves once per company and caches for every lead at that company. They cost no enriching credits. companyStaffRange is the LinkedIn size bucket and companyEmployeeCount is the reported total, so the two can disagree. companyEnrichedAt is null until the company has been resolved; after that, a null company field means the company record has no value for it. Resolving a company costs one provider lookup, not a Cornersight credit, and each company record is cached for 6 months. companyDescription and companyLocation (headquarters) come from the company record, resolved once per company and cached for 6 months, at no enriching-credit cost.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Discover

Start a Discover run

POST/api/v1/discover

Start a ONE-OFF Discover Influencers run: the people who post about these keywords in the past month and average at least `minEngagement` likes + comments per matching post, at most `maxInfluencers` of them, optionally only in `countries`. Synchronous: answers 201 with the run (`state: "running"`) and the worker runs it within moments; most runs finish within a few minutes. Poll GET /api/v1/discover/{id} for its influencers. SPEND CONFIRMATION. The run costs 1 credit per influencer added, so up to `maxInfluencers` credits, once. Without `"confirmSpend": true` the request is refused with 409 `spend_confirmation_required` carrying `estimatedCredits` and NOTHING is created: show that figure to the person, then re-send the identical request with `"confirmSpend": true`. `confirmSpend: false` is also a 409; a non-boolean is a 400. The keywords are compiled into one OR search exactly as the dashboard compiles them, and the run is the same run the dashboard's Find influencers button creates: past month, sorted by relevance, people only, one credit per person added. See the Discover tag for how engagement, the maximum and the country filter work. FREE TRIAL. A trial has 2 influencer searches of up to 100 people each: maxInfluencers over 100 is a 400 and a third search is a 403, both with code `trial_profile_limit`, before any spend question. The agent's own people search does not use them.

Authenticated with the X-API-Key header.

Loading parameters and examples...

List Discover runs

GET/api/v1/discover

This team's Discover runs, newest first: the 50 most recent, the same list as Your Searches on the dashboard's Discover Influencers page. Deleted runs are not listed. Synchronous and free. `candidates`, `qualified`, `countryChecked` and `countryMatched` are null until a run finishes; `found` is how many influencers it added (and charged for). When `qualified` is greater than `found`, the run stopped at its `maxInfluencers` limit.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get a Discover run and its influencers

GET/api/v1/discover/{id}

One Discover run and the influencers it added, highest average first: the same people Influencer Leads shows for that search. Synchronous and free. `jobTitle`, `company` and `country` come from each person's Author lead once enrichment has filled them, shortly after capture, and are null until then. `highestEngagement` is likes + comments on the person's best matching post (the post they were captured from); until that post is stored it falls back to their average. `topPostText` is null when the post's text was not stored.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Delete a Discover run

DELETE/api/v1/discover/{id}

Delete a Discover run, as Delete on Your Searches does. A SOFT DELETE: the run is deactivated, so it leaves GET /api/v1/discover and its influencers leave GET /api/v1/discover/{id} and Influencer Leads, but the Author leads it already added stay in your leads (GET /api/v1/leads?engagementType=Author) and no credit is refunded. A run still in progress stops at its next checkpoint. Only a Discover run: a keyword search's id is a 404 here (stop those with DELETE /api/v1/keyword/{id}). Synchronous.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Posts

Create a profile posts job

POST/api/v1/profile/posts

Creates an asynchronous job to fetch posts for a tracked personal LinkedIn profile. Results are returned in pages of up to 15 posts (newest first): the completed job's `result` is `{ data: Post[], paginationToken?: string }`. Each post has `contentType`: VIDEO, IMAGE, JOB, LIVE_VIDEO, DOCUMENT or COLLABORATIVE_ARTICLE, the same vocabulary as the keyword search `contentType` filter; it is null when the provider gives no matching type. `paginationToken` is present only while more posts exist — pass it in the next request to page through older posts without overlap; its absence means the end of the reachable history. Reachable depth is bounded (roughly the most recent ~300 posts).

Authenticated with the X-API-Key header.

Loading parameters and examples...

Create a company posts job

POST/api/v1/company/posts

Creates an asynchronous job to fetch posts for a tracked LinkedIn company page. Results are returned in pages of up to 15 posts (newest first): the completed job's `result` is `{ data: Post[], paginationToken?: string }`. Each post has `contentType`: VIDEO, IMAGE, JOB, LIVE_VIDEO, DOCUMENT or COLLABORATIVE_ARTICLE, the same vocabulary as the keyword search `contentType` filter; it is null when the provider gives no matching type. `paginationToken` is present only while more posts exist — pass it in the next request to page through older posts without overlap; its absence means the end of the reachable history. Reachable depth is bounded (roughly the most recent ~300 posts).

Authenticated with the X-API-Key header.

Loading parameters and examples...

Engagements

Create a post reactions job

POST/api/v1/post/reactions

Fetches reactions for a post this team holds - a tracked post, or one its keyword searches or posts-only watches found. WHICH POSTS - `postUrn` is accepted when this team holds the post: (a) one of the 15 most recent posts of a tracked person, company page or tracked post, or (b) a post one of its keyword searches harvested - every `urn` GET /api/v1/sources/{id}/kept-posts returns with a non-null `url`, a stopped search's included - or one of its posts-only watches saw (GET /api/v1/sources/{id}/posts). COST - the call itself charges nothing. On a tracked post (a) the engagers are also saved as that source's leads - the people its own sync captures - so a person new to that source is enriched and billed 1 credit afterwards, like any of its leads. A keyword-search or posts-only post (b) is only READ: the same rows come back and none is saved, so the pull charges nothing then or later and touches neither the search's `creditCap` nor the team's `dailyCeiling`. REFUSALS - 404 `Post not found` when the team holds no such post; a post only another team holds answers exactly the same. 404 with an error starting `Post not tracked` when the team holds it only as an older post of a tracked profile or company page (outside its 15 most recent) or under an untracked posts-only watch: track the post itself with POST /api/v1/post/track (which captures and charges like any tracked source) and retry once its first sync has finished. The endpoint creates a job in `running`, processes it immediately in the team's queue, and returns a `jobId` for a job that is already `completed` or `failed`. GRAIN and PAGING - `total` is the provider's DECLARED count of reactions on the post: not a row count, not a completeness check. IT CAN EXCEED THE ROWS THE PROVIDER WILL SERVE, never the reverse - measured, a post declaring 1167 delivered 1116 rows over a full 24-page sweep, about 5% short, and that gap is OBSERVED rather than a guaranteed bound. It also drifts within one sweep (1165 on pages 0-2, then 1167), so never cache page 0's value and compare later pages against it. THE VERDICT: a sweep that ends with `hasMore: false` has collected everything available from this endpoint, even when the rows fall short of `total` - your loop is not broken; report the shortfall rather than retrying it. When the provider stops serving with a page or more still declared, the last page says `hasMore: false` and `exhausted: false`, and a retry returns the same. A tracked post's sync reports this as `capture.stoppedBy: "provider_limit"` with `capture.coverage` (GET /api/v1/sources/{id}/sync), under the same one-page rule `exhausted` uses here, so the two surfaces agree about the same post. `hasMore` is the termination signal and the only field to branch on; it errs toward `true` (wrong on 7 of 36 measured transitions, always on what turned out to be the last page), so a sweep is never truncated and at worst costs one extra request, and an empty `data` always ends it. Dedupe on `entityUrn`: the provider can repeat a reactor across two pages when its count shifts mid-sweep, so dedupe before counting. THAT REPETITION IS DRIFT-SCALE - a couple of rows per thousand, around the boundary the count moved across - so dedupe and move on. A WHOLE PAGE of repeats is a different thing: a page that comes back as an exact copy of the one before it is a paging defect, not drift (one was measured on 2026-09-09 at 332 rows for 282 reactors - exactly one duplicated page - and fixed), so report that rather than deduping around it. `total` REACHES YOU ON EVERY PAGE, including one a fallback provider served with no count of its own (7 of 42 measured results): the post's own stored reaction count fills in, so the field is never absent on the page that carries your rows. It is `null` - present, never omitted - only when no number exists anywhere, meaning no provider count and no stored count. `hasMore` still falls back to page-fullness on a page the provider gave no count for, the rule the comment endpoints use. ECHO `source` BACK OR YOUR SWEEP STOPS AFTER ONE PAGE. Every page reports `source` - "primary" or "fallback" - naming the provider that served it, and it is the only paging state besides `page`. Send it back unchanged as `source` on every request after the first of the same sweep. When the primary has nothing for a post (or cannot answer its `page: 0` at all) a fallback answers `page: 0`; a `page: 1` request that does not carry `source` is asked of the primary again, gets the same nothing, and reads as the end of pagination. That is the FALLBACK-SERVED SHORTFALL, measured 2026-09-08 at 50 rows of a declared 278 (18% reachable) and 49 of 574 (9%), and on the same post one day earlier at 50 of 104, 52% unreachable - the gap is capped by ONE PAGE regardless of the post, so it grows with the post rather than staying a fixed share. THE SIGNATURE OF HAVING OMITTED IT: rows on page 0 with `source: "fallback"`, an empty page 1, and `exhausted: false`. It is stable across retries, so re-running the sweep is not the remedy; carrying `source` is, and the sweep then pages to exhaustion. Omitting `source` is never an error, only a truncation, and it costs nothing on a primary-served post. THE SERVER NOW DEFAULTS IT, AS A SAFETY NET FOR CALLERS THAT CANNOT SEND IT: `source` omitted on a page past the first is taken to be whichever provider served `page: 0` of the SAME post, when that was within the last hour. An explicit `source` always wins over that default; `page: 0` is always decided afresh, so a post whose provider changes hands is picked up by the next sweep rather than remembered; and a sweep that STARTS past page 0, or pauses more than an hour between pages, has nothing to default from and gets the one-page behaviour above. SEND IT ANYWAY - it is the only thing that makes a sweep correct whatever its timing. `hasMore: false` DOES NOT MEAN YOU HAVE THEM ALL - READ `exhausted`. `hasMore` remains the termination signal and the only field to branch on for whether to request again. `exhausted` answers the other question: `true` means the provider ran out of rows, `false` means it stopped with a page's worth or more still declared and those rows are not reachable by paging, so report the shortfall rather than retrying it. A sweep that merely drifts under `total` (the ~5% above) keeps `exhausted: true` - the line is one full page, the unit the provider serves in. While `hasMore` is true, `exhausted` is `false` and means only "not yet". `total` is never `0` past the end: the provider sends `totalElements: 0` there and Cornersight reports the post's own stored reaction count instead, so a `0` means the post really has no reactions and reaches you only on `page: 0`. PAGE SIZE IS FIXED AT 50 and is not a request parameter: `page` is the only paging control, and a `size` in the body is ignored rather than rejected. So the "last page comes back exactly full" case is not something you can provoke - it happens only when a post's count is an exact multiple of 50, which was true of 14 of 1,000 measured posts. CONTRAST /api/v1/post/comments: its `total` counts something different (top-level comments only) and its `hasMore` is coarser - the same field name does NOT mean the same thing on the two endpoints. IDENTITY MAY BE NULL. Some engagements come back from the data provider carrying the engagement and no identifiable person - a reaction with no reactor, a comment with an empty author. Measured across all stored results on 2026-08-30: about 1 in 116 reactions and 1 in 300 comments. Those rows are returned with every identity field present and set to `null` (never omitted), so every row in `data` has the same shape. THEY ARE COUNTED BUT NOT USABLE AS LEADS: `total` and `hasMore` include them, and Cornersight's own capture skips them, so do NOT read `total` as a count of contactable people. Filter on a null `username` to get the usable subset.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Create a personal post comments job

POST/api/v1/post/comments

Fetches comments for a personal-profile post this team holds - a tracked post, or one its keyword searches or posts-only watches found. WHICH POSTS - `postUrn` is accepted when this team holds the post: (a) one of the 15 most recent posts of a tracked person, company page or tracked post, or (b) a post one of its keyword searches harvested - every `urn` GET /api/v1/sources/{id}/kept-posts returns with a non-null `url`, a stopped search's included - or one of its posts-only watches saw (GET /api/v1/sources/{id}/posts). COST - the call itself charges nothing. On a tracked post (a) the engagers are also saved as that source's leads - the people its own sync captures - so a person new to that source is enriched and billed 1 credit afterwards, like any of its leads. A keyword-search or posts-only post (b) is only READ: the same rows come back and none is saved, so the pull charges nothing then or later and touches neither the search's `creditCap` nor the team's `dailyCeiling`. REFUSALS - 404 `Post not found` when the team holds no such post; a post only another team holds answers exactly the same. 404 with an error starting `Post not tracked` when the team holds it only as an older post of a tracked profile or company page (outside its 15 most recent) or under an untracked posts-only watch: track the post itself with POST /api/v1/post/track (which captures and charges like any tracked source) and retry once its first sync has finished. The endpoint creates a job in `running`, processes it immediately in the team's queue, and returns a `jobId` for a job that is already `completed` or `failed`. CHOOSE EITHER - the personal and company comment endpoints accept ANY post URN regardless of author type, and neither checks it. They take an IDENTICAL primary path: the same provider call, same request body, same page size, and no sort parameter, so ordering is the provider's default for both. They diverge only when that call FAILS, and each then falls back to a DIFFERENT upstream endpoint and skips the reply-augmentation step, so a fallback result can carry fewer replies. An HTTP 500 diverts to that fallback, on any page. A 429, 502, 503 or 504 that outlives its retries, and a connection-level or timeout failure, are retried and then surfaced as errors: this endpoint takes no `source`, so the next page could not be kept on the provider that served this one (the background sync, which keeps each post's sweep on one provider, does fall back on those). Nothing enforces the personal/company distinction, and enforcing it would cost an extra provider call for the ~11% of posts whose author type we cannot infer. GRAIN AND PAGING - `total` counts TOP-LEVEL comments only. `size` accepts 1–50 top-level comments per page (default 50); `includeReplies` defaults to true, and false returns top-level comments only with `isReply: false`. When replies are included, `data` can be larger than `total`. Do not page against `total`; `hasMore` is true whenever `data` is non-empty, so a full sweep has one final empty page. CONTRAST /api/v1/post/reactions, where `total` is the post's DECLARED reactor count - it can exceed the rows served, so it is not a completeness check there either - and `hasMore` is count-based rather than exact. IDENTITY MAY BE NULL. Some engagements come back from the data provider carrying the engagement and no identifiable person - a reaction with no reactor, a comment with an empty author. Measured across all stored results on 2026-08-30: about 1 in 116 reactions and 1 in 300 comments. Those rows are returned with every identity field present and set to `null` (never omitted), so every row in `data` has the same shape. THEY ARE COUNTED BUT NOT USABLE AS LEADS: `total` and `hasMore` include them, and Cornersight's own capture skips them, so do NOT read `total` as a count of contactable people. Filter on a null `username` to get the usable subset. COMMENT TIME - every row carries `postedAt` (ISO 8601) and `postedAtTimestamp` (epoch milliseconds), the same names and types as a post row, and both are `null` - present, never omitted - only when no comment time can be obtained. HOW THE TIME IS OBTAINED - the provider's own comment time when it sends one (the fallback provider does, and it always wins); otherwise the time the comment's own ID encodes. A LinkedIn comment ID carries its creation time: in `urn:li:comment:(activity:<postId>,<commentId>)`, `commentId` shifted right by 22 bits is the creation time in epoch milliseconds, which reproduced the stated creation time of every published example checked to within 2 ms. That is how rows from the primary provider, whose comment object has no time field, carry one. A decoded time is used only when plausible - after 2003-05-01, not in the future and not before the post - and is otherwise `null`. Neither is ever filled from the post's time. On a lead captured from a comment the same time is `commentPostedAt`, while `postPostedAt` is the POST's time. ROW SHAPE - every row has the same fields whichever provider served the page, as the PostComment schema documents: `id` (the comment's URN - its stable key; dedupe on it), `url` (opens the comment on LinkedIn), `text`, `postedAt`, `postedAtTimestamp`, `isReply`, `parentCommentUrn` (a reply's parent comment, otherwise `null`), `isEdited`, `isPinned`, `totalReactions`, `totalComments` (replies to this comment), `reactionType` and `author` - `type` (`person`, `company`, or `null` when the provider names the commenter only by display name), `username`, `profileUrl`, `url`, `linkedinUrl`, `name`, `firstName`, `lastName`, `headline`, `profilePicture` and `entityUrn`. Unknown values are `null`, never omitted. A company commenting as itself has `author.type` `company`, no `username`, a linkedin.com/company/ URL and its company URN, and is never captured as a lead. `comment` and `commenter` are deprecated aliases of `text` and `author`, kept for existing callers. The completed job's `result` is PostCommentsResult: `data`, `total`, `hasMore` and `source` - `primary` or `fallback`, the provider that served the page, as on reactions. On comments `source` is a report only: there is no `source` request field, and each page is served by whichever provider answers it. REPLY SHARE - replies are typically a minority of rows: in a production measurement of stored comment results, 22% of the rows beyond each result's first 10 were replies and 78% were top-level comments. A given post can differ widely, so filter on `isReply` rather than assuming a ratio.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Create a company post comments job

POST/api/v1/post/company-comments

Fetches comments for a company-page post this team holds - a tracked post, or one its keyword searches or posts-only watches found. WHICH POSTS - `postUrn` is accepted when this team holds the post: (a) one of the 15 most recent posts of a tracked person, company page or tracked post, or (b) a post one of its keyword searches harvested - every `urn` GET /api/v1/sources/{id}/kept-posts returns with a non-null `url`, a stopped search's included - or one of its posts-only watches saw (GET /api/v1/sources/{id}/posts). COST - the call itself charges nothing. On a tracked post (a) the engagers are also saved as that source's leads - the people its own sync captures - so a person new to that source is enriched and billed 1 credit afterwards, like any of its leads. A keyword-search or posts-only post (b) is only READ: the same rows come back and none is saved, so the pull charges nothing then or later and touches neither the search's `creditCap` nor the team's `dailyCeiling`. REFUSALS - 404 `Post not found` when the team holds no such post; a post only another team holds answers exactly the same. 404 with an error starting `Post not tracked` when the team holds it only as an older post of a tracked profile or company page (outside its 15 most recent) or under an untracked posts-only watch: track the post itself with POST /api/v1/post/track (which captures and charges like any tracked source) and retry once its first sync has finished. The endpoint creates a job in `running`, processes it immediately in the team's queue, and returns a `jobId` for a job that is already `completed` or `failed`. CHOOSE EITHER - the personal and company comment endpoints accept ANY post URN regardless of author type, and neither checks it. They take an IDENTICAL primary path: the same provider call, same request body, same page size, and no sort parameter, so ordering is the provider's default for both. They diverge only when that call FAILS, and each then falls back to a DIFFERENT upstream endpoint and skips the reply-augmentation step, so a fallback result can carry fewer replies. An HTTP 500 diverts to that fallback, on any page. A 429, 502, 503 or 504 that outlives its retries, and a connection-level or timeout failure, are retried and then surfaced as errors: this endpoint takes no `source`, so the next page could not be kept on the provider that served this one (the background sync, which keeps each post's sweep on one provider, does fall back on those). Nothing enforces the personal/company distinction, and enforcing it would cost an extra provider call for the ~11% of posts whose author type we cannot infer. GRAIN AND PAGING - `total` counts TOP-LEVEL comments only. `size` accepts 1–50 top-level comments per page (default 50); `includeReplies` defaults to true, and false returns top-level comments only with `isReply: false`. When replies are included, `data` can be larger than `total`. Do not page against `total`; `hasMore` is true whenever `data` is non-empty, so a full sweep has one final empty page. CONTRAST /api/v1/post/reactions, where `total` is the post's DECLARED reactor count - it can exceed the rows served, so it is not a completeness check there either - and `hasMore` is count-based rather than exact. IDENTITY MAY BE NULL. Some engagements come back from the data provider carrying the engagement and no identifiable person - a reaction with no reactor, a comment with an empty author. Measured across all stored results on 2026-08-30: about 1 in 116 reactions and 1 in 300 comments. Those rows are returned with every identity field present and set to `null` (never omitted), so every row in `data` has the same shape. THEY ARE COUNTED BUT NOT USABLE AS LEADS: `total` and `hasMore` include them, and Cornersight's own capture skips them, so do NOT read `total` as a count of contactable people. Filter on a null `username` to get the usable subset. COMMENT TIME - every row carries `postedAt` (ISO 8601) and `postedAtTimestamp` (epoch milliseconds), the same names and types as a post row, and both are `null` - present, never omitted - only when no comment time can be obtained. HOW THE TIME IS OBTAINED - the provider's own comment time when it sends one (the fallback provider does, and it always wins); otherwise the time the comment's own ID encodes. A LinkedIn comment ID carries its creation time: in `urn:li:comment:(activity:<postId>,<commentId>)`, `commentId` shifted right by 22 bits is the creation time in epoch milliseconds, which reproduced the stated creation time of every published example checked to within 2 ms. That is how rows from the primary provider, whose comment object has no time field, carry one. A decoded time is used only when plausible - after 2003-05-01, not in the future and not before the post - and is otherwise `null`. Neither is ever filled from the post's time. On a lead captured from a comment the same time is `commentPostedAt`, while `postPostedAt` is the POST's time. ROW SHAPE - every row has the same fields whichever provider served the page, as the PostComment schema documents: `id` (the comment's URN - its stable key; dedupe on it), `url` (opens the comment on LinkedIn), `text`, `postedAt`, `postedAtTimestamp`, `isReply`, `parentCommentUrn` (a reply's parent comment, otherwise `null`), `isEdited`, `isPinned`, `totalReactions`, `totalComments` (replies to this comment), `reactionType` and `author` - `type` (`person`, `company`, or `null` when the provider names the commenter only by display name), `username`, `profileUrl`, `url`, `linkedinUrl`, `name`, `firstName`, `lastName`, `headline`, `profilePicture` and `entityUrn`. Unknown values are `null`, never omitted. A company commenting as itself has `author.type` `company`, no `username`, a linkedin.com/company/ URL and its company URN, and is never captured as a lead. `comment` and `commenter` are deprecated aliases of `text` and `author`, kept for existing callers. The completed job's `result` is PostCommentsResult: `data`, `total`, `hasMore` and `source` - `primary` or `fallback`, the provider that served the page, as on reactions. On comments `source` is a report only: there is no `source` request field, and each page is served by whichever provider answers it. REPLY SHARE - replies are typically a minority of rows: in a production measurement of stored comment results, 22% of the rows beyond each result's first 10 were replies and 78% were top-level comments. A given post can differ widely, so filter on `isReply` rather than assuming a ratio.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Jobs

Get job status

GET/api/v1/jobs/{jobId}/status

Returns the current status for a Public API job owned by the authenticated team. This endpoint does not create jobs. For enrichment jobs, the completed result includes a creditsCharged field indicating how many enriching credits that job consumed. For company enrichment jobs the completed `result` matches the CompanyEnrichmentResult schema. For comment jobs (POST /api/v1/post/comments and /post/company-comments) it matches PostCommentsResult, whose rows are PostComment.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Credits

Get credit balance

GET/api/v1/credits

Read the authenticated team's enriching credit balance (balance, used, limit, remaining, plan, and the reset dates). Enrichment charges one credit per newly enriched person per source; repeat engagement rows are free; already-enriched, failed, and empty leads are not charged. Read-only, synchronous — returns the balance directly, not a job.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get credit usage breakdown

GET/api/v1/credits/usage

Read a dated and by-source breakdown of enriching credits charged. Returns totalCharged plus bySource (e.g. api_enrich_profile from the Public API vs worker_sync from the automated sync), byDate (per UTC day) and bySourceId (per tracked source). RECONCILE WITH bySourceId: it sums to totalCharged even when the charged leads are no longer readable, because a source untracked inside the window is still reported there, named and marked status "inactive". bySource says which SYSTEM charged, never which source, so it cannot close a gap between credits and visible leads on its own. Defaults to the current billing period; pass from/to (ISO 8601) to widen or narrow the window. Read-only, synchronous. Reconcile against the balance from getCredits.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Account

List API keys and quota

GET/api/v1/keys

List the team's ACTIVE API keys (masked — never the plaintext or hash) plus the per-team quota. A valid key manages its OWN team's keys. Read-only. Returns { keys: [{ id, name, keyPrefix, createdAt, lastUsedAt }], used, max, remaining }.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Create an API key

POST/api/v1/keys

Create a new named API key for the team. **The plaintext `apiKey` is returned ONCE in this response and is never retrievable again** — store it immediately. Capped at the per-team `max` (see listApiKeys); at the cap this returns 409 `max_keys_reached`. Keys are SHA-256 hashed at rest.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Revoke an API key

DELETE/api/v1/keys/{id}

Revoke an API key by id (soft delete). It stops authenticating immediately; the audit row is kept. Team-scoped — a team can only revoke its own keys. Get the id from listApiKeys.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Webhooks

Get the webhook signing secret

GET/api/v1/webhook/signing-secret

The team's webhook signing secret (whsec_...). ONE secret per team signs every webhook Cornersight sends it: lead.detected, the sync and spend events, and the Engagement Agent's webhook. Verify each POST: X-Cornersight-Signature is sha256=<hex> of HMAC-SHA256 over the exact string "{timestamp}.{raw body}" with this secret, where the timestamp is the raw text of the X-Cornersight-Timestamp header (Unix epoch seconds, e.g. 1700000000); reject timestamps more than 5 minutes from your clock. Created on first read. It is a credential: keep it server-side. Read-only, charges nothing. Also on the dashboard ("Reveal signing secret" in any webhook panel), MCP get_webhook_signing_secret and CLI webhook-secret. To replace it, POST /api/v1/webhook/signing-secret/rotate.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Regenerate the webhook signing secret

POST/api/v1/webhook/signing-secret/rotate

Replace the team's webhook signing secret with a new one and return it. Every webhook sent after this is signed with the NEW secret at once (no overlap window), so your receiver rejects our webhooks until you give it the new secret. Requires { "confirm": true }. The dashboard's Regenerate (owners and admins) does the same. Charges nothing.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Push historical leads for a tracked personal LinkedIn profile

POST/api/v1/profile/{username}/push

Push ALREADY-CAPTURED leads to this source's configured destination — the historical backfill / replay action that `autoSend: false` ("deliver only on explicit push") refers to, and the public form of the dashboard's "select the leads to push" panel. **Historical vs future.** A push selects on `detectedAt` over the half-open window `[since, until)`. When `until` is omitted it is stamped with the instant the push is accepted, so the cohort is closed and reproducible: everything with `detectedAt` before that instant is HISTORICAL and belongs to this push; everything at or after it is FUTURE and belongs to auto-send. A push never races capture. **ICP vs all.** `scope: "all"` selects every eligible lead on the source; `scope: "icp"` selects only those with `isIcp: true` — the same flag `GET /api/v1/leads` returns and the same one the source's ICP rules write. NOTE the interaction with the webhook's own `icpOnly` flag: `icpOnly` filters at DELIVERY time, so an `all` push against an `icpOnly: true` webhook queues everything and delivers only the ICP subset — the rest are reported as `held` by the status endpoint. **Eligibility.** Only `enriched` leads are ever selected: the delivered payload is built from enrichment fields and the delivery poller only reads enriched rows, so an un-enriched lead moved to `pending` would never be sent. The response's `notSelected` counts the leads in the same scope and window that were skipped for that reason: `awaitingEnrichment` (still being enriched — auto-send or a later push delivers them) and `enrichmentFailed` (enrichment ended without data; never deliverable). **Idempotency.** Supply `idempotencyKey` to make a retry safe: a second push with the same key returns the FIRST push's result with `replayed: true` and queues nothing. The same key with different parameters is a `409`. Without a key every call is a new push (and a re-push of an already-delivered lead is a legitimate replay — delivery is at-least-once, dedupe on `data.leadId`). **Progress.** The response carries a `pushId` and `statusUrl`; poll `GET /api/v1/push/{pushId}` for the live status distribution of exactly this push's cohort. **Size.** At most 2000 leads per push, oldest first. A larger cohort returns `truncated: true` and a `nextSince`; repeat the push with `since: nextSince` (and a NEW idempotency key) to continue. **Cost.** A push charges no credits: it re-queues leads that were already captured and enriched, and re-enriches none, so a backfill or replay of any size is free. Saving or changing a webhook URL through this API does NOT deliver history — this operation is the only public way to send it. **UNTRACKED SOURCES CANNOT BE PUSHED.** A source you untracked is not actionable: this returns `404`, the same as a source that was never tracked. Untracking is a soft delete, so its leads are still in the database — but they are out of every view AND out of every delivery, because a push is the operation that acts on leads that already exist, and sending data the product told you was gone into your CRM is the one outcome deletion has to prevent. The same rule governs this source's webhook and ICP configuration, which is what a push delivers to. KEYWORD searches are the deliberate exception, here as everywhere: stopping a search keeps its leads readable, so pushing them stays available.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Push historical leads for a tracked LinkedIn company page

POST/api/v1/company/{username}/push

Push ALREADY-CAPTURED leads to this source's configured destination — the historical backfill / replay action that `autoSend: false` ("deliver only on explicit push") refers to, and the public form of the dashboard's "select the leads to push" panel. **Historical vs future.** A push selects on `detectedAt` over the half-open window `[since, until)`. When `until` is omitted it is stamped with the instant the push is accepted, so the cohort is closed and reproducible: everything with `detectedAt` before that instant is HISTORICAL and belongs to this push; everything at or after it is FUTURE and belongs to auto-send. A push never races capture. **ICP vs all.** `scope: "all"` selects every eligible lead on the source; `scope: "icp"` selects only those with `isIcp: true` — the same flag `GET /api/v1/leads` returns and the same one the source's ICP rules write. NOTE the interaction with the webhook's own `icpOnly` flag: `icpOnly` filters at DELIVERY time, so an `all` push against an `icpOnly: true` webhook queues everything and delivers only the ICP subset — the rest are reported as `held` by the status endpoint. **Eligibility.** Only `enriched` leads are ever selected: the delivered payload is built from enrichment fields and the delivery poller only reads enriched rows, so an un-enriched lead moved to `pending` would never be sent. The response's `notSelected` counts the leads in the same scope and window that were skipped for that reason: `awaitingEnrichment` (still being enriched — auto-send or a later push delivers them) and `enrichmentFailed` (enrichment ended without data; never deliverable). **Idempotency.** Supply `idempotencyKey` to make a retry safe: a second push with the same key returns the FIRST push's result with `replayed: true` and queues nothing. The same key with different parameters is a `409`. Without a key every call is a new push (and a re-push of an already-delivered lead is a legitimate replay — delivery is at-least-once, dedupe on `data.leadId`). **Progress.** The response carries a `pushId` and `statusUrl`; poll `GET /api/v1/push/{pushId}` for the live status distribution of exactly this push's cohort. **Size.** At most 2000 leads per push, oldest first. A larger cohort returns `truncated: true` and a `nextSince`; repeat the push with `since: nextSince` (and a NEW idempotency key) to continue. **Cost.** A push charges no credits: it re-queues leads that were already captured and enriched, and re-enriches none, so a backfill or replay of any size is free. Saving or changing a webhook URL through this API does NOT deliver history — this operation is the only public way to send it. **UNTRACKED SOURCES CANNOT BE PUSHED.** A source you untracked is not actionable: this returns `404`, the same as a source that was never tracked. Untracking is a soft delete, so its leads are still in the database — but they are out of every view AND out of every delivery, because a push is the operation that acts on leads that already exist, and sending data the product told you was gone into your CRM is the one outcome deletion has to prevent. The same rule governs this source's webhook and ICP configuration, which is what a push delivers to. KEYWORD searches are the deliberate exception, here as everywhere: stopping a search keeps its leads readable, so pushing them stays available.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Push historical leads for a keyword search

POST/api/v1/keyword/{id}/push

Push ALREADY-CAPTURED leads to this source's configured destination — the historical backfill / replay action that `autoSend: false` ("deliver only on explicit push") refers to, and the public form of the dashboard's "select the leads to push" panel. **Historical vs future.** A push selects on `detectedAt` over the half-open window `[since, until)`. When `until` is omitted it is stamped with the instant the push is accepted, so the cohort is closed and reproducible: everything with `detectedAt` before that instant is HISTORICAL and belongs to this push; everything at or after it is FUTURE and belongs to auto-send. A push never races capture. **ICP vs all.** `scope: "all"` selects every eligible lead on the source; `scope: "icp"` selects only those with `isIcp: true` — the same flag `GET /api/v1/leads` returns and the same one the source's ICP rules write. NOTE the interaction with the webhook's own `icpOnly` flag: `icpOnly` filters at DELIVERY time, so an `all` push against an `icpOnly: true` webhook queues everything and delivers only the ICP subset — the rest are reported as `held` by the status endpoint. **Eligibility.** Only `enriched` leads are ever selected: the delivered payload is built from enrichment fields and the delivery poller only reads enriched rows, so an un-enriched lead moved to `pending` would never be sent. The response's `notSelected` counts the leads in the same scope and window that were skipped for that reason: `awaitingEnrichment` (still being enriched — auto-send or a later push delivers them) and `enrichmentFailed` (enrichment ended without data; never deliverable). **Idempotency.** Supply `idempotencyKey` to make a retry safe: a second push with the same key returns the FIRST push's result with `replayed: true` and queues nothing. The same key with different parameters is a `409`. Without a key every call is a new push (and a re-push of an already-delivered lead is a legitimate replay — delivery is at-least-once, dedupe on `data.leadId`). **Progress.** The response carries a `pushId` and `statusUrl`; poll `GET /api/v1/push/{pushId}` for the live status distribution of exactly this push's cohort. **Size.** At most 2000 leads per push, oldest first. A larger cohort returns `truncated: true` and a `nextSince`; repeat the push with `since: nextSince` (and a NEW idempotency key) to continue. **Cost.** A push charges no credits: it re-queues leads that were already captured and enriched, and re-enriches none, so a backfill or replay of any size is free. Saving or changing a webhook URL through this API does NOT deliver history — this operation is the only public way to send it. **UNTRACKED SOURCES CANNOT BE PUSHED.** A source you untracked is not actionable: this returns `404`, the same as a source that was never tracked. Untracking is a soft delete, so its leads are still in the database — but they are out of every view AND out of every delivery, because a push is the operation that acts on leads that already exist, and sending data the product told you was gone into your CRM is the one outcome deletion has to prevent. The same rule governs this source's webhook and ICP configuration, which is what a push delivers to. KEYWORD searches are the deliberate exception, here as everywhere: stopping a search keeps its leads readable, so pushing them stays available.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Push historical leads for any source, by source id

POST/api/v1/sources/{id}/push

THE SAME PUSH, ADDRESSED BY SOURCE ID, FOR EVERY KIND OF SOURCE — a person, a company page, a keyword search or a TRACKED POST. It is the only push a tracked post has: the other push routes are keyed by a LinkedIn handle or a keyword search's id, and a post's identifier is an activity URN, so its leads — including the ones captured before its webhook was set — could not be backfilled or replayed after a failed delivery. Body, selection, idempotency, paging and response are exactly those of the other push routes. For a tracked post it is also what `autoSend: false` (PUT /api/v1/sources/{id}/webhook) holds new leads for. Push ALREADY-CAPTURED leads to this source's configured destination — the historical backfill / replay action that `autoSend: false` ("deliver only on explicit push") refers to, and the public form of the dashboard's "select the leads to push" panel. **Historical vs future.** A push selects on `detectedAt` over the half-open window `[since, until)`. When `until` is omitted it is stamped with the instant the push is accepted, so the cohort is closed and reproducible: everything with `detectedAt` before that instant is HISTORICAL and belongs to this push; everything at or after it is FUTURE and belongs to auto-send. A push never races capture. **ICP vs all.** `scope: "all"` selects every eligible lead on the source; `scope: "icp"` selects only those with `isIcp: true` — the same flag `GET /api/v1/leads` returns and the same one the source's ICP rules write. NOTE the interaction with the webhook's own `icpOnly` flag: `icpOnly` filters at DELIVERY time, so an `all` push against an `icpOnly: true` webhook queues everything and delivers only the ICP subset — the rest are reported as `held` by the status endpoint. **Eligibility.** Only `enriched` leads are ever selected: the delivered payload is built from enrichment fields and the delivery poller only reads enriched rows, so an un-enriched lead moved to `pending` would never be sent. The response's `notSelected` counts the leads in the same scope and window that were skipped for that reason: `awaitingEnrichment` (still being enriched — auto-send or a later push delivers them) and `enrichmentFailed` (enrichment ended without data; never deliverable). **Idempotency.** Supply `idempotencyKey` to make a retry safe: a second push with the same key returns the FIRST push's result with `replayed: true` and queues nothing. The same key with different parameters is a `409`. Without a key every call is a new push (and a re-push of an already-delivered lead is a legitimate replay — delivery is at-least-once, dedupe on `data.leadId`). **Progress.** The response carries a `pushId` and `statusUrl`; poll `GET /api/v1/push/{pushId}` for the live status distribution of exactly this push's cohort. **Size.** At most 2000 leads per push, oldest first. A larger cohort returns `truncated: true` and a `nextSince`; repeat the push with `since: nextSince` (and a NEW idempotency key) to continue. **Cost.** A push charges no credits: it re-queues leads that were already captured and enriched, and re-enriches none, so a backfill or replay of any size is free. Saving or changing a webhook URL through this API does NOT deliver history — this operation is the only public way to send it. **UNTRACKED SOURCES CANNOT BE PUSHED.** A source you untracked is not actionable: this returns `404`, the same as a source that was never tracked. Untracking is a soft delete, so its leads are still in the database — but they are out of every view AND out of every delivery, because a push is the operation that acts on leads that already exist, and sending data the product told you was gone into your CRM is the one outcome deletion has to prevent. The same rule governs this source's webhook and ICP configuration, which is what a push delivers to. KEYWORD searches are the deliberate exception, here as everywhere: stopping a search keeps its leads readable, so pushing them stays available.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Get the progress of a lead push

GET/api/v1/push/{pushId}

Live progress for one recorded push, over EXACTLY the leads that push selected. This is why a push is recorded at all: `webhookStatus` on a lead is shared by every delivery path (auto-send, the daily sync, an earlier push), so it cannot answer "how far along is the push I started?". The counts here are the current status distribution of this push's own cohort. `delivered` is `sent`, `failed` is a delivery that exhausted its attempts, and `held` is `no_webhook` — the delivery path looked at the lead and had nothing to send it to, which in practice means an `icpOnly` webhook rejecting a non-ICP lead. `done` is true once nothing is `pending` or `sending`. `status` says where the push stands in one word — `queued` means none of its leads has been attempted yet — and `stalled` is true when its leads are still unattempted five minutes (`stalledAfterSeconds`) after the push was accepted: a delay on Cornersight's side, not your endpoint. A healthy push is attempted within about a minute.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Social Feed Activity

List the people tracked on Social Feed Activity

GET/api/v1/social-feed

Every person this team tracks on Social Feed Activity (untracked ones excluded), oldest first. A person can also be tracked on Profile & Post Engagement; that is a separate source and is listed by GET /api/v1/sources, not here.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Track a person on Social Feed Activity

POST/api/v1/social-feed/track

Start tracking the posts a person likes and comments on; each post's author becomes a lead. **Spends credits:** the first check is queued at once (1 credit, plus 1 per new author), then daily. Re-tracking someone you untracked revives their source with its leads (200, `created: false`); re-tracking a tracked person changes only the fields sent. Unknown fields are a 400.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Read one person tracked on Social Feed Activity

GET/api/v1/social-feed/{username}

The person, with how their latest check went.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Change a Social Feed Activity source

PATCH/api/v1/social-feed/{username}

Change what it captures, its new-author limit per check, or pause and resume it. Send at least one field; it binds from the next check. `paused: false` starts the daily check and its spend again. The webhook and ICP filter are set with PUT /api/v1/sources/{id}/webhook and /icp.

Authenticated with the X-API-Key header.

Loading parameters and examples...

Stop tracking a person on Social Feed Activity

DELETE/api/v1/social-feed/{username}

A soft delete: the source is deactivated and every lead it captured is kept; tracking the same handle again revives it. The person's Profile & Post Engagement source, if any, is a different source and is not touched.

Authenticated with the X-API-Key header.

Loading parameters and examples...