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
getList Custom LinksgetGet Custom LinkpostCreate Custom LinkputUpdate Custom LinkdelDelete Custom Link
CRMCustom Links

Create Custom Link

View as MarkdownAgent setup

Creates a custom contact link: a templated URL shown on every contact page, with contact properties substituted in. Use it to jump straight from a contact to that same person in another system, for example a Stripe customer or an internal admin page.

POST
/projects/{projectId}/crm/custom-contact-links

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that will own the link.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

labelrequiredstring
urlJSONrequiredobject
contentarray<unknown>
typerequiredstring
urlHTMLrequiredstring

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/crm/custom-contact-links" \  -H "Content-Type: application/json" \  -d '{    "label": "string",    "urlJSON": {      "type": "doc"    },    "urlHTML": "string"  }'
{  "id": "string",  "createdAt": "string",  "updatedAt": "string",  "projectId": "string",  "label": "string",  "urlJSON": {    "content": [      {        "attrs": {          "property1": null,          "property2": null        },        "content": [          {}        ],        "marks": [          {            "attrs": {              "property1": null,              "property2": null            },            "type": "string"          }        ],        "text": "string",        "type": "string"      }    ],    "type": "doc"  },  "urlHTML": "string"}

Get Custom Link

Fetches a single custom contact link template. Returns 404 if it does not exist.

Update Custom Link

Updates a custom contact link's label or URL template. Only the fields present in the body are written. The template is stored in two forms. Send `urlHTML` and `urlJSON` together when changing the URL, since the server does not derive one from the other.