Get leads
campaignstack_get_leadsRead leads by ids or search filters in one bounded V2 envelope. Includes are capped; campaign-specific scoreBreakdown requires campaignId. Use this instead of legacy search/get pairs when the user needs leads plus selected context. It does not modify leads or enqueue outreach. 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 IDs to hydrate. Max 25. | |
| limit | No | ||
| query | No | Name, email, or LinkedIn URL search when ids are omitted. | |
| cursor | No | ||
| include | No | ||
| companyId | No | Restrict search to leads attached to this company. | |
| campaignId | No | Required when include.scoreBreakdown is true. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| warnings | No | ||
| missingIds | No | ||
| pagination | Yes |