Request
Common Parameters
The brand/project ID
page_top or insert_afterHuman-readable name for the test
Array of 2–5 variants. Each variant requires
name (string) and weight (integer, 1–100). Weights must sum to 100.Custom conversion goals. Each goal has
name (display name) and value (event identifier, alphanumeric/underscore/dash).Mode 1 (page_top) Parameters
The page to add the test to
Optional JavaScript expression to filter who enters the test (e.g.
return visitor.country === 'US';). When provided, visitors who don’t match bypass the test. Cannot be used if the entry node connects to a frontend-only node.Page ID to redirect this variant to. The first variant (control) has no
page_id — visitors stay on the current page. Other variants must specify a page_id.When
true, the loaded page’s events replace the current page’s events entirely. By default (false), the current page’s events continue to run. Useful when the variant page has its own tracking, popups, or scripts.Mode 2 (insert_after) Parameters
page_events or funnelRequired when context is
page_eventsRequired when context is
funnelThe node code to insert the split test after. Use the flow inspection endpoint to find this value. In funnels, must be one of:
entry, purchase, decline, exit_intent, product_check_product, product_check_all, script_rule, mark_whitelisted, router. Cannot be a frontend-only node.Which output of the previous node to intercept (default: 1). Nodes like
script_rule and product_check have multiple outputs.Chain of nodes for this variant. Each node has
type and type-specific data fields. See Allowed Node Types.The node code to reconnect to after this variant’s chain ends.
Example: Mode 1 — Quick A/B Test
cURL
Example: Mode 1 with Script Rule
cURL
Example: Mode 2 — Insert in Page Events
cURL
Example: Mode 2 — Insert in Funnel
cURL