Write

Manage A/B Variants

Manages A/B variants for a specific campaign step. Use action='list' to see variants, 'add' to create a new arm (label plus message_template, with limits split evenly), or 'remove' to retire an arm so enrolled leads fall back to the base template. Target the pre-send sequence or the post-acceptance follow-up step array. Fails if the campaign or step is not found.

manage_variantsDELETE/api/v1/campaigns/{campaign_id}/steps/{step_index}/variants/{variant_label}
crispy — bash

Example prompt: Add variant B to step 0 of gtm-engineers-apr26 with a more casual opener

{
  "campaign_id": "gtm-engineers-apr26",
  "step_index": 0,
  "action": "add",
  "variants": ["A", "B"]
}
Permission scope
core
Access
Write
Category
Campaigns

What you can build

Test two invite openers head-to-head on the same step
Add a fresh variant to an underperforming follow-up message
Retire a losing arm and route leads back to the base template
List all variants on a step to review your current experiment

Parameters

Inputs accepted by manage_variants.

NameTypeDescription
campaign_idstringCampaign slug (e.g. 'gtm-engineers-apr26').
action"list" | "add" | "remove"'list' returns all variants for the step; 'add' adds a new variant; 'remove' retires a variant arm (requires label).
step_indexnumber0-based index of the sequence step to manage variants for. Required: matches REST path /campaigns/{campaign_id}/steps/{step_index}/variants.
labelstringRequired for action='add'. Short label for the variant (e.g. 'B').
message_templatestringRequired for action='add'. Message template text for this variant. Supports {first_name}, {company}, etc.
subjectstringOptional for action='add'. Subject line for InMail steps.
target"sequence" | "follow_up"Which step array to target. 'sequence' (default) = pre-send. 'follow_up' = post-acceptance.

The complete LinkedIn API. Ready when you are.

Connect your first LinkedIn profile in under 5 minutes. Every tool, every seat, no feature gates. Safe limits, warm-up, and full permission control built in.