Skip to main content
POST
Plan a campaign

Authorizations

session
string
cookie
required

A signed-in workspace session, sent as a browser cookie. Requests must include credentials, and act on the session's active workspace.

Body

application/json
prompt
string
required

What the campaign should do, in plain language.

Example:

"Four-touch LinkedIn sequence for the Lévis clinic managers, warm and short, two days apart."

scanIds
string<uuid>[]
required

The searches to draw leads from. Searches outside your workspace are ignored.

Minimum array length: 1
model
enum<string>

Which model extracts criteria. Anything outside this allowlist is rejected. Omit to use the workspace default.

Available options:
claude-haiku-4-5,
claude-sonnet-5,
claude-opus-5

Response

The proposed spec and its eligibility preview.

spec
object

The reviewable campaign plan. Produced by the plan endpoint, sent back verbatim to publish.

totalLeads
integer

Unique leads across the selected searches.

eligibleLeads
integer

Leads reachable on the chosen platform — with an email for Smartlead, a LinkedIn URL for HeyReach.

withEmail
integer
withLinkedIn
integer
issues
string[]

Blocking setup problems, in plain language. Empty means the campaign is publishable.