Skip to main content
POST
Create A/B Test Variant
A/B testing requires at least the Email Pro plan.
A/B testing lets you compare two versions of a single step. Calling this endpoint creates a variant B template, prefilled with a copy of variant A’s subject, content, and config, and starts the test: leads going through the step are split between variant A and variant B. Once created, edit variant B with Update A/B Test Variant, read it with Get A/B Test Variant, and conclude the test with Select A/B Test Winner.

Scope and constraints

  • A/B testing is supported on email, LinkedIn invite (linkedinInvite) and LinkedIn message (linkedinSend) steps. Any other step type is rejected with 400.
  • The step must have a template (variant A) and must not already run an A/B test.
  • Variant A’s template must have a message, except on LinkedIn invite steps (where an empty message means “invite without a note”) — variant B starts as a copy of it.
  • As with other step edits, the test cannot be created while the campaign is running on a non-editable sequence.
  • This endpoint covers A/B testing on a single step only.
The response returns variant B’s content (subject, message, config) along with the abTest flag and the new emailTemplateBId.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

sequenceId
string
required

The unique identifier of the sequence

stepId
string
required

The unique identifier of the step

Response

Variant B created

stepId
string
abTest
emailTemplateBId
string

Email template ID of variant B

subject
string

Variant B subject

message
string

Variant B body (HTML)

altMessage
string

Variant B's LinkedIn note, same meaning as the step-level altMessage: the premium invitation note on a linkedinInvite step, the out-of-network note on a linkedinSend one

altMessagePremium
string

Variant B's premium variant of the out-of-network note, on linkedinSend steps only

cc
string[]
plainText
boolean