Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedAgent setupWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference
Skills for agents

REST API

Quick start
getGet Social Proof ConfigputUpdate Social Proof ConfiggetGet Social Proof Widget EnabledpatchUpdate Social Proof Widget EnabledpostUpsert Social Proof TemplatedelDelete Social Proof TemplategetGet Social Proof StatsgetGet Social Proof Stats Timeseries
Social Proof

Update Social Proof Widget Enabled

View as MarkdownAgent setup

Turns the visitor-facing Social Proof widget on or off. Notifications are built from events the SDK sends, and the feed stays empty until a template exists. Ask before turning it on. A page with ?saasco_notifications=test shows the feed even when events are quiet. The analytics SDK probes this on every install and only injects the loader when enabled.

PATCH
/projects/{projectId}/social-proof/widget

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project whose widget to update.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

enabledrequiredboolean

Whether the Social Proof widget should load.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/projects/string/social-proof/widget" \  -H "Content-Type: application/json" \  -d '{    "enabled": true  }'
{  "enabled": true}

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.

Upsert Social Proof Template

Creates a notification template, or updates one when template.id is set. Omitting position appends the template after the current last one.