Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference

REST API

Quick start
getGet Benchmark PreferencesputSet Benchmark Preferences
Benchmarks

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.

GET
/projects/{projectId}/benchmarks/preferences

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project whose benchmark preferences 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/benchmarks/preferences"
{
  "businessInfo": {
    "acvLevel": "low",
    "businessModel": "freeTrialOptIn",
    "businessType": "b2b"
  },
  "funnelSteps": {
    "activation": "string",
    "completedOrder": "string",
    "pageView": "string",
    "signup": "string",
    "startTrial": "string"
  }
}
{
  "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": []
}

Sync Disputes

Queues a sync of Stripe disputes into this project. Existing rows are updated in place.

Set Benchmark Preferences

Stores the cohort and funnel-step mapping used to compare this project's metrics with benchmarks. Replaces the previous preferences.