Read a data subject
Returns what analytics data is currently stored for one data subject. Use this before an erasure to preview the blast radius, and after one to independently confirm the data is gone. Requires the analytics:view scope.
Authorization
bearerAuth 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
Tracker the data subject was recorded on.
1 <= lengthData subject identifier — the visitor id the tag assigned (analytics_sessions.uid).
1 <= length <= 512Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/analytics/trackers/string/subjects/string"{ "data": { "subjectId": "string", "trackerId": "string", "sessions": 0, "firstSeen": "string", "lastSeen": "string", "events": 0 }, "meta": { "requestId": "string", "timestamp": "string" }}Erase a data subject's analytics data DELETE
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.
List data subjects GET
Lists the data subjects that have analytics data on a tracker, most recently seen first. Event counts are omitted here because they require a join per subject; read a single subject to get them. Requires the `analytics:view` scope.