Update Social Proof Config
Replaces the widget's enabled flag, feed window, theme, and display rules. Templates are saved separately.
Authorization
Authorization In: header
Path Parameters
ID of the project whose widget to update.
Request Body
application/json
Enabled flag, feed window, theme, and display rules.
Whether the visitor-facing widget loads.
Desktop look. Independent of mobile.
Accent color for links and highlights. Any CSS color. Omit for the loader default.
Notification background color. Any CSS color. Omit for the loader default.
Corner radius of the notification, in pixels.
Padding around the notification image, in pixels.
Link text color. Any CSS color. Omit to use the text color.
Outline color. Any CSS color. Omit for no border.
Whether the notification casts a drop shadow.
Notification text color. Any CSS color. Omit for the loader default.
Pointer-hover animation. Desktop only.
Mobile look. Independent of desktop, and it starts from the same defaults.
Accent color for links and highlights. Any CSS color. Omit for the loader default.
Notification background color. Any CSS color. Omit for the loader default.
Corner radius of the notification, in pixels.
Padding around the notification image, in pixels.
Link text color. Any CSS color. Omit to use the text color.
Outline color. Any CSS color. Omit for no border.
Whether the notification casts a drop shadow.
Notification text color. Any CSS color. Omit for the loader default.
Corner the notification stack anchors to on desktop.
Edge the notification stack anchors to on mobile. Centered, top or bottom.
Whether the time-ago line renders.
Hide the time-ago line on events older than this many hours.
Seconds each notification stays visible.
Skip the widget on desktop browsers.
Skip the widget on mobile browsers.
Seconds after page load before the first notification.
Seconds between one notification hiding and the next showing.
Maximum notifications per page load.
Maximum notifications per visitor session.
Ordered page rules. Earlier rules win. Each rule decides whether notifications render on a matching page and how they behave.
How many hours of events the feed includes, from 1 hour to 30 days.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://www.saasco.com/api/v2/projects/string/social-proof" \ -H "Content-Type: application/json" \ -d '{ "config": { "theme": {}, "display": {} } }'{
"enabled": false,
"theme": {
"desktop": {
"accentColor": "string",
"backgroundColor": "string",
"cornerRadius": 16,
"imagePadding": 0,
"linkColor": "string",
"outlineColor": "string",
"shadow": true,
"textColor": "string"
},
"hoverAnimation": "none",
"mobile": {
"accentColor": "string",
"backgroundColor": "string",
"cornerRadius": 16,
"imagePadding": 0,
"linkColor": "string",
"outlineColor": "string",
"shadow": true,
"textColor": "string"
},
"position": "bottom-left",
"mobilePosition": "top",
"showTimestamp": true,
"timestampMaxAgeHours": 4
},
"display": {
"displayDurationSeconds": 4,
"hideOnDesktop": false,
"hideOnMobile": false,
"initialDelaySeconds": 5,
"intervalSeconds": 15,
"maxPerPage": 5,
"maxPerSession": 100,
"pageRules": []
},
"maxEventAgeHours": 24,
"templates": [
{
"name": "string",
"action": "string",
"template": "string",
"imageUrl": "http://example.com",
"fallbackImageUrl": "http://example.com",
"linkUrl": "http://example.com",
"linkToEvent": false,
"enabled": true,
"position": 0,
"eventRules": [],
"id": "string"
}
]
}{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}Get Social Proof Config
Reads the social proof widget: enabled flag, feed window, theme, display rules, and templates. Creates the config row on first read.
Get Social Proof Widget Enabled
Returns whether the visitor-facing Social Proof widget is enabled. The analytics SDK probes this on every install and only injects the loader when enabled.