Skip to main content
POST
Select A/B Test Winner
A/B testing requires at least the Email Pro plan.
Concludes the A/B test by selecting the winning variant. From then on, all remaining leads going through the step receive the winning template — the split stops and the winner is sent every time. Both templates are kept on the step, so you can inspect the loser afterwards.

Request Body

This is allowed while the campaign is running — selecting a winner mid-flight is the intended use. Selecting a winner is final: a second selection returns 400. If the step does not run an A/B test, the endpoint returns 404.

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

Body

application/json
variant
enum<string>
required

The winning variant

Available options:
A,
B

Response

Winner selected

stepId
string
abTest
enum<string>
Available options:
A,
B