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 Benchmark PreferencesputSet Benchmark Preferences
Benchmarks

Set Benchmark Preferences

View as MarkdownAgent setup

Stores the cohort and funnel-step mapping used to compare this project's metrics with benchmarks. Replaces the previous preferences. Point each step at an event this product already tracks. Skip a step you cannot match. Do not invent events.

PUT
/projects/{projectId}/benchmarks/preferences

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project whose benchmark preferences to store.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

benchmarkPreferencesrequiredobject

Cohort and funnel-step mapping to store for this project.

businessInforequiredobject

Cohort the project's metrics are compared against.

acvLevelrequiredstring

Annual contract value band used to pick a benchmark cohort.

Value in: "low" | "mid" | "high"
businessModelrequiredstring

How someone becomes a paying customer: opt-in trial, opt-out trial, freemium, or a direct purchase.

Value in: "freeTrialOptIn" | "freeTrialOptOut" | "freemium" | "direct"
businessTyperequiredstring

Who the product sells to.

Value in: "b2b" | "b2c"
funnelStepsrequiredobject

Which analytics events stand in for each benchmark funnel step.

activationrequiredstring

Analytics event name that counts as activation.

completedOrderrequiredstring

Analytics event name that counts as a completed order.

pageViewrequiredstring

Analytics event name that counts as a page view.

signuprequiredstring

Analytics event name that counts as a signup.

startTrialrequiredstring

Analytics event name that counts as a trial start.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/projects/string/benchmarks/preferences" \  -H "Content-Type: application/json" \  -d '{    "benchmarkPreferences": {      "businessInfo": {        "acvLevel": "low",        "businessModel": "freeTrialOptIn",        "businessType": "b2b"      },      "funnelSteps": {        "activation": "string",        "completedOrder": "string",        "pageView": "string",        "signup": "string",        "startTrial": "string"      }    }  }'
{  "businessInfo": {    "acvLevel": "low",    "businessModel": "freeTrialOptIn",    "businessType": "b2b"  },  "funnelSteps": {    "activation": "string",    "completedOrder": "string",    "pageView": "string",    "signup": "string",    "startTrial": "string"  }}

Get Benchmark Preferences

Reads the cohort and funnel-step mapping used to compare this project's metrics with benchmarks. Returns null when nothing has been saved.

List Projects

Lists the projects the caller can reach, each with its app configs. Pass id to return only that project; an unknown or inaccessible id returns 404. Omit id for every reachable project. take pages that list, and includeId keeps one project on the page without filtering. API keys are scoped to a single project. An MCP URL with ?projectId= is limited to that project. The MCP tool returns a short summary; this REST response is the full record.