Skip to main content
GET

Time Series Analytics

Use these endpoints to render trend charts with consistent date-range controls.

Endpoints

  • GET /api/analytics/workspace/timeseries
  • GET /api/analytics/:linkId/timeseries
  • GET /api/analytics/leads/timeseries
  • GET /api/analytics/sales/timeseries

Common query parameters

days
number
default:"30"
Rolling lookback window. Server validates and caps range.
start
string
Explicit start date/time (overrides inferred start from days when provided with end).
end
string
Explicit end date/time.
granularity
string
default:"day"
Bucket size for supported endpoints. Accepted values include hour, day, month (invalid values are normalized server-side).
timezone
string
default:"workspace timezone or UTC"
IANA timezone used for bucket boundaries.
currency
string
Optional display currency for monetary metrics. Unsupported values fall back to workspace/default currency behavior.

Request example

Response shape

Notes

  • Workspace timeseries combines click and unified conversion streams.
  • Lead and sales timeseries endpoints are conversion-domain specific and should be used for tab-specific analytics views.
  • Cached responses may be briefly stale by design; use refresh/live surfaces for near-real-time monitoring.