Get lead lists
campaignstack_get_lead_listsRead lead lists by ids, or list a campaign's or the workspace's lead lists, narrowed by origin (source) or by LinkedIn account (accountId: that account's connections, invited and post engagers lists). Optionally includes a bounded page of members. Use this when the user asks which lists exist or who is in them; it does not add or remove members. Results are one page. When pagination reports more, say so rather than presenting the page as the whole set, and page through before counting anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Specific lead-list IDs. Max 25. | |
| limit | No | ||
| cursor | No | ||
| source | No | Only lists of this origin. linkedin_connections, linkedin_invited (people the account's workflows sent a connection request to) and linkedin_post_engagers (people who reacted to, commented on or reposted the account's posts) are the lists a LinkedIn account owns; the last two are kept up to date by CampaignStack and their members cannot be edited. | |
| accountId | No | Only the lists this LinkedIn account owns in the workspace (its connections, invited and post engagers lists). | |
| campaignId | No | List lead lists in this campaign when ids are omitted. Without it, the workspace's lists are listed. | |
| workspaceId | No | 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. | |
| includeMembers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| warnings | No | ||
| missingIds | No | ||
| pagination | Yes |