Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

Quick StartWhat is Saasco?

Analytics

getList UsersgetGet UsergetCurrent UserspostLatest IdentifiesdelDelete User

CRM

Email Marketing

Knowledge

Support

Projects

Users

Delete User

Erases a user's stored identify properties for GDPR-style deletion requests. Scope is narrow and worth noting: it clears the identify record only. Tracked events stay, and the CRM contact is untouched (use Delete Contact for that). The delete runs as an asynchronous job, so the user can still surface in queries for a short window after this returns 200.

DELETE
/projects/{projectId}/analytics/user/{distinctId}

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project the user belongs to.

distinctIdrequiredstring

Distinct ID of the user whose analytics data to erase.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://www.saasco.com/api/v2/projects/string/analytics/user/string"
{
  "message": "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": []
}

Latest Identifies

Returns the property bags of the 5 most recently seen identified users. Intended as a sample for previewing what identify data is arriving. For a full list use List Users, and for one specific user use Get User.

Query Events

The general-purpose event reporting query. Pick a dimension to group by, the metrics to compute (`users`, `sessions`, `events`), and any filters, and it returns one aggregated row per group: a time series with `groupBy: "date"`, a top-pages table with `groupBy: "pathname"`, and so on. Dates are read in the project's configured timezone.