Skip to main content

Base URL and authentication

Takes Authorization: Bearer <YOUR_API_KEY> (details) and the stats:read permission. site_id is the site’s snippet key, the ttid_ value your install snippet carries as data-site. You can read it from GET /v1/sites.

GET /v1/events/recent

The most recent events for one site, newest first. This is a live feed for checking an install or debugging a classification, not an export. It is capped at 200 events and a 90 day window.

Query parameters

Response fields

What url contains

The query string is kept, because campaign attribution depends on it: utm_source, utm_campaign, ref and anything else you use all arrive intact. The value of any parameter whose name is a known personal-data parameter, or matches token, secret or key, is replaced with the literal string REDACTED. The parameter name itself survives. This applies to parameters in the query string and in the fragment after #, in url, the referrer and a clicked link. A hash route such as #/pricing is left as it is. The rewrite runs twice. The browser snippet applies it before sending, and our ingestion edge applies the same rule to every event it receives, including events sent straight to the ingestion API from a server SDK or your own code. The edge rewrite works on the text of the URL rather than parsing it, so a URL that does not parse is still redacted. ai_source carries non-AI values too (direct, organic_search, social, email, paid, referral), so it is a source label rather than an AI flag. Read ai_confidence and detection_method alongside it.

Errors

Retention

The store behind this endpoint keeps 90 days, so days cannot reach further back than that. That is a deliberately short window on a debugging feed, not the retention limit for your data: the underlying records are kept for 730 days and are reachable through the other endpoints below. Other records about the same activity live longer and are not reachable here: visitor step rows, which back funnel questions, are kept for 730 days, and session-level records for 730 to 760 days. Those are different tables with different retentions, not a contradiction. See data retention for the full picture.

Next