Facebook Pixel
Campaigns

Campaigns

Create, fill and run multi-step LinkedIn outreach campaigns over the ConnectSafely API, CLI and MCP server. Every campaign is created in DRAFT with a ready default flow — nothing sends until you start it.

A campaign runs a flow (an ordered sequence of LinkedIn steps) against an audience, from one or more of your accounts. The same surface is available three ways — the REST API under /v1/campaigns, the connectsafely CLI, and the MCP server — with identical operation names.

Two rules that never change

A campaign is created in DRAFT. Nothing sends until you start it. Creating, updating and adding people never send outreach. start-campaign (and resuming a paused run) is the one deliberate action that does.

One call is usually enough. create-campaign attaches a proven default flow and a sensible schedule automatically, so a new campaign is ready to launch as-is. You only author a flow to customize it.

Lifecycle

# 1. Create — DRAFT, default flow attached. workspaceId is optional when your key has one.
connectsafely create-campaign \
  --name "Q1 — Seed founders" \
  --workspace-id "$WS" \
  --list-id "$LIST" \
  --linked-in-account-ids "$ACC"

# 2. Add people — up to 500 per call, by linkedinUrl or publicId
connectsafely add-campaign-contacts --id "$CAMP" \
  --contacts '[{"publicId":"ada-lovelace"},{"linkedinUrl":"https://www.linkedin.com/in/grace-hopper"}]'

# 3. Launch — this SENDS. The CLI requires --yes when non-interactive.
connectsafely start-campaign --id "$CAMP" \
  --timezone "Asia/Kolkata" --active-days '[1,2,3,4,5]' --active-start 09:00 --active-end 18:00 --yes

Over REST the same three steps are POST /v1/campaigns, POST /v1/campaigns/{id}/contacts and POST /v1/campaigns/{id}/runs. Every operation authenticates with your API key (Authorization: Bearer <key>).

Operations

OperationMethod & pathWhat it does
create-campaignPOST /v1/campaignsCreate a DRAFT (default flow attached). Clone with { sourceId }.
list-campaignsGET /v1/campaignsList campaigns in the workspace.
get-campaignGET /v1/campaigns/{id}One campaign, with its workflow, sources and counts.
update-campaignPATCH /v1/campaigns/{id}Change settings. Most fields lock once a run is active.
delete-campaignDELETE /v1/campaigns/{id}Delete (blocked while a run is active).
add-campaign-contactsPOST /v1/campaigns/{id}/contactsAdd people (≤500/call). The workhorse call.
list-campaign-contactsGET /v1/campaigns/{id}/contactsThe enrolled people.
update-campaign-contactPATCH /v1/campaigns/{id}/contacts/{campaignContactId}Select/deselect, override data.
remove-campaign-contactDELETE /v1/campaigns/{id}/contacts/{contactId}Remove one person.
remove-campaign-contactsDELETE /v1/campaigns/{id}/contactsBulk remove ({ contactIds }).
add-campaign-source / remove-campaign-sourcePOST/DELETE /v1/campaigns/{id}/sources[/{sourceId}]Manage audience sources.
get-campaign-flowGET /v1/campaigns/{id}/flowRead the flow and its steps.
replace-campaign-flowPUT /v1/campaigns/{id}/flowAuthor the flow (full replace).
start-campaignPOST /v1/campaigns/{id}/runsLaunch — sends. Creates a run, flips to ACTIVE.
set-campaign-run-statePATCH /v1/campaigns/runs/{runId}Pause / resume / cancel (ACTIVE resumes — it sends).
list-campaign-runs / get-campaign-runGET /v1/campaigns/{id}/runs, /v1/campaigns/runs/{runId}Run status, per-run prospectBreakdown, latest-worked prospects.
get-campaign-run-funnelGET /v1/campaigns/runs/{runId}/funnelPer-step conversion funnel (visited → connected → replied) + headline totals.
get-campaign-run-timeseriesGET /v1/campaigns/runs/{runId}/timeseriesDaily sends/replies (range=7d|30d|90d, default 30d).

Field-level request/response reference for each endpoint is in the API reference. To customize the step sequence, see Authoring a flow.

On this page