Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference

REST API

Quick start
getList ShortlinksgetGet ShortlinkpostCreate ShortlinkputUpdate ShortlinkdelDelete ShortlinkgetGet Shortlink ClicksgetGet Shortlink Clicks CountgetGet Top Shortlinks
Shortlinks

Get Top Shortlinks

Ranks every short link in the project by clicks in the window, including links with zero clicks.

GET
/projects/{projectId}/top-shortlinks

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project whose short links to rank.

Query Parameters

dateFromstring
dateTostring

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/top-shortlinks"
[
  {
    "clicks": 0,
    "shortLinkId": "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": []
}

Get Shortlink Clicks Count

All-time click count for one short link.

Get Social Proof Config

Reads the social proof widget: enabled flag, feed window, theme, display rules, and templates. Creates the config row on first read.