Link Deep-Dive Analytics
Use these endpoints for per-link debugging and drilldowns.Endpoints
GET /api/analytics/:linkId/rulesGET /api/analytics/:linkId/rules/:ruleId/conditionsGET /api/analytics/:linkId/traffic-flowGET /api/analytics/:linkId/click-paths
Common behavior
:linkIdis validated in workspace scope.- Soft-deleted or out-of-scope links return
404. daysis supported for range filtering on most endpoints.
Click paths parameters
number
default:"200"
Row count cap (server bounded).
string
Optional explicit start date.
string
Optional explicit end date.
string
Optional path filter. Supported values include source/destination/rule/condition.
string
Required when
filterType is provided.Traffic-flow response model
/traffic-flow returns graph-ready payload:
nodeswith source/rule/destination classeslinkswith edge values and percentagestotalClicks
Click-paths response model
/click-paths returns row-oriented traversal events:
- timestamp + click ID
- source and matched rule
- destination host/URL
- optional matched conditions hash/details
- geo/device/browser fields
Notes
- Default first-page click-paths views are cache-optimized; filtered/page>1 variants are treated as deep drilldowns.
- These endpoints are the preferred source for rule-routing diagnostics and path attribution QA.

