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 email step. Calling this endpoint creates a variant B email 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 only supported on email steps.
  • The step must have an email template (variant A) and must not already run an A/B test.
  • 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 email subject

message
string

Variant B email body (HTML)

altMessage
string
cc
string[]
plainText
boolean