iAdvizeDocs

Get what a holdout start would do

Reads, before starting, what a holdout test would do on the site: the planned durations (3, 7, 14 and 28 days; 3 only when it reaches the precision target) with the sessions each group would receive and the smallest gap the test could confirm for this site's traffic and baseline add-to-cart rate, the recommended duration, and why a start is refused when it is. Estimated from the last 7 days of traffic, so traffic that changes during the run changes the figures. A read, open to every member.

GET
/api/v1/sites/{siteId}/holdout/start-options

Authorization

ApiKeyAuth
AuthorizationBearer <token>

A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).

In: header

Path Parameters

siteId*string

The site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/sites/string/holdout/start-options"
{  "data": {    "siteId": "site_01kvnwmagvf27rc9cze5rm9e1r",    "canStart": true,    "blockedBy": null,    "controlPercent": 50,    "trafficFloor": 5000,    "observedSessionsLast7Days": 80000,    "estimable": true,    "baselineRate": 0.078,    "targetGapPoints": 0.78,    "recommendedDays": 7,    "recommendedReachesTarget": true,    "options": [      {        "days": 7,        "sessionsPerGroup": 40000,        "confirmableGapPoints": 0.6,        "confirmableGapRelative": 0.77,        "reachesTarget": true,        "recommended": true      },      {        "days": 14,        "sessionsPerGroup": 80000,        "confirmableGapPoints": 0.5,        "confirmableGapRelative": 0.64,        "reachesTarget": true,        "recommended": false      },      {        "days": 28,        "sessionsPerGroup": 160000,        "confirmableGapPoints": 0.4,        "confirmableGapRelative": 0.51,        "reachesTarget": true,        "recommended": false      }    ],    "note": "Estimated from the last 7 days of traffic: traffic that changes during the run changes these figures."  }}