experiments_create
Create a draft external URL A/B test and return the created experiment. Use controlUrl and variationUrl for the two destinations, trafficAllocation for the variation share, targeting for optional filters, and experiments_set_status after user approval to launch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| projectId | No | Optional project ID. Omit only when the API key is project-scoped or the account has a clear default project. | |
| targeting | No | Optional targeting object. Device and visitor targeting are available on all plans; trafficFilters and geoFilters require Plus or Pro. Use documented pixel metadata keys such as utm_source, utm_medium, utm_campaign, device, browser, or geo fields. | |
| controlUrl | Yes | Existing customer-owned URL for the control experience. | |
| variationUrl | Yes | Existing customer-owned URL for the variation experience. | |
| urlPatternRules | No | Optional Pro-only URL pattern rules for advanced matching across multiple paths. Prefer simple controlUrl/variationUrl first. | |
| trafficAllocation | No | Traffic sent to the variation. Accepts 0-1 or 0-100; default is 50%. | |
| preserveRedirectParams | No | Default: true. |