Plan a campaign
Step one of two. Turns a plain-language brief plus a set of searches into a reviewable campaign spec, and preflights the workspace against it.
Nothing is pushed to Smartlead or HeyReach here. The issues array is the point: it surfaces every setup problem — missing API key, no connected inbox or sender, no eligible leads — before anyone can publish.
Authorizations
A signed-in workspace session, sent as a browser cookie. Requests must include credentials, and act on the session's active workspace.
Body
What the campaign should do, in plain language.
"Four-touch LinkedIn sequence for the Lévis clinic managers, warm and short, two days apart."
The searches to draw leads from. Searches outside your workspace are ignored.
1Which model extracts criteria. Anything outside this allowlist is rejected. Omit to use the workspace default.
claude-haiku-4-5, claude-sonnet-5, claude-opus-5 Response
The proposed spec and its eligibility preview.
The reviewable campaign plan. Produced by the plan endpoint, sent back verbatim to publish.
Unique leads across the selected searches.
Leads reachable on the chosen platform — with an email for Smartlead, a LinkedIn URL for HeyReach.
Blocking setup problems, in plain language. Empty means the campaign is publishable.