Skip to main content
DELETE
Delete A/B Test Variant
A/B testing requires at least the Email Pro plan.
Deletes one variant of the A/B test on an email step and ends the test (the step keeps a single email template).
  • Deleting B (default) drops variant B; variant A remains the step’s template.
  • Deleting A promotes variant B to A — variant B’s template becomes the step’s template.
Pass the variant to remove via the variant query parameter (A or B, default B):
If the step does not run an A/B test, the endpoint returns 404. As with other step edits, the variant cannot be deleted while the campaign is running on a non-editable sequence.

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

Query Parameters

variant
enum<string>
default:B

Which variant to delete. Defaults to B.

Available options:
A,
B

Response

Variant deleted

ok
boolean