Skip to content

Data & privacy ​

Raw exports and GDPR requests.

Generated

This page is generated from api/openapi/v1.yaml (OpenAPI 3.1.0, API version 1.0.0).

Export raw events (NDJSON stream) ​

GET/v1/properties/{pid}/exports/events

Scope: export:read. Plan feature raw_export (Pro and above). At most 31 days per call; default: yesterday. One JSON object per line, IP addresses never included.

Parameters ​

NameInTypeRequiredDescription
pidpathstringyesProperty id.
date_rangequery"last_7_days" | "last_28_days" | "last_90_days" | "this_month" | "last_month" | "yesterday" | "today"Date preset. Ignored when start and end are given.
startquerystring
endquerystring

Responses ​

StatusDescription
200Events, one JSON object per line.
400Invalid body or query (invalid_request), with errors[] for validation failures.
401Missing, invalid, expired or revoked API key (unauthorized).
402The plan does not include the feature (plan_required) or a monthly quota is used up (quota_exceeded). required_plan is the cheapest plan that unlocks it.
403The key lacks the required scope (forbidden_scope).
404Unknown endpoint, or a property / object that does not exist or is not accessible with this key (not_found).

GDPR access request — every event of a visitor or user ​

GET/v1/properties/{pid}/subjects/{id}

Scope: privacy:write. id is a visitor id or your business user id. Recorded in the privacy requests and the audit log.

Parameters ​

NameInTypeRequiredDescription
pidpathstringyesProperty id.
idpathstringyesVisitor id or business user id.

Responses ​

StatusDescription
200Events, one JSON object per line.
400Invalid body or query (invalid_request), with errors[] for validation failures.
401Missing, invalid, expired or revoked API key (unauthorized).
403The key lacks the required scope (forbidden_scope).
404Unknown endpoint, or a property / object that does not exist or is not accessible with this key (not_found).

GDPR erasure request — delete every event of a visitor or user ​

DELETE/v1/properties/{pid}/subjects/{id}

Scope: privacy:write. Deletes raw events and the derived session and segment rows carrying the identifier.

Parameters ​

NameInTypeRequiredDescription
pidpathstringyesProperty id.
idpathstringyesVisitor id or business user id.

Responses ​

StatusDescription
200Erased.
400Invalid body or query (invalid_request), with errors[] for validation failures.
401Missing, invalid, expired or revoked API key (unauthorized).
403The key lacks the required scope (forbidden_scope).
404Unknown endpoint, or a property / object that does not exist or is not accessible with this key (not_found).

Response fields

FieldTypeRequiredDescription
erasedbooleanyes
request_idstringyes

Agents & humans, every visit counts!