activity

GET /api/activity/reports/trends/

Changed on

Return period-over-period trend series for the productivity score, focused time, in-tab activity level, and the productivity-class focused-time mix, bucketed by day (default) or week in the optional tz (else UTC), for a member (user) or across one or more groups (groups), else the whole organization. Also returns totals for the selected window and the immediately-preceding equal-length window for period-over-period deltas. Re-aggregates existing page-session spans (no new capture). Restricted to organization admins/managers or activity & security report viewers, and gated by the activity-tracking flag.

Request

  • Base URL
    https://app.pixiebrix.com
  • Auth
    none declared

Query parameters

organizationstring uuid required

UUID of the organization to scope the report to.

userstring uuid

Optional member UUID to scope the report to one user.

groupsstring[]

Optional group UUIDs to scope the report; repeated (?groups=a&groups=b) or comma-separated (?groups=a,b).

startstring date-time

Optional ISO-8601 start of the report window (inclusive).

endstring date-time

Optional ISO-8601 end of the report window (exclusive).

granularity'day' | 'week'

Bucket granularity for the trend series: day (default) or week.

tzstring

Optional IANA timezone for day boundaries (e.g. America/New_York); defaults to UTC.

Response

organizationstring uuid required
startstring date-time required
endstring date-time required
tzstring required
granularity'day' | 'week' required
buckets_truncatedboolean required

Changes