Flowtag Docs
Flowtag API

Erase a data subject's analytics data

DELETE
/v1/analytics/trackers/{trackerId}/subjects/{subjectId}

Permanently deletes every session and event recorded for a data subject on this tracker, and returns counts of what was deleted together with a re-count proving nothing remains. This cannot be undone. The call is idempotent: erasing a subject that holds no data succeeds with zero counts and alreadyErased: true. Requires the analytics:delete-data scope.

Authorization

bearerAuth
AuthorizationBearer <token>

Organization API key, sent as Authorization: Bearer ft_<public>.<secret>. Create one under Settings → API keys and grant it the scopes each endpoint lists.

In: header

Path Parameters

trackerId*string

Tracker the data subject was recorded on.

Length1 <= length
subjectId*string

Data subject identifier — the visitor id the tag assigned (analytics_sessions.uid).

Length1 <= length <= 512

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/analytics/trackers/string/subjects/string"
{  "data": {    "subjectId": "string",    "trackerId": "string",    "receiptId": "string",    "erasedAt": "string",    "deleted": {      "sessions": 0,      "events": 0    },    "residual": {      "sessions": 0,      "events": 0    },    "verified": true,    "alreadyErased": true  },  "meta": {    "requestId": "string",    "timestamp": "string"  }}