Skip to content

Lead Magnets

Discover LinkedIn posts that gate a resource behind a comment and work their comment sections.

These parameters mean the same thing on every tool below that takes them.

  • workspaceId: Workspace ID. Omit it when this connection reaches one workspace: a workspace key (cs_) is bound to its own, and a user key (csu_) or connected app whose person belongs to exactly one workspace defaults to that one. Required only when the person belongs to several; the error then lists them, and campaignstack_whoami reports them too.

Full name: campaignstack_get_lead_magnets

magnets:read Read-only

Read lead-magnet posts, seeds, creators, runs, settings, and insights through one stable items[] envelope. Includes are bounded and optional. With include.insights, omit filters.niche to list available niches, then pass a niche slug to read its report.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
includeobjectNo{"posts":true}
include.postsbooleanNofalse
include.seedsbooleanNofalse
include.creatorsbooleanNofalse
include.runsbooleanNofalse
include.settingsbooleanNofalse
include.insightsbooleanNofalse
filtersobjectNo—
filters.postStatuscandidate | sourced | dismissedNo—
filters.creatorStatuscandidate | promoted | dismissedNo—
filters.topicstringNo—
filters.maxAgeDaysintegerNo—Only posts published within this many days. (min: 1, max: 365)
filters.seedIdsstring[]No—
filters.runIdstringNo—
filters.nichestringNo—
filters.weekstringNo—
limitintegerNo20(min: 1, max: 200)

Full name: campaignstack_discover_lead_magnets

magnets:write Acts outside CampaignStack Needs confirmation

Start topic-search discovery or resolve explicit LinkedIn post URLs. Topic search can spend credits and requires confirmCost:true before any discovery action. Explicit URLs are asynchronous seeds and can be checked with get_lead_magnets include.seeds. For topic-search runs: Charges lead_magnet_run credits per call; campaignstack_estimate_cost gives the number before you commit. Refunded on failure. The weekly recurrence is opt-in and charges the same per run.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
modetopic_search | post_urlsNo—
topicsstring[]No—
postUrlsstring[]No—
confirmCostbooleanNo—Required for topic_search because it starts a billable discovery run.

Full name: campaignstack_edit_lead_magnets

magnets:write

Apply lead-magnet post source/dismiss, creator promote/dismiss, topic edits, or weekly schedule edits. Creator promotion returns seedPosts: offer to source these with op=post, disposition=source and their junctionId. Sourcing creates agents with public replies off. Sourcing a post with sendAccountIds [] collects its commenters without contacting anyone; omitted, it sends from the only ready LinkedIn account or asks you to choose. Enabling weekly discovery requires confirmRecurringCost:true because it repeats a billable search until disabled. Use campaignstack_estimate_cost with campaignstack_discover_lead_magnets to quote each run before enabling it.

NameTypeRequiredDefaultDescription
workspaceIdstringNo—See common parameters.
operationsoperation[]Yes—One or more operations, see below.
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
junctionIdstringYes—(min length: 1)
dispositionsource | dismissYes—
readAccountIdsstring[]No—For disposition=source: LinkedIn accounts that read/watch the post and collect commenters. Omit (or pass []) to let CampaignStack pick the readers.
sendAccountIdsstring[]No—For disposition=source: LinkedIn accounts that contact sourced commenters. Omit to send from the workspace’s only LinkedIn account that is ready; with several, the error lists them so you can ask the person. Pass [] to collect commenters without contacting anyone.
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
creatorIdstringYes—(min length: 1)
dispositionpromote | dismissYes—
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
addstring[]No—
removeIdsstring[]No—
NameTypeRequiredDefaultDescription
clientOperationIdstringNo—
enabledbooleanYes—
topicsstring[]No—
confirmRecurringCostbooleanNo—Required when enabled=true; weekly discovery uses credits per run and repeats until disabled.