A/B Tests
List A/B tests
Lists A/B tests and variants for the authenticated company, optionally filtered by sequence.
get/ab-tests
Query parameters
sequenceIdstring
Optional sequence ID filter for automation A/B tests.
Response
A/B tests returned
Example response
{
"success": true,
"abTests": [
{
"id": "ab_abc123",
"companyId": "company_abc123",
"campaignId": "camp_abc123",
"automationNodeId": "node_abc123",
"name": "Subject test",
"status": "draft",
"winnerCriteria": "open_rate",
"variants": [
{
"id": "var_a",
"variantId": "var_a",
"abTestId": "ab_abc123",
"label": "A",
"variantLabel": "A",
"emailId": "email_abc123",
"subject": "Welcome",
"blocks": [
{
"id": "block_123",
"type": "html",
"content": "<h1>Hello</h1>",
"styles": {
"backgroundColor": "#f8fafc",
"backgroundOpacity": 80,
"textColor": "#111827",
"borderRadius": 12,
"borderColor": "#cbd5e1",
"borderWidth": 1
},
"conditions": [
{
"id": "c1",
"value": "plan:pro"
}
]
}
]
}
]
}
]
}