List the widgets and versions a test can use
Returns the widgets of the site and, for each, the saved versions that can be an arm of an A/B test (the latest saved state of each version, so a version tested before is listed too), and whether a running test holds the widget. These are the ids to send to `POST /engagement-widgets/{widgetId}/experiments`.
ApiKeyAuthAuthorizationBearer <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).
siteId*stringThe site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.
The widgets of the site, empty when it has none.
application/json- response
data*The widgets and versions a test can be started from.
curl -X GET 'https://example.com/api/v1/sites/string/widget-experiment-options'{ "data": { "widgets": [ { "id": "ewgt_01kvnwmagvf27rc9cze5rm9e1r", "name": "Starter questions", "enabled": true, "held": false, "versions": [ { "id": "ewgv_01kvnwmagwf27rc9d7zef4qksf", "number": 2, "name": "Shorter prompts", "status": "draft", "format": "floating", "isLive": false, "matchAllPages": false, "pageTypes": [ "product" ] }, { "id": "ewgv_01kvnwmagvf27rc9cze5rm9e1r", "number": 1, "name": null, "status": "champion", "format": "floating", "isLive": true, "matchAllPages": false, "pageTypes": [ "product" ] } ] } ] }}Promote an arm of a widget experiment
Puts the version of one arm of the running experiment live on its widget, through the same path as going live, and ends the experiment as promoted. When the two arms were two widgets, the other widget is taken offline. The body names the arm, `a` or `b`: usually the winner. This changes what shoppers are served, whatever the verdict says. `widget_experiment_not_running` when the experiment already ended. Records `engagement_widget.experiment_promoted` and the go-live's own audit entries, attributed to the API key. The widget in the path may be the widget of either arm; any other widget is a `404`.
List a site's connectors
Returns the site's connectors, as its Connectors page lists them, each with its tools, its switched-off tools and its health. Secrets appear as flags and are never returned.