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.
Authorization
Authorization In: header
Path Parameters
ID of the project that owns the template.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Template to create, or to replace when id is set.
Dashboard name. Not shown to visitors.
Analytics event action this template matches, for example Signed Up. Null makes it a routing-only box that incoming events never match directly.
Message with {variable} placeholders, for example Someone from {location} just signed up {timeAgo}.
Image beside the message: an https URL, or a {property} token resolved per event.
Static https image used when the primary image fails or a {property} image never resolves.
Fixed click URL. When linkToEvent is on and this is set, it wins over the event href.
When true, a click opens linkUrl or the event href, with Saasco UTM parameters.
When false, this template is not served to visitors. Defaults to true.
If/then rules applied when the feed is built. They can block an event or rewrite a field.
ID of an existing template to update. Omit to create one.
Order among this project's templates. Omit to append after the current last template.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/projects/string/social-proof/templates" \ -H "Content-Type: application/json" \ -d '{ "template": { "name": "string", "template": "string" } }'{ "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"}Update Social Proof Widget Enabled
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.
Delete Social Proof Template
Deletes a notification template. Events that matched it stop rendering until another template covers that action.