Web Analytics Path Cleaning
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
POST |
Create web analytics path cleaning suggestions
Merges the suggestion's rules into the team's path_cleaning_filters (never overwrites existing rules) and resolves the underlying health issue. Requires project admin, matching the team API's gate on path_cleaning_filters.
Required API key scopes
web_analytics:writePath parameters
- idstring
Response
Example request
POST /api /projects /:project_id /web_analytics_path_cleaning_suggestions /:id /applyExample response
Status 200
Retrieve web analytics path cleaning suggestions
Applies the suggestion's rules (in order) to a fresh sample of the team's top paths and returns before/after pairs for the paths that would change. Computed on demand; path samples are never stored. Nothing is modified.
Required API key scopes
web_analytics:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /web_analytics_path_cleaning_suggestions /:id /previewExample response
Status 200
Create web analytics path cleaning suggestions
Samples the team's recent paths, asks the LLM for cleaning rules, validates them against the real paths, and stores the result as a path_cleaning_suggestions health issue (replacing any previous active one). Runs even if the team already has rules. Returns the suggestion (or a skip status when there aren't enough paths to suggest from).
Required API key scopes
web_analytics:writeResponse
Example request
POST /api /projects /:project_id /web_analytics_path_cleaning_suggestions /generate