Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

CRM

getList Custom LinksgetGet Custom LinkpostCreate Custom LinkputUpdate Custom LinkdelDelete Custom Link

Email Marketing

Knowledge

Support

Projects

Custom Links

List Custom Links

Lists the project's custom contact links: the templates, not the resolved URLs for any particular contact.

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

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project to list custom links from.

Query Parameters

skipnumber

Number of links to skip before collecting results.

takenumber

Maximum number of links to return.

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/crm/custom-contact-links"
[
  {
    "id": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "projectId": "string",
    "label": "string",
    "urlJSON": {
      "content": [
        {
          "attrs": {
            "property1": null,
            "property2": null
          },
          "content": [
            {
              "attrs": {
                "property1": null,
                "property2": null
              },
              "content": [],
              "marks": [
                {
                  "attrs": {
                    "property1": null,
                    "property2": null
                  },
                  "type": "string"
                }
              ],
              "text": "string",
              "type": "string"
            }
          ],
          "marks": [
            {
              "attrs": {
                "property1": null,
                "property2": null
              },
              "type": "string"
            }
          ],
          "text": "string",
          "type": "string"
        }
      ],
      "type": "doc"
    },
    "urlHTML": "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": []
}

Update Subscribe Status

Subscribes or unsubscribes a contact at the project level: the master switch that overrides every per-type preference, and what an unsubscribe link should call. Unsubscribing records the reason as `manual`. Pass `encrypted: true` with the token from an emailed link to apply the change to every contact sharing that address. A raw distinct ID only updates that one contact. Note this endpoint does not verify the contact exists; it writes the properties either way.

Get Custom Link

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