Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

CRM

Email Marketing

Knowledge

Support

getGet WidgetpatchUpdate Widget Enabled

Projects

Widget

Update Widget Enabled

Turns the visitor-facing Support widget on or off. The analytics SDK probes this on every install and only injects the loader when enabled.

PATCH
/projects/{projectId}/support/widget

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project whose widget to update.

Request Body

application/json

enabledrequiredboolean

Whether the Support widget should load.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://www.saasco.com/api/v2/projects/string/support/widget" \  -H "Content-Type: application/json" \  -d '{    "enabled": true  }'
{
  "enabled": true
}
{
  "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 Widget

Returns the project's Support widget settings: whether the widget is enabled, branding, office hours, notifications, trusted domains, and authored tools. Authenticated; the same payload the dashboard settings page reads, including server-tool auth headers. Not the CORS-gated public widget payload visitors fetch.

List Conversations

Lists Support inbox conversations (chat and email) with a preview line and unread count, not the transcript. Filter by state; omitted `state` returns open conversations. `spam` is its own view: `open` excludes it and `all` includes it so nothing is unreachable.