Skip to Content
iAdvizeDocs

Get a widget experiment

Returns one experiment with, for each arm, the sessions assigned and the sessions that started a conversation (the start rate), and the verdict. The start rate is the only measure that decides; the counts are of sessions, never purchases and never incremental. A result that is not `conclusive` means the test cannot tell yet, never that the versions are the same. The widget in the path may be the widget of either arm; any other widget is a `404`.

GET
/api/v1/sites/{siteId}/engagement-widgets/{widgetId}/experiments/{experimentId}

Authorization

ApiKeyAuth
headerAuthorizationBearer <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).

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.

widgetId*string

The widget id (prefixed ewgt_). For an experiment it may be the widget of either arm.

experimentId*string

The widget experiment id (prefixed ewxp_). An experiment the path widget is not an arm of, or of another organization, is a 404.

Response Body

The experiment.

application/json
  1. response
data*

A widget A/B test with its per-arm counts and verdict.

Example Request
curl -X GET 'https://example.com/api/v1/sites/string/engagement-widgets/string/experiments/string'
Example Response
{  "data": {    "id": "ewxp_01kvnwmagvf27rc9cze5rm9e1r",    "status": "running",    "endedReason": null,    "startedAt": "2026-11-02T09:30:00.000Z",    "endedAt": null,    "floorPerArm": 2400,    "splitPercent": 50,    "arms": [      {        "arm": "a",        "widgetId": "ewgt_01kvnwmagvf27rc9cze5rm9e1r",        "versionId": "ewgv_01kvnwmagvf27rc9cze5rm9e1r",        "assignedSessions": 2610,        "startedSessions": 402,        "startRate": 0.15402298850574714      },      {        "arm": "b",        "widgetId": "ewgt_01kvnwmagwf27rc9d7zef4qksf",        "versionId": "ewgv_01kvnwmagwf27rc9d7zef4qksf",        "assignedSessions": 2584,        "startedSessions": 431,        "startRate": 0.16679566563467493      }    ],    "verdict": {      "state": "running",      "winner": null    }  }}