Widget settings
/v1/widget/settingsWhether the organization's storefront widgets show, and its holdout
test: the share of visits that never see the chat widget, so what the
widget adds can be measured against them (GET /v1/analytics/holdout).
Response
false when every widget is switched off.
The running holdout test, or null.
Option 1: WidgetHoldout
The test.
The share of visits kept from the chat widget.
When the test started.
When it ended. Only on pastHoldouts.
Option 2: null
Tests that ended, newest first (the last 20).
The test.
The share of visits kept from the chat widget.
When the test started.
When it ended. Only on pastHoldouts.
Errors
19Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
This endpoint has no errors of its own beyond the shared set below.
curl -X GET "https://stylor.ai/api/v1/widget/settings" \
-H "Authorization: Bearer $STYLOR_API_KEY"{
"enabled": true,
"holdout": {
"id": "hold_3f9a1c2b7d4e5f60",
"percent": 10,
"startedAt": "2026-11-01T09:00:00.000Z"
},
"pastHoldouts": []
}