Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference

REST API

Quick start
Set up SupportWrite the widget copy
getGet Widget EnabledpatchUpdate Widget EnabledgetGet Email Agent EnabledgetGet Widget Agent EnabledpatchUpdate Email Agent EnabledpatchUpdate Widget Agent EnabledgetGet Support MailboxgetGet Trusted DomainsgetGet Widget CopyputUpdate Support MailboxputUpdate Trusted DomainspatchUpdate Widget Copy
Set up ShortlinksCreate short linksSet up Social ProofSocial Proof templatesSet up FeedbackDraft feedback postsSet up ChangelogDraft changelog entriesSet up DisputesSet up Benchmarks
SupportWidget

Get Widget Agent Enabled

Returns whether the AI agent replies in the support widget. Defaults on when the project has never set the toggle.

GET
/projects/{projectId}/support/widget-agent

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project whose widget agent to fetch.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://www.saasco.com/api/v2/projects/string/support/widget-agent"
{
  "widgetAgentEnabled": 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 Email Agent Enabled

Returns whether the AI agent replies to inbound support email. Defaults on when the project has never set the toggle.

Update Email Agent Enabled

Turns the inbound-email AI agent on or off. When off, inbound support emails notify the team instead of the agent.